A Java program that compares the performance of multiple sorting algorithms by measuring execution time on the same dataset.
This project evaluates and compares different sorting algorithms to demonstrate their relative performance. By applying each algorithm to identical data and measuring execution time, the program highlights differences in efficiency and time complexity.
- Bubble Sort
- Selection Sort
- Insertion Sort
- (Optional) Java built-in sort
- Generates or loads a dataset of numbers
- Applies each sorting algorithm to a copy of the dataset
- Measures execution time for each algorithm
- Displays comparative performance results
- Java
- Algorithms
- Performance Measurement
- Arrays and Control Structures
src/
└── SortingComparison.java
javac src/SortingComparison.java
java src.SortingComparison