Home > Algorithms

Algorithms

Algorithms is a project mainly written in JAVASCRIPT and COFFEESCRIPT, it's free.

Use JavaScript to visualize CS algorithms

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.

  • Project Homepage
  • Test Status

Implemented Data Structures and Algorithms

Data Structures

  • Stack
  • Queue

Searching

  • Binary Search Tree (WIP)

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.

  • Stack VS Queue VS Array
Previous:bkmrk