in reply to Merge lists of ordered strings into canonical ordering

I would look at Algorithm::Diff or simply sequentially merging the columns into the master result until all columns have been merged into their respective places.

  • Comment on Re: Merge lists of ordered strings into canonical ordering

Replies are listed 'Best First'.
Re^2: Merge lists of ordered strings into canonical ordering
by NERDVANA (Priest) on Sep 19, 2024 at 18:57 UTC
    The problem with this approach is it can't preserve the unknown status of the orderings, to be resolved by later orderings. In the first example, "S Y A" and "S N A" should combine in a way that expresses a very low preference for Y coming before N, and then that low preference should get overridden by the strong preference for Y coming before N by the 3rd rule. (and it would have made a better example if I put N before Y in the 3rd rule because then the strong preference would be contrary to the default order)