A desktop application designed to bridge the gap between theoretical Big-O analysis and real execution behavior. The system allows users to write custom algorithms, run them on different input sizes, and automatically estimate their time complexity.
- Write and test custom algorithms
- Execute code safely in an isolated environment
- Measure execution time across multiple input sizes
- Automatic complexity estimation (Big-O)
- Multiple input modes:
- Random arrays
- Sorted arrays
- Reversed arrays
- Visual representation of performance
The system is divided into two main parts:
- User interface for writing code and viewing results
- Handles user input and visualization
- Input generation
- Code execution
- Runtime measurement
- Complexity analysis
- Front-End: Java, JavaFX
- Back-End: Python, FastAPI
- Networking: HTTP (API Communication)
- JSON Processing: Gson
- Visualization: JavaFX Charts
git clone https://github.com/Youssef-Reda440/Algorithm-Performance-Evaluator
cd Algorithm-Performance-Evaluatorcd backend
pip install -r requirements.txt
uvicorn main:app --reloadcd frontend
mvn clean javafx:run- User writes an algorithm in the UI
- The code is sent to the backend via API
- The system:
- Generates inputs
- Executes the code
- Measures runtime
- The Complexity Analyzer compares results with known complexity functions
- The best match is returned with a confidence score
- Python Docs: https://docs.python.org/3/
- FastAPI Docs: https://fastapi.tiangolo.com/
- Java Docs: https://docs.oracle.com/en/java/
- JavaFX Docs: https://openjfx.io/
- Gson: https://github.com/google/gson
