Git Product home page Git Product logo

codelibrary's People

Contributors

adamsol avatar ahtotruu avatar alterdego avatar dedztbh avatar devanshdalal avatar indy256 avatar kodejuice avatar yuridenison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codelibrary's Issues

Dynamic graph connectivity

Linear recurrence solver, Berlekamp–Massey algorithm

Wavelet tree

AhoCorasick broken

Looks like algorithm broken. For example

ahoCorasick.addString("a");
ahoCorasick.addString("aa");
ahoCorasick.addString("abaaa");
String s = "abaa";

Answer will be [0] - second string got lost.

Polynom division, evaluation, square root in O(n*log^2(n))

Maximum weighted matching in general graph

History

Hello!

I know that it might be a small nuisance, but could you please use a better description in your commits rather than just "update"? Something like "update Sort C++" would suffice to keep up with the library.

Cheers and keep up the great work!

implementation request: partially persistent red-black tree

I want to emphasize that I am referring to an actual partially persistent tree in which multiple tree mutations may be grouped together into a single version, as opposed to a persistent tree in which each mutation generates a new version. Implementations of the later can easily be found. I have found no implementation of the former.

Making requests

If it is appropriate, I'd like to make a request for an implementation. If so, where about would I make the request?

LICENSE?

What is the license on this code? We would like to use your implementation of Tarjan's algorithm in one of our projects, but want to make sure we have the appropriate permission.

The project I'd like to use the code in uses the NCSA open-source license (http://opensource.org/licenses/NCSA) so some sort of BSD or MIT license would be preferable.

Levenstein automata

Dynamic convex hull

Problem for studying persistent tree

Thank you for your sharing the code. I'am a fresh man in acm and using Java to code. I like your writing sytle of the persistent tree, using linked list looks so good.
And I spent a whole night trying to rewrite it into a interval modification version, but I fail......
Can you give me some tips about it? The algorithms implement in Java is really hard to find......‎
Thanks a lot!

SIMD optimizations

Big Integer Template problems

https://github.com/indy256/codelibrary/blob/master/cpp/bigint.cpp

As far as I known, this code has 2 problems:

  • can't process long long integer as int. (It will not cause a compilation error, it will convert long long into int first, then process it as int)
  • divide by large negative integer will get wrong answer, for example 5 / -2 will return -2, expected result is -3 (at least python will give out answer -3).

I will try to fix it when I have time and file a pull request. Hope you guys noticed.

Subset convolution, Walsh–Hadamard transform

Maximum density subgraph

https://www2.eecs.berkeley.edu/Pubs/TechRpts/1984/CSD-84-171.pdf
https://en.wikipedia.org/wiki/Dense_subgraph
jgrapht/jgrapht#712

Maximum density subgraph ( \sum W_e + \sum W_v ) / |V|
Binary search on answer:
For a fixed D, construct a Max flow model as follow:
Let S be Sum of all weight( or inf)
1. from source to each node with cap = S
2. For each (u,v,w) in E, (u->v,cap=w), (v->u,cap=w)
3. For each node v, from v to sink with cap = S + 2 * D
- deg[v] - 2 * (W of v)
where deg[v] = \sum weight of edge associated with v
If maxflow < S * |V|, D is an answer.
Requiring subgraph: all vertex can be reached from
source with
edge whose cap > 0.

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.