- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Mmm)
I am looking at the following algorithm:
What does the above algorithm do? Could you explain it to me? (Thinking)
I am looking at the following algorithm:
Code:
MERGESORT(A,l,r){
if (R==L) return;
MERGESORT(A,l,floor((r+l)/2));
MERGESORT(A,floor((r+l)/2)+1,r);
return MERGE(A,l,r,floor((r+l)/2));
What does the above algorithm do? Could you explain it to me? (Thinking)