InterviewSolution
Saved Bookmarks
| 1. |
What is the average number of comparisons used in a heap sort algorithm?(a) N log N-O(N)(b) O(N log N)-O(N)(c) O(N log N)-1(d) 2N log N + O(N)The question was posed to me during an interview.This is a very interesting question from Heapsort in section Sorting of Data Structures & Algorithms II |
|
Answer» Correct answer is (d) 2N LOG N + O(N) |
|