Sarah P.
asked 08/08/20
An array is going through the sorting process by the 'Merge Sort algorithm'. Fill all arrays:
8 3 9 1 5 8 7 4
----->
recurse down
A.
------>
B. -----------> F. return back up
-------> --------> E.
C. ------> D.
------->
base case(terminal)
Patrick B.
answered 08/08/20
Math and computer tutor/teacher
merging 8 and 3: 3 8
merging 9 and 1: 1 9
merging these: 1 3 8 9 <-- buffered
merging 5 and 8: 5 8
mergin 7 and 4: 4 7
merging these: 4 5 7 8 <--- buffered
merging the buffered:
1 3 4 5 7 8 8 9
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.