|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.Backtracking
public class Backtracking
Framework (template class) for Backtracking Algorithms.
Note that Backtracking is also a common mechanism for resolving nondeterministic choices.
BacktrackingProblem
,
DepthFirstSearch
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface orbital.algorithm.template.AlgorithmicTemplate |
---|
AlgorithmicTemplate.Configuration |
Constructor Summary | |
---|---|
Backtracking()
|
Method Summary | |
---|---|
Function |
complexity()
O(nn) in the worst case. |
java.lang.Object |
solve(AlgorithmicProblem p)
Generic solve method for a given algorithmic problem. |
java.util.List |
solve(BacktrackingProblem problem_solving)
solves by backtracking. |
Function |
spaceComplexity()
Measure for the asymptotic space complexity of the central solution operation in O-notation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Backtracking()
Method Detail |
---|
public java.lang.Object solve(AlgorithmicProblem p)
AlgorithmicTemplate
solve
in interface AlgorithmicTemplate
p
- algorithmic problem hook class which must fit the concrete
algorithmic template framework implementation.
Function.apply(Object)
public java.util.List solve(BacktrackingProblem problem_solving)
public Function complexity()
complexity
in interface AlgorithmicTemplate
AlgorithmicTemplate.solve(AlgorithmicProblem)
public Function spaceComplexity()
AlgorithmicTemplate
spaceComplexity
in interface AlgorithmicTemplate
AlgorithmicTemplate.solve(AlgorithmicProblem)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |