Revisit Merge Sort

Merge sort is a fundamental algorithm in computer science. However, I found that many tutorials on the Internet fail to implement it efficiently. Basic ideas Merge sort is a divide-and-conquer algorithm. It divides the input array into two halves, recursively sorts them, and then merges the two sorted halves. The merge process is the key to the efficiency of merge sort. To what follows, I will focus on the merge process. [Read More]