https://github.com/ilovebacteria/analysis-prime-number-algorithms
My Data Structure course project. Analyzing the performance of some prime number algorithms with graph
https://github.com/ilovebacteria/analysis-prime-number-algorithms
algorithm algorithms data-structures graph java matplotlib pyfpdf python
Last synced: 16 days ago
JSON representation
My Data Structure course project. Analyzing the performance of some prime number algorithms with graph
- Host: GitHub
- URL: https://github.com/ilovebacteria/analysis-prime-number-algorithms
- Owner: ILoveBacteria
- License: mit
- Created: 2022-12-10T07:42:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T06:30:12.000Z (over 3 years ago)
- Last Synced: 2025-08-22T01:32:22.417Z (9 months ago)
- Topics: algorithm, algorithms, data-structures, graph, java, matplotlib, pyfpdf, python
- Language: Java
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Analysis Prime Number Algorithms
[](https://github.com/ILoveBacteria/analysis-prime-number-algorithms/blob/master/LICENSE)
[](https://github.com/ILoveBacteria/analysis-prime-number-algorithms/issues)
[](https://github.com/ILoveBacteria/analysis-prime-number-algorithms/network/members)
[]()
[]()
[](https://github.com/ILoveBacteria/analysis-prime-number-algorithms/commits/master)
## Description
This is my project for the course "Data Structures" at Shahid Beheshti University. The project is about analyzing the performance of some prime number algorithms. Analysis is done by measuring the time of each algorithm. Creating graphs and tables is done by using the [matplotlib](https://matplotlib.org) library and generating a pdf file is done by using the [FPDF](https://pyfpdf.readthedocs.io/en/latest/) library.
## How To Test On Your Machine
### What You Need?
- Python 3.10
- JDK 11
- Pipenv
1. Clone the repository
```bash
git clone https://github.com/ILoveBacteria/analysis-prime-number-algorithms.git
```
2. Go to the project directory
3. Compile Java code then run the `Main` class
```bash
javac -d ./out ./src/*.java
java -cp ./out Main
```
4. Install python dependencies
```bash
pipenv sync
```
5. Run the python script
```bash
pipenv run python analysis.py
```
6. Open the generated pdf file in the `output` directory