Added Stack iteration quick sort for visualization. #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Dan,
I have implemented a visualization for quick sort using the stack object to handle the recursive calls iteratively.
The main issue with trying to visualize quickdraw is that it uses recursion and you have to break that recursion into an iterative process so you can view each step in the iteration.
Using the Stack object allows this. You'll see in a comment in the code that this was not my design or finding but rather I found someone who cleverly broke the recursion and used that as a basis.
Originally I made the quicksort to be used in continuation of the pixel sorting video you did. However, I saw the visualisation video and decided to help there as well.
Hopefully, this is useful.
Thank for your time!