Giter Club home page Giter Club logo

cp-implementations's Introduction

Data structures and algorithms library.


Repository with implementations and explanations of the following data structures and algorithms.

Searching:

Sorting:

Basic Data Structures:

Graphs:

Fundamentals:

Advanced:

  • Shortest Path Faster Algorithm (SPFA)
  • Strongly connected components (Koraraju)
  • Boolean 2 satisfiability (2-SAT)
  • K-th ancestor
  • Lowest common ancestor (LCA)
  • Max flow (Dinic)
  • Max flow (MPM)
  • Min cost max flow (assignment problem)
  • Virtual tree
  • A*

String matching:

  • Rolling hash
  • Rabin Karp
  • Trie (Prefix Tree)
  • Knuth Morris Pratt (KMP)
  • Aho corasick (KMP Generalization)
  • Suffix array
  • Hash segment tree

Range Query:

  • Sqrt decomposition
  • Sparse table
  • 2D Sparse table
  • Fenwick tree (BITree)
  • Segment tree
  • 2D Segment Tree
  • Merge sort segment tree
  • Implicit treap

Persistance:

  • Persitent array
  • Persistent segment tree

Math:

  • Fast pow
  • Matrix fast pow
  • Sieve of Eratosthenes
  • Fast Fourier transform

Geometry:

  • Convex hull (Graham Scan)
  • KD tree

cp-implementations's People

Contributors

mihail-m avatar dimitarseykov avatar nikolai-tsonev 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.