Week 4 Flashcards

1
Q

The Entscheidungsproblem

A

Hilbert’s idea was to find an algorithm which, given any statement in a formal system, would determine whether or not that statement was true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the incompleteness theorem?

A

This showed that there is no algorithm whose input can be any statement about the integers and
whose output says whether or not the statement is true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we prove the Halting Problem is undecidable?

A

A proof that the halting problem is undecidable goes like this:
1 assume we can write HaltTester;
2 use HaltTester to write Funny;
3 show Funny leads to a contradiction (if P terminates then loop forever);
4 conclude the assumption is wrong. (if we test if funny halts, it never will as it contradicts)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the totality problem?

A

Decide whether a program P halts on all inputs - if it does, it computes a total function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is the totality problem different from the halting problem

A

Halting problem asks whether it enters an infinite loop for a given input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do we solve the totality problem?

A

It converts to the halting problem.
Construct a program Q that ignores its own input and always emulates P on some input D. Q will halt on all inputs only if P halts on input D (which is the halting problem)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the equivalence problem?

A

The equivalence problem is to decide whether two programs
are equivalent; that is, they produce the same output for the
same input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do we solve the equivalence problem?

A

It is easy to devise programs T and U, such that asking whether T is equivalent to U is like asking if T is total, meaning this problem converts to the totality problem. It’s undecideadble

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Rice’s theorem?

A

Rice’s Theorem says that if 𝐴 is an extensional and non-trivial
program property then 𝐴 is undecidable.
It implies that there can be no program verification tool that can
check if a program meets the specification.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 3 types of problem

A

Computable - algorithmic solution
Partially computable - approximate algorithmic solution
Noncomputable - no algorithmic solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The Halting problem is…

A

Partially computable as we

How well did you know this?
1
Not at all
2
3
4
5
Perfectly