Enum RefPolicy
Defined in File factorizer.hpp
Enum Documentation
-
enum class noLZSS::RefPolicy : uint8_t
Selects which previous occurrence a factor refers to when several occurrences of the longest possible length exist.
The factor boundaries (start, length) do not depend on this choice: the length is the maximum over all earlier non-overlapping occurrences, so only the reported reference changes.
First: the earliest occurrence (leftmost start for forward matches, leftmost end for reverse-complement matches). At equal length a forward match is preferred over a reverse-complement match. This is the historical default.
Last: the occurrence closest to the factor (largest start/end that still does not overlap the factor). At equal length the strand whose occurrence ends closest to the factor is chosen; if both strands end at the same position the forward match is preferred.
In both policies a strictly longer match always wins, and a reverse-complement match must have length >= 2.
Values:
-
enumerator First
-
enumerator Last