A collection of various algorithms written in swift (v4), primarly for learning purposes. It's still a work in progress.
- Bubble sort
- Selection sort
- Insertion sort
- Requires swift 4 compiler installed in you're system. For more info regarding installion, please visit: https://swift.org/getting-started/#installing-swift
For example, to run the SortingAlgorithm demo in terminal, write:
swift SortingAlgorithm.swift
- Bubble sort
- Selection sort
- Insertion sort
- Heap sort
- Merge sort
- Quick sort
- Linear Search
- Binary Search
- Bread-First Search
- Depth-First Search
- Bellman-Ford Algorithm
- Dijkstra's Algorithm
- A* algorithm
- Euclidian Algorithm
- Primality Test
Feel free to provide any feedback in the issues section.