zenodeapp / pairwise-alignments

Solidity implementations of well-known pairwise alignment methods such as Needleman-Wunsch's global sequence alignment and the Smith-Waterman local sequence alignment algorithm.
MIT License
3 stars 2 forks source link

Enhancement: Smith-Waterman and Needleman-Wunsch share a lot of similar code #2

Closed zenodeapp closed 2 years ago

zenodeapp commented 2 years ago

I temporarily copy-pasted the Needleman-Wunsch algorithm and adapted it to the Smith-Waterman algorithm.

Will need to abstract out the code that both of these pairwise alignments share with one another.

zenodeapp commented 2 years ago

NOTE: I had to sacrifice a bit of performance in order to gain more readability and less double-work when it comes to editing these contracts.