CST 370 - Design and Analysis of Algorithms - Week 4

 



This week in CST-370, we learned about the merge sort algorithm. Merge sort follows the divide and conquer technique to efficiently sort an input array, with a time complexity of Θ(n log n). I found this algorithm relatively easy to understand. The process begins by dividing an unsorted array into two halves, and this division continues recursively until we are left with individual elements. Once the base case is reached, the sorting phase begins, where smaller elements are placed on the left and larger elements on the right. This merging process continues until a fully sorted array is obtained. Besides learning about merge sort, we spent the rest of the week reviewing for the midterm. While we did not cover much new material, I found merge sort to be an interesting and useful algorithm.

Comments

Popular posts from this blog

CST 334 - Operating Systems - Week 6

CST 363 - Introduction to Database - Week 3

CST 311 - Intro to Computer Networks - Week 1