Class GRFlb
java.lang.Object
org.ddolib.examples.nolayer.gruler.GRFlb
- All Implemented Interfaces:
FastLowerBound<GRState>
Fast lower bound for the nolayer Golomb Ruler Problem. It assumes that the next marks will add
the smallest missing distances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublefastLowerBound(GRState state) Computes a lower bound on the remaining cost from the given state to reach any valid target state.
-
Constructor Details
-
GRFlb
Creates a new fast lower bound for the given Golomb Ruler problem.- Parameters:
problem- the Golomb Ruler problem instance
-
-
Method Details
-
fastLowerBound
Description copied from interface:FastLowerBoundComputes a lower bound on the remaining cost from the given state to reach any valid target state.- Specified by:
fastLowerBoundin interfaceFastLowerBound<GRState>- Parameters:
state- the current state- Returns:
- a lower bound on the remaining cost
-