SUNY Geneseo Department of Computer Science


Undecidability, Part 2

{Date}

CSci 141, Fall 2004
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Misc

Hand out Lab 14

Homework 3 due!

Final is Wed. Dec. 15, noon

SOFI's

Questions?

Undecidability

Show that the following problem is undecidable:

    ExceptionParadox()
        if I will throw an exception
            then stop
        else
            x = 1 / 0 (throw an exception)
    ExceptionParadox()
        if ( throwsException(ExceptionParadox) )
            { }
        else {
            x = 1 / 0;
        }

Given the text of a program, P, will running P infect my computer with a virus?

    virusParadox
        if doesInfect( virusParadox )
            do nothing
        else
            infect this computer

Misc

Study group Tuesday, 1:00 PM, regular classroom


(No More Lectures)