peferron / algo Goto Github PK
View Code? Open in Web Editor NEWAlgorithms and data structures implemented in Go, JS, TypeScript, Rust, and Swift.
License: MIT License
Algorithms and data structures implemented in Go, JS, TypeScript, Rust, and Swift.
License: MIT License
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.