http://www.nist.gov/dads/HTML/avltree.html
If you pick your root unwisely, your BST may resemble a linked list.
Also consider
- the cost of constructing the tree in the first place
- the cost of keeping it balanced
- the number of searches performed
- the distribution of search results.
You need the whole program scenario to make an accurate judgement.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953