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 library and generating a pdf file is done by using the FPDF library.
- Python 3.10
- JDK 11
- Pipenv
- Clone the repository
git clone https://github.com/ILoveBacteria/analysis-prime-number-algorithms.git
-
Go to the project directory
-
Compile Java code then run the
Main
class
javac -d ./out ./src/*.java
java -cp ./out Main
- Install python dependencies
pipenv sync
- Run the python script
pipenv run python analysis.py
- Open the generated pdf file in the
output
directory