
www.rsisinternational.org
INTERNATIONAL JOURNAL OF LATEST TECHNOLOGY IN ENGINEERING,
MANAGEMENT & APPLIED SCIENCE (IJLTEMAS)
ISSN 2278-2540 | DOI: 10.51583/IJLTEMAS | Volume XV, Issue V, May 2026
Representation of Different Sorting Algorithms Using Sorting
Visualizer
Ashish Gautam
1
, Deepak Thakur
2
1
Assistant Professor, Computer Science & Engineering, Creanovation Technologies Private Limited,
NextGen Academy, Mohali, Punjab, India
2
Assistant Professor, Computer Science & Engineering, Creanovation Technologies Private Limited,
NextGen Academy, Mohali, Punjab, India
DOI:
https://doi.org/10.51583/IJLTEMAS.2026.150500040
Received: 03 May 2026; Accepted: 08 May 2026; Published: 26 May 2026
ABSTRACT
The most effective way to sort elements (data) significantly impacts how quickly a computer can complete a task.
The sorting algorithm is one of computer science’s most important areas of study. It is the process of arranging
unorganized elements in an organized manner. The main goal is to make records easier to search, sort, insert, and
delete. Through the description of the existing five sorting algorithms: Bubble, Selection, Insertion, Merge, and
Quick Sort, the Time and Space Complexity are determined. Time complexity varies as Best Case(O), Average
Case(Θ), and Worst Case(Ω). Here in sorting, the Worst Case complexity is O(n
2
), and the Best Case complexity
is O(n log n), where "n" represents the number of elements(data) in the array. This project consists of a UI-based
web application that can visualize the sorting process using various colors and denote the status of the elements
of the array.
INTRODUCTION
In today’s era the data is growing in abundant amounts and searching through that huge data is time-consuming.
Sorting and Searching is an important operations in computer programming. Among them, one of the most
important subroutines in many algorithms is sorting the data. Therefore sorting techniques are used to sort
the data in an ordered manner.
Different sorting algorithms differ in terms of efficiency, memory usage, time complexity, and other features.
For decades work has been done on sorting algorithms to make it more efficient and less time-consuming. But
every sorting algorithm is not suitable for different types of data sets. Some sorting methods might work
excellently at some data sets but if we use the same sorting method for another data set it might work worse. So
accordingly the algorithm must be selected to sort the data, keeping in mind that it is efficient and less time-
consuming.
Sorting algorithms are basically devised to arrange the data items in a number of ways such as it can be sorted
from higher to lower order or it can be sorted from lower to higher order as needed. The time complexity of
many sorting algorithms is linear or quadratic. Many of them have quadratic time complexity as their worst-case
scenario, whereas linear time complexity is their best-case scenario.
For each data set majorly two operations are performed within the elements: Comparison and Swapping. The
efficiency of any sorting algorithm is compared in terms of time complexity which depends on the number of
comparisons performed on the particular data set. Therefore the time complexities are referred to as best, worst,
and average cases.
Sorting of data can be categorized into two ways: recursive approach and iterative approach.