In the text, we say that after the merge sort splits the array into two subarrays, it then sorts these two subarrays and merges them. Why might someone be puzzled by our statement that “it then sorts these two subarrays”?
What will be an ideal response?
In a sense, it does not really sort these two subarrays. It simply keeps splitting the original array in half until it provides a one-element subarray, which is, of course, sorted. It then builds up the original two subarrays by merging these one-element arrays to form larger subarrays, which are then merged until the whole array has been sorted.
Computer Science & Information Technology
You might also like to view...
Which of the following can preven an unauthorized person from accessing the network by plugging into an open network jack?
A. 802.1x B. DHCP C. 802.q D. NIPS
Computer Science & Information Technology
Virtual Machine configurable settings support up to _______ TB of RAM per VM
Fill in the blank(s) with correct word
Computer Science & Information Technology