Class StringInterleavingGenerator
java.lang.Object
topics.branchandbound.utils.BranchAndBound
topics.branchandbound.stringinterleaving.StringInterleavingGenerator
String Interleaving Generator
Uses the architecture of Branch and Bound to explore the state space tree. However, because the goal is GENERATION (finding ALL solutions) rather than OPTIMIZATION (finding the BEST solution), the pruning mechanism is intentionally bypassed.
- Author:
- vicegd
-
Field Summary
Fields inherited from class BranchAndBound
bestNode, globalUpperBound, nodeHeap, rootNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbranchAndBound(Node rootNode) Executes the primary Branch and Bound systemic loop.intMethods inherited from class BranchAndBound
getBestNode, getRootNode, printSolutionTrace
-
Constructor Details
-
StringInterleavingGenerator
-
-
Method Details
-
branchAndBound
Description copied from class:BranchAndBoundExecutes the primary Branch and Bound systemic loop.It continuously extracts the most promising state, expands its children, updates the optimal benchmark if a leaf solution is reached, and prunes branches that violate the bounding constraints.
- Overrides:
branchAndBoundin classBranchAndBound- Parameters:
rootNode- The starting mathematical state of the problem environment.
-
getSolutionCount
public int getSolutionCount()
-