Lab 7 FAQ
All I see is the ArrayList experiment
Be sure to replace the experiment you’re running in main with whichever one you want to run!
Having trouble running Timing Tests with a good resize strategy
Be sure to modify the AList class so that the resize strategy is multiplicative instead of additive and rerun timeAListConstruction.
Experiments won’t run / can’t find Stopwatch or XYChart
Those come from library-fa26. Make sure the library is attached to your
IntelliJ project as described in the
Assignment Workflow Guide.
My timeSp16fp9p1 times are all 0.00
The += operations are very fast, so chances are you need larger N.
Check that you’re going all the way up to N = 128000.
Fit.plotWithFit says it can’t fit TWO_TO_THE_N
2^N overflows to infinity for the values of N in these experiments, so there
is nothing to fit. This is not the right growth function for any function in this lab
(technically even fib which has runtime φ^N rather than 2^N).