python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Rotation in treap while keeping track of parent nodes
My treap maintains both the heap and BST properties, but the parent nodes of each node in the treap isn't always correct, and I think it's because of how I'm rotating.
Here are my rotation functions:
...
quazi_moto
Votes: 0
Answers: 1
real time applications of AVL trees
I am aware of some of the advantages of using AVL trees such as getting better time complexity to search an element log(number of nodes in tree) since the tree has self-balancing capabilities.
I am cu...
user4202236
Votes: 0
Answers: 0
Insertion and searching time complexity AVL Tree
I know AVL tree's search and insertion time complexity is supposed to be O(logn), but with the tree I built, when I make a graph with the times it takes to do N operations, it ends up beeing a N graph...
Loboh67
Votes: 0
Answers: 1
Java use of AVL tree for frequency of strings problem
I am exploring a problem where I have to keep track of the number of strings that contains a certain substring. I was wondering how do I use an AVL tree to solve it.
Here is the problem/question: http...
Jesslyn
Votes: 0
Answers: 0