Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

The Answer Man

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,341
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 17, 2007

A Schoolhouse Rock-style video that presents the halting problem and computability. Created for use in an introductory computer science class at Rutgers University (NJ, USA). Tune: Piano Man by Billy Joel

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (mlittman)

  • i had your class 2 semesters ago and for some reason, of all the videos you showed us, i liked this one the most. it's funny to see all the contradictions you point out

  • Thanks! Looking at the number of views, it's not one of the more popular ones. Perhaps it's because of the bad pun at the end.

  • Did Turing ever say anything about programs which don't refer to themselves? I think that's the source of all contradictions in mathematics...

  • That's a good point. However, it's not so simple to rule out programs referring to themselves. They might refer to themselves indirectly via another program or not to themselves at all, but to a near-copy. There are also ways of defining incomputable problems where the reference is not internal to the programs themselves but indirectly through the problem definition, such as the Busy Beaver problem.

  • I always wondered what the halting problem's result is. Is it that it's impossible to code the halting problem or that it's impossible to code the halting problem which is always correct? What does the contradiction mean?

  • You can write a program that solves the halting problem SOME of the time, but not ALL of the time. So, there will always be some inputs for which your program will either not halt or give a wrong answer.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Was every example some sort of contradiction? I only got the speaking ones... was the barber one some sort of contradiction? Also all the others? Lol.

  • Not halt? How do you arrive to that conclusion?

  • Michael decides to do the following: he asks the Answer Man what he thinks. Knowing answer, he will do just the opposite. If the Answer Man has a sure answer for everyone, Michael's behavior is well-defined. However, this cannot be the case as can be easily seen: If the Answer Man would predict that Michael is not going to use salt, he would use salt and vice versa. Thus, we must conclude that there is no Answer Man. I hope this helps.

    Michael: Great video!

  • Someone in my class found it helpful to realize that what makes the halting problem impossible is that it must be able to predict if ANY program will halt. If it's allowed to opt out for some programs (like ones that refer to themselves!), it's not necessarily impossible anymore. The analogy in the video is that the Answer Man might bet that he can tell who will use salt, as long as that person doesn't hear his prediction.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more