POV-Ray : Newsgroups : povray.advanced-users : function optimization question : Re: function optimization question Server Time
29 Jul 2024 18:30:00 EDT (-0400)
  Re: function optimization question  
From: Jan Walzer
Date: 16 Mar 2002 16:10:46
Message: <3c93b4d6$1@news.povray.org>
Yeah ... but it WILL terminate ...

and even if recursion-depth will be 2^32 .... it WILL terminate ...

you can't tell this for every function if the "machine" is turing-complete

... or better the other way around:

If  a function terminates, then: fine...
but if it is running, there's no algorithmic way, to determine if this function will
ever terminate or not ...
Your only chance is to wait and see ...

of course, there are trivial ones, but for every function you find, that is possible
to tell, there are infinite other functions,
where you can't tell ...


Post a reply to this message

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