Class MaxPairWiseProductTest3

java.lang.Object
topics.foundation.maxpairwise.MaxPairWiseProductTest3

class MaxPairWiseProductTest3 extends Object

Performance Validation Suite for Maximum Pairwise Product

Verifies both the mathematical integrity of the pairwise product and the real-world wall-clock execution time. By measuring the duration, this test empirically demonstrates the scaling limitations of an O(N²) algorithm against file-based datasets.

Author:
vicegd
  • Constructor Details

    • MaxPairWiseProductTest3

      MaxPairWiseProductTest3()
  • Method Details

    • shouldComputeProductAndBenchmarkDuration

      @Test void shouldComputeProductAndBenchmarkDuration()

      Scenario: Computing the maximum pairwise product from a file-loaded dataset.

      Expected Outcome: The sequential brute-force search correctly identifies 9801 as the maximum product. The test also benchmarks the execution duration.