POV-Ray : Newsgroups : povray.pov4.discussion.general : I want to be rid of my stupid mistakes : Re: I want to be rid of my stupid mistakes Server Time
15 May 2024 15:35:01 EDT (-0400)
  Re: I want to be rid of my stupid mistakes  
From: scott
Date: 22 Jul 2009 03:20:13
Message: <4a66bdad$1@news.povray.org>
> Now there is a problem in theoretical informatics known as the "halting
> problem": Given an arbitrary program and an arbitrary input, decide 
> whether the
> program will ultimately finish, or instead run forever. In 1936, Alan 
> Turing
> proved that for the general case of a Turing-complete engine, this halting
> problem is *not* decidable - in other words, for each and every 
> Turing-complete
> programming language it is *impossible* to come up with a generic 
> algorithm that
> can predict from any given program and any given starting conditions 
> whether it
> will enter an infinite loop or not.

I'm not saying it's possible to detect whether any program will stop or not. 
I'm saying that in *some* cases you can relatively easily detect that it 
won't stop without changing the functionality.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.