Class ChangeTest
java.lang.Object
topics.dynamic.change.ChangeTest
Validation Suite for Dynamic Programming Coin Change
Demonstrates the structural flaws of the Greedy approach and proves the mathematical optimality of the Dynamic Programming transition matrix.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) void(package private) void(package private) void
-
Constructor Details
-
ChangeTest
ChangeTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldFindOptimalCombinationWhenGreedyFails
@Test @DisplayName("Should find optimal combination when Greedy fails (Case 1)") void shouldFindOptimalCombinationWhenGreedyFails() -
shouldMaintainCorrectnessWhenGreedyIsOptimal
@Test @DisplayName("Should maintain correctness when Greedy is naturally optimal (Case 2)") void shouldMaintainCorrectnessWhenGreedyIsOptimal()
-