Time left:

[All Quizzes] → [Introduction to Algorithms] → [Sorting and Searching]


1. ► Topological ordering in a graph is unique

A.
B.

2. ► Binary search performs in linear time

A.
B.

3. ► Topological sort requires O(V) space

A.
B.

4. ► For faster and frequent searches, sorted sequences are better to work on

A.
B.

5. ► A ready list can be obtained through topological sort prior to scheduling

A.
B.

6. ► Heap sort cannot be done in-place

A.
B.

7. ► Merge sort has linear space requirement

A.
B.

8. ► Heap sort makes use of heap data structure

A.
B.

9. ► Heap sort guarantees O(nlgn) performance

A.
B.

10. ► Stable sorting always preserves the order

A.
B.

11. ► Merge sort works on the principle of divide-and-conquer

A.
B.

12. ► A simple depth-first walk is enough to give topological ordering

A.
B.

13. ► Hidden constants are higher in merge sort

A.
B.

14. ► Topological sort is available in STL

A.
B.

15. ► Quick sort works on the principle of divide and conquer

A.
B.

16. ► In unsorted sequence, key and data cannot stay together

A.
B.

17. ► Sorting algorithm with logarithmic component in complexity works faster

A.
B.

18. ► Quick sort guarantees O(nlgn) performance in all the cases

A.
B.

19. ► STL doesn’t have an implementation of quick sort

A.
B.

20. ► Binary search is there in algorithm package

A.
B.


© 2016 VirtuQ™ Education All right reserved. | Terms of Use | Privacy Policy