2.1 Decidable Languages

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/11

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.

12 Terms

1
New cards

When is a language decidable (recursive)?

If it is accepted by some TM, M, that on every input it eventually reaches a halting configuration.

It is said that M decices L.

2
New cards

When is a string w ∈ Σ* in TM M?

If, when M is run on w, it reaches state ha

3
New cards

True or false:

Every context-sensitive language is decidable?

True

4
New cards

True or false:

If a language L is decidable, then the complement Σ* − L (L with a line on the top) is also decidable.

True

5
New cards

Prove that, if a language L is decidable, its complement is decidable.

Let M be a TM that accepts L and halts on every input. Without loss of generality, we assume that M never crashes at the start of the tape. We modify M to a machine (M with a line on the top (complement)) by swapping the accept and reject state.

Then L(complement of M) = complement of L.

Complement of M halts on every input because M does so. Hence complement of L is decidable.

6
New cards

What is the complement of ha?

hr

7
New cards

What is the complement of hr?

ha

8
New cards

True or false:

If both a language L and its complement are semidecidable, then L is decidable

True

9
New cards

Prove that if a language L and its complement are semidecidable, then L is decidable.

<p></p>
10
New cards

Define crash avoidance in Turing Machines

For every Turing Machine M, there is a TM, M, such that L(M) = L(M’) and M’ does not crash on any input.

11
New cards

Prove that for every Turing Machine M, there is a TM, M, such that L(M) = L(M’) and M’ does not crash on any input.

We extend Γ with a new symbol #. Machine M’ write # on the first square, inserts ∆ on the 2nd square by shifting the input string one position to the right (left as an exercise), moves the tape head to the second square, and then executes the transitions of M.

→ We also define, for each q ∈ Q′ − {ha, hr}, δ′(q, #) = (hr, #, S).

12
New cards

How do you find languages that are not decidable or even semidecidable?

By using TMs that take TMs as an input