Question: 12. Consider the Tree Sort algorithm in which sorting is achieved by placing all elements to be sorted into a binary search tree and then

12. Consider the Tree Sort algorithm in which sorting is achieved by placing all elements to be sorted into a binary search tree and then taking the in-order traversal of the tree. AVL Tree Sort places all elements into an AVL binary search tree and then takes the in-order traversal of the tree. Which of the following statements are true about these sorts? A. Tree Sort and AVL Tree Sort both perform well on input that is already in nearly sorted order. B. The best case time complexity of Tree Sort is O(n log n) C. The worst case time complexity of AVL Tree Sort is ?(n). D. The best case space complexity of Tree Sort is 0(n) E. The best case space complexity of AVL Tree Sort is ?(log n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
