|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BacktrackingProblem
Hook class for Backtracking Algorithms
Backtracking,
GeneralSearchProblem| Method Summary | |
|---|---|
java.lang.Object |
chooseNext(int depth)
Get the next choice variant at a depth. |
int |
getNumberOfVariants(int depth)
Query on the number of solution variants for a single variable. |
int |
getNumberOfVars()
Get the number of solution variables to find with Backtracking. |
boolean |
isConsistent(java.util.List choices,
int depth)
Checks whether the current choices are still consistent. |
| Method Detail |
|---|
int getNumberOfVars()
int getNumberOfVariants(int depth)
boolean isConsistent(java.util.List choices,
int depth)
choices - a fixed-length list (getNumberOfVars()) of partial solution values.depth - is the depth level upto which current choices should be proved valid.
java.lang.Object chooseNext(int depth)
depth - is the depth level which should yield a new solution variant.
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||