Here you'll find implementations of popular algorithms and data structures in Kotlin programming language.
This is a work in progress. More algorithms will be added soon. :-)
Suggestions and contributions are welcome!
- Linear Search
- Binary Search
- [Count Occurrences]
- [Select Minimum / Maximum]
- [k-th Largest Element]
- [Selection Sampling]
- [Union-Find]
- Depth-First Search
- [Brute-Force String Search]
- [Boyer-Moore]
- Rabin-Karp
- [Longest Common Subsequence]
Basic sorts:
Fast sorts:
- Quicksort
- Merge Sort
- [Heap Sort]
Special-purpose sorts:
- Bucket Sort
- Counting Sort
- Radix Sort
- [Topological Sort]
- Run-Length Encoding (RLE)
- [Huffman Coding]
- Shuffle Randomly rearranges the contents of an array.
- [k-Means Clustering]
- k-Nearest Neighbors
- Linear Regression
- Logistic Regression
- Neural Networks
- PageRank
- [Array2D]
- [Bit Set]
- [Fixed Size Array]
- [Ordered Array](Ordered Array/)
- Linked List
- Skip List
- Tree
- [Binary Tree]
- [Binary Search Tree (BST)]
- [AVL Tree]
- Red-Black Tree
- Splay Tree
- Threaded Binary Tree
- [Segment Tree]
- kd-Tree
- [Heap]
- Fibonacci Heap
- Trie
- [B-Tree]
- [Hash Table]
- Hash Functions
- [Bloom Filter]
- [Hash Set]
- Multiset
- Ordered Set
- [Graph]
- [Breadth-First Search (BFS)]
- [Depth-First Search (DFS)]
- [Shortest Path]
- [Minimum Spanning Tree]
- All Paths
All content is licensed under the terms of the MIT open source license.
- Sebastian Gazolla Jr
- @gazollajr
- http://gazapps.com
- http://about.me/gazolla