non recursive version of quicksort

Status
Not open for further replies.

manu2010

Newbie level 3
Joined
Mar 17, 2005
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,311
can you give me a non recursive version of quicksort that uses a stack. the version should store at the stack indicies[i,j] of subarrays that have not been sorted yet.
what is the number of [i,j] pairs, non-sorted subarrays that can belong to stack simultaneously.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…