Featured iPhone Development Resources iOS Development Source Code Examples Swift

Examples: Common Data Structures And Algorithms Implemented In Swift

Last year I mentioned a nice collection of design patterns implemented in Swift.

Here’s a project from Wayne Bishop that provides a number of examples of many different data structures implemented in Swift, and also a number of commonly seen algorithms.

Here’s a list of the algorithms within Swift Structures as stated within the readme:

Linked Lists
Binary Search
Insertion Sort
Bubble Sort
Quick Sort
Merge Sort
Hash Tables
Binary Search Trees
Stacks & Queues
Dijkstra’s Shortest Path
Heaps & Heapsort Operations
Depth-First Search
Breath-First Search

You can find SwiftStructures on Github here.

A great collection of common data structures and algorithms if you’re looking for an implementation or just learning Swift.