3.1 Decision Problems & Undecidable Problems

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What does For every alphabet Σ, fix distinct strings w1, w2 ∈ Σ* mean

For any alphabet Σ, we choose two different strings w₁ and w₂ made up of symbols from Σ, and we’ll use those same two strings in whatever definition or proof follows.

2
New cards

For every alphabet Σ, fix distinct strings w1, w2 ∈ Σ*.

The characteristic function of a language L ⊆ Σ* is what?

The function χL : Σ* → Σ*

3
New cards

What is the function χL : Σ* → Σ* defined by?

knowt flashcard image
4
New cards

Prove a language L is decidable if its characteristic χL is computable

Let M be a TM computing χL. Extend M to a machine M’ such that after M has halted, M’ checks whether M has written w1 or w2 and either accepts (case w1) or rejects (case w2).

5
New cards

Prove a language L is decidable only if its characteristic χL is computable

Let M be a halting TM that accepts L. Extends M to a machine M’ such that after M accepts (rejects) its input, M’ clears the tape, writes w1 (w2), rewinds the tape head and accepts.

6
New cards

What is the set of a partial function f: Σ* → Σ*

Graph(f) = {(v, w) ∈ Σ* x Σ* | f(v) = w},

7
New cards

How can Graph(f) = {(v, w) ∈ Σ* x Σ* | f(v) = w} be turned into a language over Σ ∪ {#}:

<p></p>
8
New cards

When is a partial function f: Σ* → Σ* computable?

If and only if Graph#(f) is semidecidable

9
New cards

When is a total function f: Σ* → Σ* computable?

if and only if Graph#(f) is decidable

10
New cards

What is a decision problem?

A set of questions each of which has the answer yes or no

The questions are the instances of the decision problem, depending on their answers they are yes-instances or no-instances

11
New cards

Input: A finite automaton M and w ∈ Σ*
Question: Is Is w ∈ L(M)?

Problem domain: D = {(M, w ) | M is a FA and w ∈ Σ*}

What is the yes instance and the no instance?

Yes-instances: {(M, w ) ∈ D | w ∈ L(M)}

No-instances: {(M, w ) ∈ D | w !∈ L(M)}

12
New cards

How do you solve a decision problem P by TMs?

instances I are encoded as strings enc(I) over some alphabet Σ.

  1. Y(P) is the language of encoded yes-instances

  2. N(P) is the language of encoded no-instances.

  3. E(P) = Y(P) ∪ N(P) consists of all encoded instances.

13
New cards

When is an encoding enc reasonable?

Assumption: We will only deal with encodings that are reasonable

→ Y(P) ∩ N(P) = ∅
→ E(P) is decidable
→ There is a decoding algorithm which given a code w ∈ E(P) ,constructs an instance I such that enc(I ) = w

14
New cards

When is a decision problem decidable (solvable)?

If Y(P) is decidable, otherwise P is undecidable (or unsolvable)

15
New cards

When is a decision problem P semidecidable?

If Y(P) is semidecidable.

16
New cards

What is the complement of a decision problem P?

Swapped yes or no answers

17
New cards

Prove if a decision problem P is decidable, then its complement is also decidable

knowt flashcard image
18
New cards

Solve the self accepting problem (SAP):

Input: Turing Machine TM

Question: Does M accept e(M) (Is e(M) ∈ L(M)?)

Problem {M | M is a TM}

Using our encoding e for Turing machines, we have

Y(SAP) = {e(M) | M is a TM and e(M) ∈ L(M)} = SA.

Hence the theorem follows from the fact that SA is undecidable but semidecidable.

19
New cards

Input: TM M and a string w

Question: Does M accept w ? (Is w ∈ L(M)?)

We reduce SAP to this problem, that is, we show that thedecidability of MP implies the decidability of SAP. Since SAP is undecidable, MP must be undecidable, too. Suppose that MP is decidable. Then the language Y(MP) of encoded yes-instances is decidable, that is, there is a TM TMP which accepts Y(MP) and halts on all inputs.

20
New cards

Prove the halting problem is undecidable but semidecidable

Input: A Turing Machine M and a string w ∈ Σ*

Question: Does M reach a halting configuraiton on input w?

A simple reduction of MP to HP shows that HP is undecidable(left as an exercise).To show that HP is semidecidable, modify a universal Turing machine U to a machine U′ which accepts an input e(M)e(w ) if and only if U halts on e(M)e(w ). Then Y(HP) = L(U′), hence HP is semidecidable.