Skip to content

xcrackerx/sorting-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms Visualizer

Responsive visualizer built using React for popular algorithms

cover


An attempt to help in learning popular sorting algorithms by visualization

Algorithms represented in this project

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Heap Sort
  • Merge Sort
  • Quick Sort

Helps to

  • understand the working of sorting algorithm
  • check total swaps required
  • check total comparisions
  • compare algorithms side by side
  • know the time taken (time is just an approximate unit for comparision)

Features

  • Sort any given array of 3 digits positive integers
  • Alter the speed of execution
  • Start, pause and reset the execution
  • Generate random array of numbers of sorting

Technologies

Features built using

  • Animations are done using pure CSS and uses FLIP principle
  • Flex is used for array display and manipulation of positions (flex order property)
  • JavaScript async generators are used heavily for the controlled execution of algorithms

Run in your local

  • git clone https://github.com/xcrackerx/sorting-visualizer.git
  • npm install (after navigating inside the directory)
  • npm run dev