Class StringInterleavingTest
java.lang.Object
topics.divideconquer.stringinterleaving.StringInterleavingTest
Validation Suite for Recursive String Interleaving
Proves that pure recursion successfully resolves ambiguous choices by exploring the entire state space, avoiding the "Greedy Trap".
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) void(package private) void(package private) void(package private) void
-
Constructor Details
-
StringInterleavingTest
StringInterleavingTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldVerifySequentialInterleaving
@Test @DisplayName("Should successfully verify a sequential interleaving (Case A)") void shouldVerifySequentialInterleaving() -
shouldVerifyMixedInterleaving
@Test @DisplayName("Should successfully verify a mixed interleaving (Case C)") void shouldVerifyMixedInterleaving() -
shouldRejectInvalidInterleaving
@Test @DisplayName("Should correctly reject an invalid character arrangement (Case D)") void shouldRejectInvalidInterleaving() -
shouldSolveTheAmbiguousCase
@Test @DisplayName("Should successfully solve the ambiguous case (Escaping the Greedy Trap)") void shouldSolveTheAmbiguousCase()
-