Skip to content

philipqnguyen/visualsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Sort

Visually bubble sort sticks on an html page. See the deployed version here.

Description

This is a simple visualization of the Bubble Sort algorithm. In this model, the algorithm works with an array that contains randomly generated numbers and sorts a set of two numbers at a time. If the number on the right is larger than the number on the left, the algorithm will switch them before moving on one place to the right. Each time the whole array has been examined, and the largest number has been switched to the furthest right, the next round will be examined with one less element.

Finally, the numbers are visualized on the HTML page as the pixel height of blue sticks in the html page. Enjoy!

Usage

Simply clone this repo, and cd into the directory. Then run open index.html to view it.

Author

Philip Q. Nguyen

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published