A fast, simple, fully tested javascript algorithm library for you.
This project is currently under development.
- Sequence Algorithms
- Longest Increasing Subsequence
- Longest Common Substring using DP(O(n^2))
- Longest Common Subsequence using DP(O(n^2))
- KMP Matching
- Double Linked List
- Immutable Array
- Ordered Dictionaries
- Red-Black Tree
- Heaps
- Binary Heap
- Cartesian Tree
- Disjoint Set
- FFT
- Cubic Polynomial Solver
- Primality Test
- Fast Number Theoretic Transform
- Greatest Common Divisor
- Big Integer Arithmetics
- Extended GCD
- Sort and Select algorithms
- Compare based stable sort algorithm
- In-place merge sort
- Radix sort
- Counting sort
- Bucket sort
- Quick partition and k-th selection
- By-value Hashing for Objects
- Singly Linked List
- Ordered Dictionaries
- Unbalanced BST
- Splay Tree
- AVL Tree
- Skip List
- Van Emde Boas Tree
- Young Tableau
- Adjacency Matrix/Adjacency List
- Traversal
- Topological Sort
- Strongly Connected Components
- Minimum Spanning Trees (Kruskal and Prim)
- Shortest Paths
- Maximum Flow
- Numeric Derivative
- Numeric Integral
- Polynomial Evaluation
- Small Number Factoring
- Continued Fraction / Diophantine approximation
- Pell's equation
- CRT Recovery
- Elliptic Curve Arithmetics
- Vectors and Matrix
- Eigenvalue and Eigenvectors
- Gaussian Elimination
- Intersection
- Spline interpolation
- Polygon
- Area/Circumference
- Intersect/Union
- Hit test
- Offset
- Voronoi Diagram / Delaunay Triangulation
Copyright (C) 2012 Bei ZHANG.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.