Lecture 7 - Halting Problem Flashcards

1
Q

The halting problem is ….

A

undecidable

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

What is the erratic program?

A
  • refer to slide 36
  • it is a program that terminates for all instances tested, but can’t be proven to not be a halting problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does it mean for an algorithm implementation to halt?

A

The program returns yes or no and isn’t stuck in a while loop

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

What does HP stand for?

A

Halting problem

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

If a problem can be reduced to another problem and the original problem is undecidable then?

A

The second problem must too be undecidable

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

Hierarchy of decision problems:

A
  • undecidable (HP,tiling)
  • intractable (roadblock)
  • NP-COMPLETE (SAT , HC , TSDP)
  • polytime solvable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What happens if P = NP?

A

All np complete problems are polynomial time solvable.

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