This is a simple collection of algorithms, written in as many languages as possible, for use in different software projects.
This collection has been contributed by the community, written myself from the base algorithm, borrowed, modified, or improved from other sources.
It exists to help other programmers implement these algorithms into their own code, learn or do whatever they need to with them.
It's goal is to make utilizing these algorithms as simply as possible.
When contributing feel free to add your algorithm to the read me if not already present, otherwise add it under the 'Uses' section.
Otherwise after writing the code for the algorithm source, ensure to add some JSDoc syntax comments at the start of the file. Indicating the license, and creator. This license is then to be respected in any further use of your contribution.
The MIT
license may be a good choice for these snippets, as its a short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
For an example of the JSDoc Syntax that may be best to use, feel free to use the first algorithm added to this project JavaScript - Longest Common Subsequence as an example.
The Levenshtein Distance is a string metric for measuring the difference between two sequences. Named after Vladimir Levenshtein, who considered this distance in 1965.
- Spell Checkers
- Correction for optical character recognition
- Natural-language translation based on translation memory.
The Longest Common Subsequence (LCS) problem is the problem of finding the longest subsequence common to all sequences in a set of sequences (often just two sequences).
- Linux diff utility
- Git revision control system
The Smith-Waterman Algorithm performs local sequence alignment, for determining similar regions between two strings.
- Determining similar regions between two sequences of nucleic acid sequences.
- Determining similar regions between two sequences of protein sequences.
- JavaScript - NOTICE: Incomplete Implementation
TODO: