Skip to main content

Posts

Featured

CST370: Design and Analysis of Algorithms, Week 5

Week 5 This week we focused on quicksort, binary tree traversals and height, decrease-and-conquer algorithms, binary search, and topological sorting. This week felt pretty straightforward overall! One thing I had to refresh myself on was preorder, inorder and postorder traversals. At first, I could NOT remember which order was which, but after working through examples from the lectures, it came back pretty quickly.  Preorder: Root -> Left -> Right Inorder: Left -> Root -> Right Postorder: Left -> Right -> Root Quicksort felt familiar, especially after spending time on merge sort and divide-and-conquer in the last few weeks. The idea of breaking a problem into smaller pieces was not new at this point, so it was fairly easy to follow, implementing the pivot was new. Topological sorting was a topic that was newest for me, but even that connected to graphs and DFS, which we have already covered.  Overall, this week felt a lot more manageable than some of the earl...

Latest Posts

CST370: Design and Analysis of Algorithms, Week 4

CST370: Design and Analysis of Algorithms, Week 3

CST370: Design and Analysis of Algorithms, Week 2

CST370: Design and Analysis of Algorithms, Week 1

CST462: Race Gender & Class in the Digital World, Week 8

CST334: Operating Systems, Week 7

CST334: Operating Systems, Week 6

CST334: Operating Systems, Week 5

CST334: Operating Systems, Week 4

CST334: Operating Systems, Week 3