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
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
Related Q & A:
- What Are The Best Android Applications For Samsung Galaxy Fit?Best solution by samsung.com
- What's the best digital Camcorder on the market today?Best solution by Yahoo! Answers
- What are the best iTouch applications?Best solution by eHow old
- What does the Christian world view and the evolutionary world view have in common?Best solution by Yahoo! Answers
- What are some good free applications on the Android market?Best solution by play.google.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.