Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stephenombuya/dsa-practice

A comprehensive collection of Python implementations for sorting algorithms, search techniques, graph algorithms, and a basic inventory management system.
https://github.com/stephenombuya/dsa-practice

algorithms-and-data-structures dsa-practice open-source python3

Last synced: 21 days ago
JSON representation

A comprehensive collection of Python implementations for sorting algorithms, search techniques, graph algorithms, and a basic inventory management system.

Awesome Lists containing this project

README

        

# DSA-Practice🧮

## Overview
A comprehensive collection of Python implementations for sorting algorithms, search techniques, graph algorithms, and a basic inventory management system.

## Algorithms Implemented
- Sorting Algorithms
- Bubble Sort
- Merge Sort
- Quick Sort

- Search Algorithms
- Linear Search
- Binary Search

- Graph Algorithms
- Dijkstra's Shortest Path Algorithm

- Inventory Management System
- Item tracking
- Stock addition/removal
- Item search functionality

## Prerequisites
- Python 3.7+
- `heapq` module (standard library)

## Installation
```bash
git clone https://github.com/yourusername/python-algorithms.git
cd python-algorithms
```

## Usage Examples
```python
# Dijkstra's Algorithm
graph = create_graph()
start_city = "Eldoret"
end_city = "Mombasa"
shortest_path, shortest_distance = dijkstra(graph, start_city, end_city)
```

## Contributing
1. Fork repository
2. Create feature branch
3. Commit changes
4. Push to branch
5. Create Pull Request

## License
GNU General Public License v3.0