Week 8 and 9 - Decidability Flashcards

1
Q

A decision problem is said to be decidable when…

A

There is some program, such that when given an argument it always returns true or false. (i.e the program will always halt)

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

Church’s thesis

A

any decision problem on words that can be solved by an algorithm can be solved by a Turing machine.

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

A decision problem is said to be semi-decidable

A

There is some program, such that when given an argument it returns true otherwise it runs forever.

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

Any property that is decidable must also be…

A

semi-decidable

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

If a property is semi-decidable and the negation of the property is also semi-decidable then

A

the property is decidable

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

What is the halting problem?

A

That it is undecidable to distinguish if a nullary program (a program with no arguments) halts or hangs.

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

What does it mean to reduce problem A to problem B?

A

We take the input for A, and convert it into a suitable input for the algorithm that solves B. Then run the algorithm on that converted input and convert the output into a suitable output for problem A.

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

If we have reduced problem A to problem B then if B is decidable, then…

A

A is decidable

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

If we have reduced problem A to problem B then if A is undecidable, then…

A

B is undecidable

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

How can we test if the property of a program is decidable?

A

Reduce the property to the halting problem. If the halting problem is decidable then the property of the program is too.

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

What is a semantic property of a program?

A

Properties that are visible to an external user

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

According to Rice’s theorem, every semantic property of a program is…

A

Undecidable (except for 2)

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

Rice’s theorem

A

Any semantic property of code that holds is some case and fails to hold in some case is undecidable.

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

A semantic property that never holds is…

A

decidable

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

A semantic property that always holds is…

A

decidable

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