in reply to Re^5: Algorithm complexity
in thread Algorithm complexity
After a week and testing 10^x numbers you'll get 2 correct Wieferich primes and the information that calculating a third prime bigger than 10^x takes at least 10^x steps.
That's an empiric lower bound for the complexity, you can tell that this brute-force approach is at best O(n) for n<10^x, which is quite accurate!
OK, this example is a little bit too trivial, since it's a decision problem.
You actually have 10^x points and not only 2 !
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Algorithm complexity
by spx2 (Deacon) on Jul 08, 2009 at 11:11 UTC | |
by LanX (Saint) on Jul 08, 2009 at 11:27 UTC |