ianroberts131 / visual-algorithms

This is the repository for the website Visual Algorithms
http://visual-algorithms.surge.sh/
MIT License
2 stars 1 forks source link

Add key to quick sort #19

Open ianroberts131 opened 7 years ago

ianroberts131 commented 7 years ago

Feature

Why is this feature being added?

It's currently difficult to tell what the different colors mean in the quick sort animation (orange = less than pivot, purple = greater than pivot).

What should your feature do?

Since there are already labels for 'pivot' and 'prior pivot', more labels could just add to the confusion. This feature should add a simple key below the algorithm that shows what an orange box means and what a purple box means.

dawsonc623 commented 7 years ago

It may be worth adding this to all of the sorting algorithms. At the very least, the "key" (or "legend" if you will) should be implemented as a component that can be used in case other sorting methods that are as difficult to follow as quick sort are requested or implemented.

bweathers3 commented 7 years ago

I will work on this