CST370 - Week 6 Reflection

 Week 6 Learning Recap

        Week 6 of CST370 revealed many clear-cut rules and hands-on navigation tools for the handful of data structures covered, including but not limited to: balanced binary search trees (AVL and 2-3 trees), heaps, and hash tables. In the fight to not feel overwhelmed amid the many moving pieces we deal with in CST370, I greatly appreciate how each structure from this week has a strict internal rule set with an accompanying specific algorithmic repair process when those rules are violated. In theory, that's how all algorithmic concepts should be, but I found working through the example problems to be more tactile and logical than I perhaps expected. This week proved to be a bit more like a Lego set and less abstract than some attempts have proven to be in prior modules. It could just be that the nearness of the next exam looms and needing to absorb the material sufficiently now for the exam is not lost on me. The heap and linear probe operations homework enforced that notion as well.

        Tools such as rotations in AVL trees, node splitting in 2-3 trees, the bottom-up heap construction algorithm, linear probing, and load factor all act as guardrails to keep each structure/resolution process within its respective required constraints. Heaps were a satisfying shift in perspective, array representation and the accompanying algorithm in the textbook was immediately clear. Unlike binary search trees, heaps do not enforce left-to-right ordering; instead, they adhere to parental dominance. Hash tables introduced a different kind of discipline--rather than structural rotations or swaps, resolving table problems depends on managing collisions and maintaining an acceptable load factor. Linear probing illustrates how simple arithmetic can preserve correctness, while rehashing demonstrated the importance of anticipating performance degradation before it heads for a crash. Although the prompt initially looked more daunting at first glance, hash table operations proved to be friendlier to me than heaps when it came to the homework assignments.

Comments

Popular posts from this blog

Week 1 - CST363 First Post: Relational Database Reflections

Week 6 - Weekly Reflection

Week 5 - Slow Indexes Reflection