Go Back   Science Forums
View Single Post
Old 05-23-2009   #75 (permalink)
phillip1882's Avatar
phillip1882
Thinking


Location:
florida
 
phillip1882 is a glorious beacon of lightphillip1882 is a glorious beacon of lightphillip1882 is a glorious beacon of lightphillip1882 is a glorious beacon of light
 



Not Ranked  0 score     
Re: Halting Undecidability proof faulty?

"But now you modify hp to make hp'. hp' is adjusted so that if hp would have halted, hp' doesn't; if hp would have gone on forever, hp' halts."

a bit of an inaccurate description, hp always halts, it just it returns doesn't halt. (i think i made the same mistake in my description in the other post.)
this may seem nit picky, but it's an important distinction, because, hp when run on hp' input shouldn't have a problem, as far as whether it halts.

let's say hp algorithm is this, if "if" statements - comments <1 then return doesn't halt. else "if" - comments >=1, return halt. clearly this algorithm is a bad one, but it just for demonstration.
now create h'. h' will have the following algorithm. if "if" statements -comments <1 return halt. "if" - comments >=1 go into infinite loop. what will h return when run on h'? it reads that it has two if statements, and no comments. so it would go into first if statement, return doesn't halt. clearly however h' does halt in this case. if you add two comments to h' code, then h will see that, and return halt. but clearly h' doesn't halt in this case. in short, as you said pryotex, h will always return the wrong answer when run on h'.
Reply With Quote
 
» Advertisement
» Current Poll
Who's the sexiest man alive? Johnny Depp or Robert Pattinson?
Johnny Depp - 27.27%
3 Votes
Robert Pattinson - 0%
0 Votes
Someone else (please specify) - 45.45%
5 Votes
I'm too macho to think a guy is sexy - 27.27%
3 Votes
Total Votes: 11
You may not vote on this poll.


All times are GMT -8. The time now is 02:09 PM.

Hypography?

Hypography [n.]: A combination of "hyperlink" and "bibliography" - ie, a list of links to electronic documents. Comparable to discography and bibliography, but not cartography.

We have been online since May 2000, and aim to be the best place to find and share science-related content of all kinds.

Share the love!

Please add more science to your life. Use our RSS feeds on your blog, your portal, or your favorite feedreader!


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000-2009 Hypography
Part of the Hypography - Science for Everyone Network