execute
Executes the pruning crossover on the given parents.
Workflow:
Ensure both parents are BestSubsetSolution (lift if necessary).
Normalize parent masks to exactly
N
bits.With probability probability, build:
Selective child = bitwise
AND
.Inclusive child = bitwise
OR
. Otherwise, clone normalized parent masks.Ensure each child has at least one
true
bit.Materialize children as copies of parents with new bitsets installed.
Reset caches/flags for safety.
Return
a mutable list with two children (BestSubsetSolution).
Parameters
parents
list of two parent solutions.
Throws
if fewer than 2 parents are supplied or bit lengths differ.