logoalt Hacker News

ex-aws-dude • last Wednesday at 8:21 PM • 6 replies • view on HN

Is it possible for Collatz to be end up being undecidable since its kinda similar to asking if the algorithm always terminates?


Replies

daeken • last Wednesday at 8:23 PM

No one has ever proven it to be unprovable, but I've often wondered the same thing. That said, "asking if an algorithm always terminates" is something we do all the time, and that's not unprovable; the halting problem refers to a system able to decide if any arbitrary algorithm terminates. You can "solve the halting problem" on individual cases, but can't do it for everything.

➕ show 2 replies
QuesnayJr • last Wednesday at 8:28 PM

It's definitely possible. There's a broader class of "generalized Collatz problems" that is equivalent to the halting problem.

➕ show 1 reply
justonceokay • last Wednesday at 8:41 PM

The halting problem is about determining if /any/ input algorithm halts. This is undecidable.

However, if you take a specific algorithm (such as collatz) you can prove whether or not that halt under certain conditions without touching the halting problem. Right now even you (no offense) could probably cough up an inductive proof that fib(x) halts for any integer x.

My point is only that the existence of the halting problem doesn't really help us understand the collatz conjecture, even if both problems have a similar shape

➕ show 1 reply
pixl97 • last Wednesday at 8:30 PM

It's always possible that we were just asking nonsensical questions, but the process of learning that should teach us something new.