InterviewSolution
Saved Bookmarks
| 1. |
The binary tree sort implemented using a self – balancing binary search tree takes ______ time is worst case.(a) O(n log n)(b) O(n)(c) O(n^2)(d) O(log n)I'd like to ask this question from Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms IThe question was posed to me at a job interview. |
|
Answer» CORRECT choice is (a) O(N log n) BEST explanation: The worst case running time of the BINARY tree sort is O(n^2). But, the worst case running time can be improved to the O(n log n) using a SELF – balancing binary search tree. |
|