1.0.0 • Published 7 years ago

algoholic.js v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

algoholic.js

==================

Classic algorithms and data structures implemented in JavaScript. Build by taha Nebti for acm tcpc training.

Installing

npm install --save algoholic

Contents

Math algorithms

require('algorithms/math');
// or
require('algorithms').Math;
  • collatzConjecture
  • extendedEuclidean
  • fastPower
  • fibonacci
  • findDivisors
  • fisherYates
  • gcd (Greatest common divisor)
  • greatestDifference
  • lcm (Least common multiple)
  • newtonSqrt
  • nextPermutation
  • powerSet
  • reservoirSampling
  • shannonEntropy