What is the smallest value of n such that an algorithm whose running time is \(100n^2\) runs faster than an algorithm whose running time is \(2n\) on the same machine?
I wrote algorithm_compare.py
to calculate that the lowest value of \(n\) that satisfies this condition is 15.
algorithm_compare.py: