Q14
Consider the tree arcs of a BFS traversal from a source node W in an unweighted, connected, undirected graph. The tree T formed by the tree arcs is a data structure for computing
Show answer without attempting
Answer: B
GATE CS · 127 questions
127 Algorithms questions from GATE CS papers, 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: 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
Answer: B
Answer: A
0/200 correct0 marks