Test #4 Review Flashcards

1
Q

Turing machines have a built in stack

A

false

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

a transition of a turing machine may perform which of the following? Select all that apply

A

writes a symbol onto tape
moves one cell to right
moves one cell to left

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

a turing machine consists of which of the following? select all that apply

A

a finite control unit
an input tape
a head positioned on the tape

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

Every turing machine has an initial state which is the state in which the turing machine starts

A

true

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

The input tape of a turing machine has a right border and can be extended indefinitely to the left

A

False

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

The Church-Turing thesis states that every computer algorithm can be implemented as a push-down automata.

A

False

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

The next state of a Turing machine is determined by its current state and the character under the read/write head.

A

True

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

A Turning machine has a set H of special states called halting states where, if the machine enters one of these states, it halts immediately.

A

True

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

Alan Turing proved that there is a Turing machine that solves the Halting Problem

A

False

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

The Halting Problem considers whether, for an arbitrary computer program and an input to that program, the program will halt or continue to run forever.

A

True

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

The use of multiple input tapes makes the basic Turing machine more powerful.

A

False

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

The use of multiple read/write heads makes the basic turning machine more powerful

A

False

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

Which of the following statements are True about a Turing machine with multiple input tapes. Select all that apply.

A

There is one read/write head for each input tape
At each step, the Turing machine scans the symbols observed by all the heads
There is one read/write head for each input tape
At each step, the Turing machine scans the symbols observed by all the heads

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

The Turing Machine R⊔ moves right until it finds the first blank character in the input string. If the read/write head is already on a blank, then it stays there without moving.

A

True

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

There is a Turing Machine that can add 1 to a binary number.

A

True

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

Determining whether, given a Turing machine and a specific input, the Turing machine will finish running (halt) or continue to run forever (stuck), is referred to as the Halting Problem.

17
Q

There is a Turing machine that solves the Halting Problem

18
Q

A Turing Machine is no more powerful than a push-down automata.

19
Q

The only way for a Turning Machine to “remember” a specific input character is to represent that character with a special “state”

20
Q

The Turing machine in Figure #2 does what? Assume the string: abaa with starting state on left-most a.

A

Transforms the string w into w followed by a blank followed by another copy of w

21
Q

The Turing machine in Figure #3 does what? Select the best answer.

A

Suppose to memorize a nonblank character “a”, move to the left one cell, and write “a” over whatever character happens to be in that cell, but there is an error in the code.

22
Q

The Turing machine in Figure #4 does what?

A

Move right until you reach the first non-blank character

23
Q

What does the Turing machine in Figure #5 do?

A

Adds 1 to the binary number

24
Q

The first thing the Turing machine in Figure #6 does is to mark the end of string with a “1” and then move to the rightmost character “a”

25
Q

The second thing the turning machine in Figure #6 does is to replace the rightmost “a” with a blank and then move to the rightmost “b” and replace it with a blank.

26
Q

The Turning machine in Figure #6 places a “1” on the input tape in the left-most position and places blanks everywhere else if the input string is the correct format.

27
Q

What does the Turing Machine in Figure #7 do?

A

Computes the lower-case equivalent of the input string

28
Q

What does the Turing Machine in Figure #8 do?

A

Accepts strings that contain 101

29
Q

The Turing machine in Figure #9 resolves the language L = wwR

30
Q

For the input string: abaaaabb, the Turnig Machine in Figure 9 erases the string and places a “1” on the input tape

31
Q

The Turing Machine R⊔ moves right until it finds the first blank character in the input string. If the read/write head is already on a blank, then it stays there without moving.

32
Q

The first stage (q0-q3) of the Turing Machine in Figure #10 converts each “1” to “x” and each “0” to “y”, and finds the midpoint of the string

33
Q

The second stage (q4) of the Turing Machine in figure #10 converts each “x” and “y” in first half of string back to “0” and “1”

34
Q

The third stage (q5-q8 and qf) of the Turing Machine in Figure #10 converts each symbol on the left half of the string to “x” or “y” and all symbols on the right part of the string to blanks (if the initial string is in the form: ww).