From 397691a46312f9fe64497931b558977161486e71 Mon Sep 17 00:00:00 2001 From: ben-burlingham Date: Wed, 7 Oct 2015 06:10:55 -0700 Subject: [PATCH] Built sorter property into visualizer. --- index.html | 74 ++++++++++++------- js/bubblesort.js | 8 +- js/insertionsort.js | 6 +- js/mergesort.js | 22 +++--- js/quicksort.js | 14 ++-- js/selectionsort.js | 8 +- js/shellsort.js | 24 +++--- js/sorter.js | 2 +- js/visualizer.js | 175 +++++++++++++++++++++++++------------------- 9 files changed, 189 insertions(+), 144 deletions(-) diff --git a/index.html b/index.html index 41c3fda..0d6943e 100644 --- a/index.html +++ b/index.html @@ -61,25 +61,42 @@ for each one: in place? adaptive? stable? swaps. comparisons. random example. best case example. worst case example. -

Quicksort discussion

- used by chrome -
+ used by chrome.
+ swap. highlight. (un)fade. +

Mergesort discussion

- used by firefox and safari + used by firefox and safari.
-
+

Shellsort discussion

- several ways to pick gap width, but dependence on input data makes gap selection trivial - -
+ several ways to pick gap width, but dependence on input data makes gap selection trivial.
+ swap. highlight. fade. +

Selection sort discussion

- http://stackoverflow.com/questions/15799034/insertion-sort-vs-selection-sort + http://stackoverflow.com/questions/15799034/insertion-sort-vs-selection-sort
+ swap. highlight. fade. +
+ +

insertion sort discussion

+ how is this different from bubble and selection.
+ swap. highlight. fade. +
+ + +

bubble sort discussion

+ how is this different from insertion and selection sorts.
+ swap. highlight. fade. +
+ +

radix sort discussion

+ +