Recently I was asked this question in a technical discussion. What is the longest cycle that can be written in computational science, given the machine / architecture on which it should run? This loop should be as long as possible, but not an infinite loop and should not end in a program crash (recursion, etc.)
I honestly did not know how to attack this problem, so I asked him if this was possible. He said, using some concepts of computer science, you can come up with a hypothetical number that may be impractical, but nonetheless it will not be infinite.
Anybody here; knows how to analyze / attack this problem.
PS Choosing the highest limit for a type that can hold the highest numerical value is apparently not the answer.
Thanks in advance,
Abhay source
share