Professional Documents
Culture Documents
Q 1 - For a binary search algorithm to work, it is necessary that the array (list) must be
A - sorted
B - unsorted
C - in a heap
A - LIFO
B - FIFO
C - FILO
A - Ο(n+9378)
B - Ο(n3)
C - nΟ(1)
D - 2Ο(n)
A - 0.97 log n
B - 2.13 log n
C - 1.44 log n
D - n2 log n
B - 1 → B, 2 → C, 3 → A
C - 1 → A, 2 → C, 3 → B
D - 1 → B, 2 → A, 3 → C
A - Greedy approach
Q 8 - Heap is an example of
B - spanning tree
C - sparse tree
A - Ο(n)
B - Ο(1)
C - Ο(log n)