Package org.ddolib.examples.misp
Class MispDominance
java.lang.Object
org.ddolib.examples.misp.MispDominance
Implementation of a dominance relation for the Maximum Independent Set Problem (MISP).
In this context, one state state1 is considered dominated by another state state2
if all vertices selected in state1 are also selected in state2.
This allows pruning suboptimal states during the search.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MispDominance
public MispDominance()
-
-
Method Details
-
getKey
Returns a key for the dominance relation.This implementation always returns
0since no partitioning of states is needed based on a specific key. -
isDominatedOrEqual
Determines whetherstate1is dominated by or equal tostate2.A state
state1is dominated bystate2if all vertices selected instate1are also selected instate2.- Specified by:
isDominatedOrEqualin interfaceDominance<BitSet>- Parameters:
state1- the first state to comparestate2- the second state to compare- Returns:
trueifstate1is dominated by or equal tostate2,falseotherwise
-