Package org.ddolib.examples.gruler
Class GRFastLowerBound
java.lang.Object
org.ddolib.examples.gruler.GRFastLowerBound
- All Implemented Interfaces:
FastLowerBound<GRState>
Lower bound for the Golomb Ruler.
It assumes that the next marks will add the smallest missing distances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublefastLowerBound(GRState state, Set<Integer> variables) Returns a very rough estimation (upper bound) of the optimal value that could be reached if state were the initial state.
-
Constructor Details
-
GRFastLowerBound
public GRFastLowerBound()
-
-
Method Details
-
fastLowerBound
Description copied from interface:FastLowerBoundReturns a very rough estimation (upper bound) of the optimal value that could be reached if state were the initial state.- Specified by:
fastLowerBoundin interfaceFastLowerBound<GRState>- Parameters:
state- The state for which the estimate is to be computed.variables- The set of unassigned variables.- Returns:
- A very rough estimation (upper bound) of the optimal value that could be reached if state were the initial state.
-