Q13
Which one of the following correctly determines the solution of the recurrence relation with ?
Show answer without attempting
Answer: A
GATE CS · 19 questions
19 Algorithms questions from GATE CS papers (2014), each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: A
Answer: B
Answer: C
Answer: 34
Answer: 358

Answer: 6

Answer: 19
Answer: A
Answer: 150
Answer: B
Answer: A
Answer: B
Answer: C
Answer: C
Answer: B
Answer: D
Answer: 147.1 to 148.1
Answer: A
size is the number of elements in the array E:int MyX(int *E, unsigned int size)
{
int Y = 0;
int Z;
int i, j, k;
for(i = 0; i < size; i++)
Y = Y + E[i];
for(i = 0; i < size; i++)
for(j = i; j < size; j++)
{
Z = 0;
for(k = i; k <= j; k++)
Z = Z + E[k];
if (Z > Y)
Y = Z;
}
return Y;
}MyX is theAnswer: A
0/190 correct0 marks