Giter Site home page Giter Site logo

kotlin-algorithm's Introduction

Welcome to Kotlin Algorithms

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!

The algorithms

Searching

String Search

  • [Brute-Force String Search]
  • [Boyer-Moore]
  • Rabin-Karp
  • [Longest Common Subsequence]

Sorting

Basic sorts:

Fast sorts:

Special-purpose sorts:

  • Bucket Sort
  • Counting Sort
  • Radix Sort
  • [Topological Sort]

Compression

Miscellaneous

  • Shuffle Randomly rearranges the contents of an array.

Machine learning

  • [k-Means Clustering]
  • k-Nearest Neighbors
  • Linear Regression
  • Logistic Regression
  • Neural Networks
  • PageRank

Data structures

Variations on arrays

  • [Array2D]
  • [Bit Set]
  • [Fixed Size Array]
  • [Ordered Array](Ordered Array/)

Queues

  • Stack
  • Queue
  • Deque
  • [Priority Queue]
  • [Bounded Priority Queue]
  • [Ring Buffer]

Lists

Trees

  • 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]

Hashing

  • [Hash Table]
  • Hash Functions

Sets

Graphs

  • [Graph]
  • [Breadth-First Search (BFS)]
  • [Depth-First Search (DFS)]
  • [Shortest Path]
  • [Minimum Spanning Tree]
  • All Paths

License

All content is licensed under the terms of the MIT open source license.

Contributors

Contact

kotlin-algorithm's People

Contributors

gazolla avatar nicopasso avatar bitdeli-chef avatar keshava11 avatar lsoares avatar morilog avatar vanshg avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.