Coder Social home page Coder Social logo

williamfiset / algorithms Goto Github PK

View Code? Open in Web Editor NEW
17.0K 437.0 4.3K 1.22 GB

A collection of algorithms and data structures

License: MIT License

Java 99.12% Python 0.05% JavaScript 0.64% Kotlin 0.18%
algorithms linear-algebra graph-theory search-algorithms strings sorting-algorithms dynamic-programming geometry mathematics dijkstra search-algorithm tree-algorithms algorithm maxflow adjacency edmonds-karp-algorithm adjacency-matrix nlog matrix-multiplication traveling-salesman

algorithms's Issues

Add quickselect algorithm

Add quickselect algorithm. Quickselect is a selection algorithm to find the kth smallest element in an unordered list.

GaussianElimination explanation

In the GaussianElimination.java file it is written that you should check for consistency and/or multiple solutions before trying to solve, however I don't think that the methods correctly do this for an arbitrary matrix. I think that the solve method should be run first in order to put the matrix into reduced row echelon form and from there the isInconsistent and hasMultipleSolutions can be used correctly. Does this look/sound right?

Missing Algorithms

Still need to code up and document usage of how to use the following algorithms. Help is of course always appreciated :)

Graph Theory

Tree related

  • Centroid decomposition
  • Heavy-Light decomposition
    • Distance between two nodes
    • Lowest common ancestor
  • Tree Center(s)
  • Tree Diameter
  • Tree Isomorphism/canonical form, O(V+E)
  • Rooting tree

Strings

  • Aho-Corasick
  • Boyer-Moore
  • Burrows Wheeler
  • Longest repeated substring(s)
  • Longest common substring(s)
  • Suffix array LCP Kasai algorithm
  • Suffix array string match O(mlogn)
  • Suffix array string match O(m + logn)
  • Z-Algorithm

Time complexity

Add time complexity to all algorithms in README for ease of lookup.

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.