Class StringInterleavingGenerator

java.lang.Object
topics.branchandbound.utils.BranchAndBound
topics.branchandbound.stringinterleaving.StringInterleavingGenerator

public class StringInterleavingGenerator extends BranchAndBound

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
  • Constructor Details

    • StringInterleavingGenerator

      public StringInterleavingGenerator(String a, String b, Heap customHeap)
  • Method Details

    • branchAndBound

      public void branchAndBound(Node rootNode)
      Description copied from class: BranchAndBound
      Executes 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:
      branchAndBound in class BranchAndBound
      Parameters:
      rootNode - The starting mathematical state of the problem environment.
    • getSolutionCount

      public int getSolutionCount()