Sorting Visualizer is a project designed to help users understand and visualize how various sorting algorithms work. It provides a graphical interface to demonstrate sorting step-by-step, making it an excellent tool for educational purposes.
- Multiple Sorting Algorithms: Visualize algorithms like Merge Sort, Insertion Sort, and more.
- Interactive UI: Built using Qt for an engaging and user-friendly experience.
- Real-time Updates: See the sorting process unfold in real-time.
- Modular Codebase: Includes separate components like
algo.hfor algorithm definitions andInput.hfor input handling.
To use this project, ensure you have the following installed:
- Qt Creator (version 6.9 or higher recommended)
- A compatible C++ compiler
- CMake
-
Install Qt Creator:
Download and install the latest version of Qt Creator from the official website.
-
Clone the Repository:
git clone https://github.com/Chetanpyasi/Sorting-Visualiser cd Sorting_Visualizer -
Open the Project in Qt Creator:
- Launch Qt Creator.
- Click on
Open File or Project. - Navigate to the cloned repository folder and select the
CMakeLists.txtfile.
-
Configure the Project:
- Qt Creator will automatically detect your CMake configuration.
- Choose a build kit (e.g., Desktop Qt 6.9 MinGW 64-bit).
- Click
Configure Project.
-
Build and Run:
- Click the Build button in Qt Creator to compile the project.
- Once built, click the Run button to launch the application.
.
├── sortingvisualizer.h # Header file defining sorting algorithms
├── sortingvisualizer.cpp # Implementation file for sorting algorithms
├── main.cpp # Entry point for the application
├── CMakeLists.txt # Project build configuration
└── README.md # Project documentation
- Run the application.
- Select a sorting algorithm from the menu.
- Provide input data (manual entry or predefined datasets).
- Click
Visualizeto see the sorting process in action.
Contributions are welcome! Feel free to open issues or submit pull requests.
- Inspired by various sorting visualizer projects and educational tools.
- Built using Qt Creator for a robust graphical interface.