I am attempting to implement quick sort in Python without using recursion, but all reference implementations or pseudo codes I have found so far use recursion.
The reason for this is that I will adapt this non-recursive implementation to run on GPUs using Numba, and I cannot make recursive calls there.
Is there a quick sort implementation for a 1d array (say, a Numpy array or Python list) that does not use recursion?
Thanks,
Eduardo