InterviewSolution
Saved Bookmarks
| 1. |
What is the median of three techniques in quick sort?(a) quick sort with random partitions(b) quick sort with random choice of pivot(c) choosing median element as pivot(d) choosing median of first, last and middle element as pivotThe question was asked at a job interview.The query is from Sorting topic in chapter Sorting of Data Structures & Algorithms II |
|
Answer» The correct answer is (d) choosing median of FIRST, last and middle element as pivot |
|