|
Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
Devise a suitable representation for the state of a node and then implement the following properties IsFeasible, IsComplete, Objective, Bound, and Successors. Note, the Successors method returns an IEnumerable object that that represents all the successors of a given node.
public interface GreedySolution : Solution
{
Solution GreedySuccessor();
}public interface SimulatedAnnealingSolution : Solution
{
Solution RandomSuccessor();
} ![]()