Class DiskPackingTest
java.lang.Object
topics.greedy.disk.DiskPackingTest
Validation Suite for Disk Packing Greedy Strategies
Verifies that the ascending strategy correctly finds the optimal count, and highlights the algorithmic trap where the descending strategy fails to find the optimal space configuration.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidsetup()(package private) void(package private) void
-
Constructor Details
-
DiskPackingTest
DiskPackingTest()
-
-
Method Details
-
setup
@BeforeAll static void setup() -
shouldMaximizeFileCount
@Test @DisplayName("Maximize Files: Should find the optimal number of files (Smallest First)") void shouldMaximizeFileCount() -
shouldDemonstrateSpaceUsageGreedyTrap
@Test @DisplayName("Maximize Space: Demonstrates the Greedy Trap (Sub-optimal space usage)") void shouldDemonstrateSpaceUsageGreedyTrap()
-