Package algs13.xbacktrack.xframework
Class MyBacktrackDriver<T>
java.lang.Object
algs13.xbacktrack.xframework.MyBacktrackDriver<T>
- Type Parameters:
T
- The type of the choices made in the backtracking problem.
The driver for the backtracking framework. In order to run the driver,
this class must be instantiated and the solve method on the instance of this
class must be called.
Find the TODOs in this file and implement them. There are also TODOs in
xbacktrack.xsudoku.MySudoku (MySudoku.java) for you to complete.
This framework is adapted from Timothy Budd: Classic Data Structures in C++,
Addison-Wesley, 1994. The design is modernized to use object composition
rather than inheritance. It can be used to model any kind of backtracking
problem.
-
Constructor Details
-
MyBacktrackDriver
-
-
Method Details
-
setDone
-
track
-
solve
A method to solve the problem.- Returns:
- a result representing the solution
-