javascript-algorithms
javascript-algorithms copied to clipboard
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
Could we have just one way of doing the swapping to have better consistency across the code
Like how we have here https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sorting/bubble-sort/BubbleSort.js#L22 instead of https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sorting/shell-sort/ShellSort.js#L24
Swap
Closes #314
Add MiniMax
Add Markov Chain or Markov Process algorithm
Wikipedia: https://en.wikipedia.org/wiki/Markov_chain Implementations: * Random pronounceable words generator Example in coffee-script (8 years old) here: https://github.com/SyntaxColoring/Markov-Word-Generator/tree/Markov.coffee * Random sentence generator Example in ruby/python (7 years old) here: https://github.com/hrs/markov-sentence-generator
A* algorithm?
Hey! This repo is awesome! Nice job! While I was reading through the algorithms, I found weird that the [A* algorithm](https://en.m.wikipedia.org/wiki/A*_search_algorithm) was missing, which is one of the few I...
npm该更新了 它老了呀
Algorithms
Project_bases for AIA
[String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated so we replace it with [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) which works similarily but isn't deprecated. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't...
Data structures