This repository contains implementations of simple sorting algorithms and their time complexity and speed analysis
- Bubble Sort
- Selection Sort
- Merge Sort
- Python sorted()
Expected time complexity of each sorting algorithm implemented:
- Bubble Sort: O(n^2)
- Selection Sort: O(n^2)
- Merge Sort: O(n log n)
- Python Sorted(): O(n log n)
-
Clone the repository:
git clone https://github.com/KarasTomas/Sorting-time-task.git
-
Navigate to the project directory:
cd Sorting-time-task
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the unit tests to ensure the sorting algorithms work correctly:
python .\tests\sorting_algorithms_test.py
-
Run the sorting algorithms and measure their performance:
python sorting_time_task.py
Tomáš Karas email: [email protected]