marty-wang / Algorithms

Use JavaScript to visualize CS algorithms

Home Page:http://marty-wang.github.com/Algorithms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Objective

The idea of the project is to use JavaScript to visualize the mechanics of the common Computer Science algorithms, so that hopefully it can help people understand some basic yet obscure theories.

Implemented Data Structures and Algorithms

Data Structures

Searching

Structure

The src folder contains all the algorithm code, and the demo folder contains the demo/visualization code. The purpose of such organization is to ensure that these algorithm code can be re-used somewhere else, while the demo/visualization code is merely for visualization.

The code is written in CoffeeScript, and the algorithm code is fully tested with Jasmine. Raphael is used to help visualization.

Performance

Be aware that the implementation is in JavaScript and mainly for educational purpose. The performance will probably not be as good as the native implementation from the browser. Here are some preliminary tests.

About

Use JavaScript to visualize CS algorithms

http://marty-wang.github.com/Algorithms/


Languages

Language:JavaScript 67.7%Language:CoffeeScript 31.8%Language:Ruby 0.6%