Some0ne11/cpt212-sorting-algo
A Java program that implements bucket-based radix sort for sorting numbers and words, with complexity analysis through primitive operation counting and Excel graph plotting.
๐ Bucket-Based Radix Sort Algorithm
Technologies ย โข ย Getting Started ย โข ย Team Members
A Java program that implements bucket-based radix sort for sorting numbers and words, with complexity analysis through primitive operation counting and Excel graph plotting.
๐Preview the Graph for Complexity Analysis
๐ธ Output Preview
๐ป Technologies
- Java
- Microsoft Excel (for plotting graphs)
- Git (for version control)
Suggested IDE
- IntelliJ IDEA
- Eclipse
- Visual Studio Code
๐ Getting Started
Follow these instructions to run the project locally.
Prerequisites
Ensure you have the following installed:
- Java JDK 17+
- Git
- A Java IDE (e.g. IntelliJ)
Cloning
Clone the project repository:
git clone https://github.com/Some0ne11/cpt212-sorting-algo.gitRunning
Compile and run the sorting programs from your IDE or terminal:
# For numeric sorting
javac Sorting.java
java Sorting
# For word sorting
javac WordSorting.java
java WordSorting
# For complexity analysis with counter
javac SortingCounter.java
java SortingCounter
javac WordSortingCounter.java
java WordSortingCounter๐ Complexity Analysis
SortingCounter.javaandWordSortingCounter.javaare modified versions that count primitive operations.- Collected data is analyzed and visualized using Microsoft Excel to observe time complexity trends.
- Graphs include:
- Number of operations, T(n) vs input size, n for Number Sort
- Number of operations, T(n) vs input size, n for Word Sort
๐ค Team Members
Special thanks to all contributors of this project.
|
Muhammad Ammar Danial (22301793) |
Ng Xuan Hern (22304061) |
Low Yvonne (22305530) |
๐ Feel free to fork, contribute, or raise issues to improve this algorithm.

