Skip to content

This is a visualization of a classic sorting algorithm - BUBBLE SORT using JavaScript.

Notifications You must be signed in to change notification settings

NadeemShakya/BubbleSort-Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BubbleSort Visualization

This is a visualization of a classic sorting algorithm - BUBBLE SORT using JavaScript.

Steps

  • Open index.html inside of 'empty-example' to view the sorting.
  • See 'sketch.js' to view the source code.

Bubble Sort

It is one of the simplest sorting algorithm which compares two elements in the list and sorts then accordingly. In each iteration the largest(or smallest) element bubbles upto the top and hence referred as Bubble Sort. The sorting happens until all the elements in the list are sorted.
It has the worst case time complexity of O(n * n).
It is an inplace sorting algorithm.
References
Bubble Sort - Geeks for Geek
Bubble Sort - Wikipedia

About

This is a visualization of a classic sorting algorithm - BUBBLE SORT using JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published