Sorting Visualizer is an interactive Android application that demonstrates the mechanics of various sorting algorithms through animation. It is designed to help users understand how different algorithms approach the task of sorting data by visualizing the process in real time.
-
Multiple Sorting Algorithms: Supports a variety of sorting algorithms including:
- Bubble Sort
- Bucket Sort
- Count Sort
- Heap Sort
- Insertion Sort
- Merge Sort
- Pigeonhole Sort
- Quick Sort
- Selection Sort
- Shell Sort
-
Data Randomization: Allows users to randomize the dataset to see how algorithms perform under different data conditions.
-
Visualization: Utilizes
com.github.mikephil.charting.charts.BarChart
to animate the sorting process with bar charts representing data elements. -
Adjustable Animation Speed: Users can control the speed of the sorting animation to better observe the sorting process.
-
User-Friendly Interface: Simple and intuitive interface for users of all levels.
To get started with Sorting Visualizer, clone this repository to your local machine using the following command:
git clone https://github.com/angatiabenson/sorting-visualizer
After cloning, navigate to the project directory and build the project using Android Studio.
- Open the app on your Android device.
- Use the slide to increase and generate a new dataset.
- Select a sorting algorithm from the list provided.
- Select the animation speed desired.
- Then it will begin the visualization automatically.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Special thanks to Mike Phil for the charting library that made these visualizations possible.