What are applications of alphabetic trees?

What are some real-world applications of AVL trees today?

  • Answer:

    I doubt AVL trees are used much in the real world because they aren't taught much any more.  Red-black trees seems to have taken over as the balanced tree structure taught in most algorithms classes (perhaps due to the CLR textbook choice) so that's what expect gets used when you need a balanced search tree.

David Karger at Quora Visit the source

Was this solution helpful to you?

Other answers

search, insert, delete, min and max operations all run in O(logN). So, it has many use cases, all operations needs to have same time complexity, particularly look up intensive applications.

Pradeep Pujari

Trains in a railway system. I am not sure how IRCTC (Or, any other Railway system) implements it, but taking the fact into account that newer trains come up very few every year and the[code] struct train {};[/code] remains constant for a good period of time, an AVL implementation of this would be better than any other tree for searching. AVL trees are beneficial in the cases where you are designing some database where insertions and deletions are not that frequent but you have to frequently look-up for the items present in there.

Neeraj Sinha

There are as many applications of AVL tree as there are applications of set<>, TreeSet<>, etc. It provides you with the same interface as RB-tree which is used in implementation of standard libraries mentioned above. Actually, it is even faster than RB-tree, but requires one bit more memory to store additional info used for self-balancing.

Roman Rubanenko

search, insert, delete, min and max operations all run in O(logN). So, it has many use cases, all operations needs to have same time complexity, particularly look up intensive applications. Even though insertion is burden its easy for searching AVL is no longer used as Red-Black Tree over took AVL tree.

Sagar Gangadhar

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.