Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eastonarcher/python-sort-algorithms
⚡Collection of Python sorting algorithms - Bubble Sort, Merge Sort, and Quick Sort
https://github.com/eastonarcher/python-sort-algorithms
algorithm bubble-sort merge-sort python3 quick-sort
Last synced: 3 days ago
JSON representation
⚡Collection of Python sorting algorithms - Bubble Sort, Merge Sort, and Quick Sort
- Host: GitHub
- URL: https://github.com/eastonarcher/python-sort-algorithms
- Owner: EastonArcher
- Created: 2024-03-31T00:36:05.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T15:31:38.000Z (7 months ago)
- Last Synced: 2024-04-17T16:48:07.351Z (7 months ago)
- Topics: algorithm, bubble-sort, merge-sort, python3, quick-sort
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Sorting Algorithms
This repository contains implementations of various sorting algorithms written in Python## Algorithms
1. **Bubble Sort**: A simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order2. **Merge Sort**: A divide and conquer algorithm that divides the input array into two halves, sorts each half recursively, and then merges the sorted halves
3. **Quick Sort**: Another divide and conquer algorithm that selects a 'pivot' element from the array and partitions the other elements into two sub-arrays according to whether they are less than or greater than the pivot
## How to Use
Each sorting algorithm is implemented in a separate Python script:- `bubbleSort.py`
- `mergeSort.py`
- `quickSort.py`Feel free to explore the scripts, use them in your projects, or modify them!