Class MaxPairWiseProductTest4
java.lang.Object
topics.foundation.maxpairwise.MaxPairWiseProductTest4
Performance Validation Suite for Maximum Pairwise Product
Verifies the mathematical integrity of the sorting-based pairwise product.
Furthermore, this test benchmarks both execution time and heap memory
consumption, empirically demonstrating the superior O(N log N)
scaling behavior over the brute-force approach.
- Author:
- vicegd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidScenario: Computing the maximum pairwise product using a descending sort.
-
Constructor Details
-
MaxPairWiseProductTest4
MaxPairWiseProductTest4()
-
-
Method Details
-
shouldComputeProductAndBenchmarkResources
@Test void shouldComputeProductAndBenchmarkResources()Scenario: Computing the maximum pairwise product using a descending sort.
Expected Outcome: The algorithm correctly identifies 9801. The test evaluates and logs the execution duration alongside JVM memory utilization.
-