Code Monkey home page Code Monkey logo

java-templates-algorithms's Introduction

Java Template and Algorrithms

Compilation of all the Java Algorithms, Datastrutures, Dynamic Programming, and Graph Theory templates that I currently know of

Under the Java_Templates_Algorithms, you will find my Java template Algorithms to various types of questions (e.g. 0-1 Knapsack, which uses dp). The Algorithms are organized under the type of algorithm they use (Dp, Graph, etc...)

Algorithm sets are organized into different folders

Algorithms

  • Array Rotation
  • Backtracking
  • Binary Search
  • Closest Two Points
  • Count Inversions
  • Cycle Detection (Brent and Floyd)
  • Majority
  • Meet In The Middle
  • Permutation Index
  • Sort
  • Ternary Search
  • Two Sat & an example

Datastructures

  • Arne Andersson Tree
  • Adelson-Velskii and Landis Tree
  • BTree
  • Binary Heap (EXTENDED)
  • Binary Indexed Tree (2D)
  • Deque
  • Difference Array (2D)
  • HashMap
  • Implicit Segment Tree
  • Implicit Treap
  • Interval Tree
  • KdTree
  • Link Cut Tree
  • Merge Tree
  • MinQueue
  • Peristent Binary Search Tree
  • Persistent Linked List
  • Persistent Segment Tree
  • Prefix Sum (2D)
  • Quad Tree
  • Randomized Queue
  • Range Tree
  • Red Black Tree
  • Segment Tree (recursive and non-recursive)
  • Size Balanced Tree
  • Skip List
  • Sparse Table
  • Splay Tree (complex and simple)
  • Treap (complex and simple)
  • Union Find

Dynamic Programming

  • Binomial Coefficients
  • Catalan Numbers
  • Coin Chang
  • Divide and Conquer
  • Domino Fill
  • Edit Distance
  • Egg Dropping
  • Hamming Sequence
  • 0-1 Knapsack
  • LCS (subsequence and substring)
  • LIS
  • Maximal Zero Submatrix
  • Maximum Subarray
  • Minimum Cost Triangulation
  • Minimum Matrix Chin Multiplication
  • Shortest Hamiliton Cycle & Path

Graph Theory

  • Bron Kerbsch
  • Centers
  • DFS Biconnected Components
  • DFS Bipartite
  • DFS Cycle Detection
  • DFS Eulerian
  • DFS Topological Sorting
  • LCA DP
  • LCA Euler
  • LCA HLd
  • Rooted Treelsome Morphism
  • Strongly Connected Components Ksaruju
  • Strongly Connected Components Tarjan
  • Topological Sorting (Simple edition)

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.