Recent questions tagged gatecse-2006

25 votes
8 answers
64
39 votes
4 answers
72
Which one of the following in place sorting algorithms needs the minimum number of swaps?Quick sortInsertion sortSelection sortHeap sort
59 votes
7 answers
74
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is:QueueStackHeapB-Tree
32 votes
7 answers
75
44 votes
5 answers
76
In a binary max heap containing $n$ numbers, the smallest element can be found in time $O(n)$ $O(\log n)$ $O(\log \log n)$ $O(1)$
41 votes
11 answers
77
70 votes
5 answers
78
36 votes
4 answers
84
30 votes
3 answers
85
Consider the polynomial $p(x) = a_0 + a_1x + a_2x^2 + a_3x^3$ , where $a_i \neq 0$, $\forall i$. The minimum number of multiplications needed to evaluate $p$ on an input ...