Mechanical workshops in Venezuela face critical challenges in the management of spare parts:
- Disorganized inventories with hundreds of parts.
- Difficulty prioritizing items by price, stock or demand
- Inefficient search times that affect customer service.
Develop a system that allows:
- Sort spare parts by key criteria (price, stock, name) 2.
- Optimize inventory and replenishment management
- Compare the performance of algorithms for informed decision making.
- Clone the repository
git clone git@github.com:MrTanuk/Testing-sorting-algorithms.git
cd Testing-sorting-algorithms- Install the dependencies
pip install numpy rich- Generate CSV File (if not already present):
python generate_csv.py- Run the program
python main.pySpare Parts Data:
- Unique ID
- Part Name
- Compatibility (Toyota, Ford, Chevrolet, etc.)
- Price
- Stock on hand
- Days until expiration
Sorting Algorithms:
| Criteria | Algorithm | Use Case |
|---|---|---|
| By Price | QuickSort | Identify Expensive Parts |
| By Stock | InsertionSort | Manage urgent replenishments |
| By Name | MergeSort | Quick Alphabet Search |
| By Compatibility | BubbleSort | Group parts by vehicle brand |
Performance Comparison:
- All algorithms are tested on the same extended dataset.
- The run time for each algorithm is displayed.
For the Shop Floor:
- 60% reduction in search times
- Intelligent inventory organization
- Proactive detection of critical stock
- Intelligent grouping: Quickly find all spare parts for a specific make
For the Customers:
- Increased speed of repair service
- Transparency in parts availability
- Competitive pricing through efficient management
- Python 3.10+
- Rich library for interactive tables (CLI)
- CSV for data management
- Custom sorting algorithms