public class DoublingRatio extends java.lang.Object
For additional documentation, see Section 1.4 of Algorithms, 4th Edition, by Robert Sedgewick and Kevin Wayne.
| Modifier and Type | Method and Description | 
|---|---|
static void | 
main(java.lang.String[] args)
Prints table of running times to call ThreeSum.count()
 for arrays of size 250, 500, 1000, 2000, and so forth, along
 with ratios of running times between successive array sizes. 
 | 
static double | 
timeTrial(int N)
Returns the amount of time to call ThreeSum.count() with N
 random 6-digit integers. 
 | 
public static double timeTrial(int N)
N - the number of integerspublic static void main(java.lang.String[] args)