CST 370-30 - Algorithm Design & Analysis Week 6
Week 6:
This week focused on balanced search structures and priority based structures. At first AVL trees were confusing, especially keeping track of balance factors after each insertion. After doing several rotation examples, I started noticing patterns in the cases instead of just memorizing steps. Some insertions only needed a quick fix, while others required adjusting two levels of the tree. It started to make more sense when I followed the height updates step by step from the leaf up to the root. After that, 2 3 trees felt like a shift in thinking because instead of rotating nodes, the structure avoids imbalance by storing more than one key in a node. That contrast helped me see that both methods are trying to keep searches fast, just in their own way. Heaps and heapsort clarified how the heap property supports efficient removal of maximum elements and sorting in place. Finally, hashing introduced constant time access ideas, along with handling collisions and load factor considerations.
Comments
Post a Comment