Class MaxPairWiseProductRandomNumbers

java.lang.Object
topics.foundation.maxpairwise.MaxPairWiseProductRandomNumbers

public class MaxPairWiseProductRandomNumbers extends Object

Random Dataset Generator

Generates a synthetic benchmarking dataset of random integers for the Maximum Pairwise Product algorithmic evaluations. Writes 100,000 random integers (ranging between 0 and 99) separated by spaces into a designated text file.

Complexity

  • Time Complexity: O(N) - Requires linear time to sequentially generate and write exactly N random integers to the output stream.
  • Space Complexity: O(1) - Operates with a strictly constant memory footprint. Utilizing a BufferedWriter ensures data is flushed to the disk in chunks, avoiding the memory overhead of assembling the entire 100,000-number string in RAM simultaneously.
Author:
vicegd
See Also:
  • Constructor Details

    • MaxPairWiseProductRandomNumbers

      public MaxPairWiseProductRandomNumbers()
  • Method Details

    • main

      public static void main(String... args)
      Main execution entry point.
      Parameters:
      args - Command-line arguments (not utilized).