InterviewSolution
Saved Bookmarks
| 1. |
Is there a good reason to choose BSTs over AVLs in the first place? |
|
Answer» If you wish to compare the two: an AVL tree to a simple binary search tree (BST) without balancing it, then AVL:
The worst-case for BST without balancing is quite terrible (linear). However, if you are confident that this worst-case scenario will not OCCUR, or if you don't mind if the process is slow in rare CIRCUMSTANCES, BST without balancing may be preferable to AVL. |
|