Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.