Expand description
Schedule-alignment and edit-distance algorithms shared by Hermit tools.
Structs§
- Bubble
Sort Iter - The states a bubble sort of a permutation passes through, one adjacent swap
at a time: cursor 0 is the permutation itself and cursor
Self::swap_distanceis sorted order. - Expanded
Perm Result - Result of generating a permutation from the source vec to the target while
maintaining the position of values by marking unmatched values in the target
with
Noneinstead of just removing them - Needleman
Wunsch - Perm
- Permutation
Result - Output from generating a permutation between two vecs of items. It provides the actual permutation generated as well as information about unmatched items from both the source and target arrays
Enums§
Functions§
- bubble_
sort_ distance - damerau_
lev - Finds the edit distance between
sourceandtarget, taking into account additions, deletions, and swaps. This has a time complexity of O(n^2) and a space complexity of O(n^2). - generate_
expanded_ permutation - generating a permutation from the source vec to the target while
maintaining the position of values by marking unmatched values in the target
with
Noneinstead of just removing them - generate_
permutation - Generate a permutation that when applied to the first argument’s elements produces the second argument. If there are elements in the first that are not in the second (and vice versa) then those elements will not be present in the final permutation, and thus the permutation will be shorter than both input slices. Information about which elements are unmatched in both the source and target vectors is provided in the result
- iterable_
bubble_ sort - iterable_
bubble_ sort_ from_ perm - kendall_
tau - Finds the distance between
sourceandtargetby looking at only swaps.