Yes, let's talk about math and resources!
Can you replace this line:
i += jump
with
i += jump
time.sleep(0.000001). # time required to perform a jump
and then maybe you understand why the first program is 10x less efficient than the second.
Also, it is hard to figure out what problem the scripts are trying to solve, but it definitely is not a benchmark to prove the birthday paradox, since you shrink down the remaining options after every loop.
Also, kangaroos don't stop after going past the end of the interval. They continue their walk indefinitely. It is not the same thing as the birthday paradox.
Execution time: 7.475505113601685 seconds
Total matches: 46
Execution time: 0.8068211078643799 seconds
Total matches: 7
If you respond with questions, you are not answering, you are just diverting the topic.
Also, kangaroos don't stop after going past the end of the interval. They continue their walk indefinitely. It is not the same thing as the birthday paradox.
Even if we make infinite cycles, the first one will be more efficient.
I'm just trying to make you understand that the difficulty of the puzzles is exponential, Kangaroo has already fulfilled its useful life.
Kangaro is not better at long distances "myth", by increasing the jumps and taking shortcuts to do fewer operations you only lose the probability of getting it right.
It's not just a birthday paradox, it's common sense.
BSGS must improve its DB to be more efficient.
Kangaroo must improve its computing power to be more efficient.
Dude, you come here, post some junk code, junk ideas, and junk principles of thought, and you expect us to take precious time from our life to prove you are just raving complete non-sense. After you have all the answers on the table (there were no questions in my last post, only direct answers for you) you still insist on the same non-sense, and do not even address, or forget completely the
I am personally done with dealing with you, it is of no use for either of us, or the rest or this forum.