Sorting Visualizer

Get Started

VISUALISE
ALL THE
Sorting
ALGORITHMS

cause.. The more you SEE the more you LEARN...

What is Sorting

A Sorting Algorithm is used to rearrange a given array or st of elements according to a comparison operator on the elements. The comparison operator is used to decide the new order of elements in the respective data structure.

Bubble Sort

Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This algorithm is not suitable for large data sets as its average and worst-case time complexity is quite high.

Learn more

Selection Sort

Selection sort is a simple and efficient sorting algorithm that works by repeatedly selecting the smallest (or largest) element from the unsorted portion of the st and moving it to the sorted portion of the st. The algorithm repeatedly selects the smallest (or largest) element from the unsorted portion of the st and swaps it with the first element of the unsorted portion.

Learn more

Insertion Sort

Insertion sort is a simple sorting algorithm that works similar to the way you sort playing cards in your hands. The array is virtually spt into a sorted and an unsorted part. Values from the unsorted part are picked and placed at the correct position in the sorted part.

Learn more

Merge Sort

Merge sort is a sorting algorithm that works by dividing an array into smaller subarrays, sorting each subarray, and then merging the sorted subarrays back together to form the final sorted array. In simple terms, we can say that the process of merge sort is to divide the array into two halves, sort each half, and then merge the sorted halves back together. This process is repeated until the entire array is sorted.

Learn more

Quick Sort

QuickSort is a Divide and Conquer algorithm. It picks an element as a pivot and partitions the given array around the picked pivot. There are many different versions of quickSort that pick pivot in different ways. The key process in quickSort is a partition().

Learn more

Heap Sort

Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to the selection sort where we first find the minimum element and place the minimum element at the beginning. Repeat the same process for the remaining elements.

Learn more