|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DivideAndConquerProblem
Hook class for problems solved by DivideAndConquer.
DivideAndConquer| Method Summary | |
|---|---|
java.lang.Object |
basicSolve()
Solve the base case. |
DivideAndConquerProblem[] |
divide()
Divide this problem into several problem parts which can be solved independently. |
java.lang.Object |
merge(java.lang.Object[] partialSolutions)
Merge several partial solutions to a complete solution. |
boolean |
smallEnough()
Whether this problem is small enough to be solved as the base case using basicSolve(). |
| Method Detail |
|---|
boolean smallEnough()
basicSolve().
basicSolve()java.lang.Object basicSolve()
smallEnough()DivideAndConquerProblem[] divide()
java.lang.Object merge(java.lang.Object[] partialSolutions)
For single-sided divide and conquer, simply returns this as the answer.
partialSolutions - partial solutions
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||