A Sorting Algorithm Performance Visualizer written in Rust, utilizing Plotters for generating insightful histograms. This tool performs a comparative analysis of various sorting algorithms by timing their execution on a reversed array of 10,000 integers and presenting the results in a clear, graphical format.
- Implements multiple sorting algorithms:
- Bubble Sort
- Cocktail Shaker Sort
- Cycle Sort
- Gnome Sort
- Heap Sort
- Insertion Sort
- Merge Sort
- Quicksort
- Selection Sort
- Shellsort
- Generates a histogram illustrating execution times of each algorithm.
- Each algorithm's execution time is displayed in milliseconds or microseconds.
- Helps in evaluating and comparing sorting algorithm efficiency for different dataset scenarios.
- Rust programming language installed (Install Rust)
- Ensure Rust is installed on your system.
- Clone the repository:
git clone https://github.com/Telmo-Sousa/vis.git cd vis
- Run the project:
cargo run --release
- Initial execution times may vary due to factors like system load or compilation artifacts. Run the project multiple times for accurate comparisons.
- Why does it generate an image?
- The image visualizes sorting algorithm performance, making it easier to understand and compare their efficiency on large datasets.
This project is licensed under the MIT License. See the LICENSE file for details.