I've hit the books and was faced with problem i can't solve. I have been looking the information up a long. I broke my mind trying to understand it.
So, I'm given an array of length N (int) to sort it by using non-recursive merge sort algorithm. I learned merge sort algorithm for arrays of length 2^n. But I totally can't understand how it works for arrays of length N.
Can someone explain me how it works?