pub enum MergeRule {
Greedy,
ReverseLex,
}Expand description
How apex_star_with picks the representative path when it merges two
apex-path pairs. Both are the paper’s; the choice never affects the
guarantee, only how many pairs merge.
Variants§
Greedy
The paper’s G method, the one its experiments favour: of the two representatives that
keep the merged pair ε-bounded, take the one with the larger slack
min_i (1 + ε_i - f_i(π) / f_i(A)) / ε_i, which leaves the most room
for later merges. The first pair’s representative wins a tie.
Compared exactly by cross-multiplication with WideMul.
ReverseLex
The paper’s L method: take the representative whose cost is lexicographically smaller read from the last objective to the first (the first pair’s on a tie), and do not merge if it is not ε-bounded. For two objectives this is PP-A*’s bottom-right path.