All Projects → airingursb → algorithm-lab

airingursb / algorithm-lab

Licence: other
💫 算室:Airing 的算法实验室

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to algorithm-lab

unity-dijkstras-pathfinding
Dijkstra's Pathfinding Algorithm Unity Implementation. (Not being maintained by me, it is just an experiment.)
Stars: ✭ 80 (+100%)
Mutual labels:  algorithm-library
algorithm coding
推荐算法、相似度算法、布隆过滤器、均值算法、一致性Hash、数据结构、leetcode练习
Stars: ✭ 30 (-25%)
Mutual labels:  algorithm-library
genstar
Generation of Synthetic Populations Library
Stars: ✭ 17 (-57.5%)
Mutual labels:  algorithm-library
MixingBear
Package for automatic beat-mixing of music files in Python 🐻🎚
Stars: ✭ 73 (+82.5%)
Mutual labels:  algorithm-library
CPTH
🌟 Competitive Programming Template Headers | With documentation, CI tests and Codecov
Stars: ✭ 23 (-42.5%)
Mutual labels:  algorithm-library
How-to-Solve-it-by-Computer-R-G-Dromey
How to Solve it by Computer - R.G. Dromey Solutions
Stars: ✭ 20 (-50%)
Mutual labels:  algorithm-library

Airing 的算法实验室

使用 TypeScript 编写的一些有趣的算法实验。

线上地址:http://lib.ursb.me

目录

  1. 百人分钱问题
    1. 百人分钱 | 不许负债
    2. 百人分钱 | 允许负债
  2. 蒙特卡洛算法
    1. 求解圆周率
  3. 排序算法
    1. 选择排序 Selection Sort
    2. 插入排序 Insertion Sort
    3. 插入排序 | 近乎有序 Insertion Sort with Nearly Ordered Array
    4. 归并排序 | 自顶向下 Merge Sort TD
    5. 归并排序 | 自底向上 Merge Sort BD
    6. 快速排序 Quick Sort
    7. 快速排序 | 近乎有序 Quick Sort with Nearly Ordered Array
    8. 快速排序 | 随机定点 Quick Sort with Random Pivot
    9. 快速排序 | 完全一致 Quick Sort with Identical Array
    10. 双路快速排序 Two Ways Quick Sort
    11. 双路快速排序 | 完全一致 Two Ways Quick Sort with Identical Array
    12. 三路快速排序 Three Ways Quick Sort

安装

git clone https://github.com/airingursb/algorithm-lab.git
cd algorithm-lab
npm install
node app/bin/www.js --harmony

Then open Browser at 'http://localhost:9009'

修改算法代码

Step 1. 编译 TypeScript

tsc

Step 2. 打包 js 文件

需要先安装 browserify

npm install -g browserify

再进入对应的算法输出目录,打包代码

browserify main.js -o bundle.js

Screenshots

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].