Week 4 CST370
Reviewing for the midterm has been pretty intense. I've been going through old problem sets and making sure I understand the complexity analysis for each algorithm.
Merge sort finally clicked for me after working through several examples. The divide and conquer approach is elegant: split the array in half recursively, then merge the sorted halves back together.
The O(n log n) time complexity makes sense now that I see how the recursion tree works. Still need to practice a few more sorting problems to master the skill.
I think I did okay on the midterm, a few of the problems were tricky, like the increased number of coin puzzle.
Comments
Post a Comment