Can someone explain in English how non-recursive and recursive implementations of sorting algorithms differs from each other?
3 Answers
How they differ, in what sense? Bear in mind: any recursive algorithm can be implemented as an iterative algorithm, and vice versa (take a look at this post). Iteration or recursion - it's just an implementation detail; although it can have a major impact in performance depending on the choice, the algorithm will be the same nevertheless.

- 1
- 1

- 232,561
- 37
- 312
- 386
Recursive sorting algorithms work by splitting the input into two or more smaller inputs and then sorting those, then combining the results. Merge sort and quick sort are examples of recursive sorting algorithms.
A non-recursive technique is anything that doesn't use recursion. Insertion sort is a simple example of a non-recursive sorting algorithm.

- 811,555
- 193
- 1,581
- 1,452
-
2This is mostly true, so I won't downvote it, but any recursive algorithm, sorting or not, can be made into a non-recursive (aka iterative) algorithm. – lordcheeto Oct 18 '12 at 17:09
-
Insertion Sort can be implemented recursively as well. Here is one example: http://www.geeksforgeeks.org/recursive-insertion-sort/ – p_sutherland Dec 05 '17 at 04:39
A recursive sorting algorithm calls on itself to sort a smaller part of the array, then combining the partially sorted results. Quick-sort is an example.
A non-recursive algorithm does the sorting all at once, without calling itself. Bubble-sort is an example of a non-recursive algorithm.

- 12,947
- 4
- 56
- 80