Talk:AVL tree/C++: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
The algorithms started out life in Pascal in a book called "Data Structures and Program Design" by Robert L Kruse. These were top/down (i.e. root to leaf) recursive algorithms without parent pointers. In 2006, the algorithms were made bottom/up (i.e. leaf to root) and the recursion was abolished (using parent pointers). These algorithms may be compared to the red/black set algorithms of STL. [[User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 12:30, 13 July 2016 (UTC)
 
I tested the elaborate code versus the shorter C++ version (on the main page - see [http://rosettacode.org/wiki/AVL_Tree/Performance Performance]) with the following results:
<pre>
AVLtree insertions took: 00:00:02.5097816