jasondavies / smoothsort.js

A JavaScript implementation of Dijkstra's smoothsort algorithm.

Home Page:http://en.wikipedia.org/wiki/Smoothsort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smoothsort.js

This is a JavaScript implementation of Dikstra's smoothsort. If the input is already sorted to some degree, it "smoothly" approaches O(n) running time. It is an in-place algorithm, and only requires O(1) auxiliary storage space.

Credits

The implementation is largely based on the Java code in the Wikipedia article.

About

A JavaScript implementation of Dijkstra's smoothsort algorithm.

http://en.wikipedia.org/wiki/Smoothsort

License:Other


Languages

Language:JavaScript 100.0%