Coder Social home page Coder Social logo

peferron / algo Goto Github PK

View Code? Open in Web Editor NEW
177.0 177.0 9.0 2.04 MB

Algorithms and data structures implemented in Go, JS, TypeScript, Rust, and Swift.

License: MIT License

JavaScript 12.19% Go 13.07% TypeScript 37.81% Shell 0.49% Rust 4.69% Swift 31.77%
algorithms data-structures go javascript rust swift typescript

algo's People

Contributors

dependabot[bot] avatar peferron 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

algo's Issues

[javascript] Use ECMAScript 6

Using ES6 features via node --harmony (limited ES6 support) or Traceur (wide ES6 coverage but more complicated to set up) could make the JS code cleaner to read. I should try it out next time I write a JS module.

[chinese_postman] Finish implementation

There's an unfinished implementation of the Chinese postman problem in the chinese_postman branch.

It's unfinished because solving this problem on undirected graphs is much more complicated than it looks. Specifically, one of the sub-problems it decomposes into is complicated: minimum weight perfect matching in a general undirected graph.

The right way to go would be to take care of this sub-problem first in a dedicated module—it definitely deserves it—and then go back to finish the chinese_postman module.

Note that the Chinese postman problem is much easier to solve on directed graphs: the sub-problem becomes matching in a bipartite graph, which is much simpler and has already been implemented in this repo.

[red-black_tree/javascript] Clean up root update

After insert and delete operations, the root is updated by picking a node from the tree and then calling root() on it (which goes up the parents recursively). It could probably be done in a cleaner way, for example by returning the new root from the insert and delete functions.

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.