cst370 week6
This week started with covering AVL trees and 2-3 trees. At first the order of operations required to properly rebalance and maintain these trees after insertions or deletions was a bit tricky to follow but carefully working through the videos and demonstrations helped clarify the rotation and restructuring processes. Seeing multiple examples made it much easier to understand how these self balancing trees maintain structure.
After that was heaps, how to identify them, how to construct them while maintaining heap properties, and how heap sort works. The progression from understanding heap structure to applying it in heap sort helped connect the conceptual sides of the topic. The final lectures this week focused on hashing and hash tables. I found hashing interesting because the overall concept feels intuitive, which made the material easier to grasp while still demonstrating how powerful hash tables can be for achieving efficient lookups.
The homework this week was definitely challenging, especially working through the implementation of tree rebalancing. While challenging, it did solidified my understanding of how max heap trees function internally. Building and handling a hash table also provided valuable insight into how these data structures operate behind the scenes. Implementing collision handling and table resizing was a fun puzzle to work through.
Comments
Post a Comment