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

https://github.com/nelsonbn/algorithms-data-structures-merge-sort

Algorithms and Data Structures - Merge Sort
https://github.com/nelsonbn/algorithms-data-structures-merge-sort

algorithms algorithms-and-data-structures merge-sort mergesort

Last synced: 9 months ago
JSON representation

Algorithms and Data Structures - Merge Sort

Awesome Lists containing this project

README

          

# Algorithms and Data Structures - Merge Sort

## Characteristics
- Time complexity:
- Best: Ω(n log(n))
- Average: Θ(n log(n))
- Worst: O(n log(n))
- Space complexity:
- Using arrays: O(n)
- Using linked lists (and Recusion): O(log(n))
- Not in-place
- Stable

## Demos:
- [With Arrays](./src/arrays.py)
- [With Linked Lists](./src/linked_lists.py)
- [With Parallelism](./src/parallelism.py)

## Demonstration
- [Algorithm Visualizer](https://algorithm-visualizer.org/divide-and-conquer/merge-sort)
- [Algorithm Visualizer](https://www.cs.usfca.edu/~galles/visualization/ComparisonSort.html)

## References
- [Other Algorithms & Data Structures](https://github.com/NelsonBN/algorithms-data-structures)