Class MaxPairWiseProductRandomNumbers
java.lang.Object
topics.foundation.maxpairwise.MaxPairWiseProductRandomNumbers
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 aBufferedWriterensures 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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MaxPairWiseProductRandomNumbers
public MaxPairWiseProductRandomNumbers()
-
-
Method Details
-
main
Main execution entry point.- Parameters:
args- Command-line arguments (not utilized).
-