No description, website, or topics provided.
JavaScript CSS CoffeeScript Ruby
Permalink
Failed to load latest commit information.
cached
coffee
spec
t
templates
test
web
#karma.js#
.gitignore
Gemfile
Gemfile.lock
Guardfile
README.md
ascii2yaml.rb
big_o.ascii
big_o.csv
big_o.yml
csv2yaml.rb
karma.js
processor.rb
scraper.rb
topic.json

README.md

angular-algorithms

A collection of algorithms implemented in AngularJS.

Goals

  • Build algorithms in JS
  • Expose limitations of JS when building algorithms
  • Write tests using Karma (on top of Jasmine) to verify code
  • Experiment with different browsers to see where subtle JS changes affect algorithms
  • Collect timing information and graph timing information (using Flot.js)
  • Optionally support different algorithms for a problem set to experiment and see timing
  • Verify and expose Big-O analysis

Algorithms

  • Calculate e
  • Sieve of Erasothenes
  • Quick sort
  • Bubble sort

Tools you should have

How it works

  • Guard file builds topics.json
  • Web server

Build your own algorithms

  • Fork the repository
  • bundle to install the gems
  • Run guard: bundle exec guard to automatically regenerate
  • Run the tests: karma start karma.js
  • Make sure all the tests pass
  • Delete the implementation files in coffee which define all the code for passing tests
  • Write your own implementations for the tests