giacomocavalieri / edit_distance

📝 A pure Gleam package to compute the edit distance of two strings
https://hexdocs.pm/edit_distance/
Apache License 2.0
5 stars 1 forks source link

[Feature] The Smith-Waterman Algorithm #1

Open NicklasXYZ opened 1 year ago

NicklasXYZ commented 1 year ago

The Smith-Waterman algorithm is essentially a paiwise sequence alignment algorithm typically used in bioinformatics to optimally align two (e.g. DNA) sequences.

The Smith-Waterman algorithm can be seen as a generalization of the edit distance and on the other hand the edit distance can be considered as a special case of the Smith-Waterman algorithm with specific scoring rules (giving specific weights to matching, mismatching string characters and gaps). There's more info here:

giacomocavalieri commented 1 year ago

Thank you for the suggestion! I'll look into it 💜

NicklasXYZ commented 1 month ago

@giacomocavalieri Beyond this algorithm (which might not strictly be measuring an edit distance), would you also take PR's for:

giacomocavalieri commented 1 month ago

Sure!