Deck 13: A: Modeling Computation
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/67
Play
Full screen (f)
Deck 13: A: Modeling Computation
1


2
Suppose A = {0, 1}. Describe all strings belonging to A∗.
A∗ consists of all strings of 0's and 1's, including the empty string.
3
Suppose a phrase-structure grammar has productions S → 1S0, S → 0A, A → 0. Find a derivation of

4
Suppose a phrase-structure grammar has productions S → S11, S → 0A, S → A1, A → 0. Find a derivation of 0011.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
5
Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 01.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
6
Suppose a phrase-structure grammar has productions S → S11, S → 0A, S → A1, A → 0. Find a derivation of 011111.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
7
Suppose V={S, A, a, b}, T={a, b} , and S is the start symbol. Find a set of productions that includes
and
and generates the language {a, a a} .


Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
8
Suppose a phrase-structure grammar has productions S → S11, S → 0A, S → A1, A → 0. Find a derivation of 01.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
9
Let G be the phrase-structure grammar with vocabulary V={A, B, 0,1, S} , terminal elements T={0,1} ,
start symbol S , productions P=
from S ? (1) 000, (2) 11, (3) 010, (4) } 0000, (5) 0001, (6) 110, (7) 0010
start symbol S , productions P=

from S ? (1) 000, (2) 11, (3) 010, (4) } 0000, (5) 0001, (6) 110, (7) 0010
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
10
Find a production of the form "A → " such that S → 1S , S → 0A, A → produces {1n00 | n ≥ 0}.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
11
Let G be the phrase-structure grammar with vocabulary V={A, B, a, b, S} , terminal element set T={a, b} , start symbol S , and production set P= 
are derivable from S ?
(1) ba ,
(2) ab ,
(3) baab,
(4) aababa,
(5) aba

are derivable from S ?
(1) ba ,
(2) ab ,
(3) baab,
(4) aababa,
(5) aba
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
12
Suppose a phrase-structure grammar has productions S → 1S0, S → 0A, A → 0. Find a derivation of
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
13
Find a set of two productions that produces 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
14
Suppose V={S, A, a, b}, T={a, b} , and S is the start symbol. Find a set of productions that includes
and
and generates the language {a, b, b a, b a a} .


Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
15
Let G be the phrase-structure grammar with vocabulary V={A, B, a, b, S} , terminal element set T={a, b} , start symbol S , and production set P= 
are derivable from A ?
(1) babaa,
(2) aab ,
(3) bba

are derivable from A ?
(1) babaa,
(2) aab ,
(3) bba
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
16
Suppose a phrase-structure grammar has productions S → 1S0, S → 0A, A → 0. Find a derivation of 00.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
17
Let G be the phrase-structure grammar with vocabulary V={A, B, a, b, S} , terminal element set T={a, b} , start symbol S , and production set P=
- Which of these are derivable from ABa?
(1) ba ,
(2) abb ,
(3) aba ,
(4) b ,
(5) aababa

(1) ba ,
(2) abb ,
(3) aba ,
(4) b ,
(5) aababa
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
18
Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 0100.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
19
Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 010.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
20
Find a production of the form "A → " such that S → 0A, A → produces {00}.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
21
What is the output produced by this finite-state machine when the input string is 11101? 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
22
let
resulting grammar G is 




Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
23
let
resulting grammar G is 




Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
24
Suppose that A = {1, 11, 01} and B = {0, 10}. Find BA. this state table.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
25
What is the language generated by the grammar with productions
, and
,
where
is the start symbol?


where

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
26
Let A = {1, 10}. Which strings belong to A∗?
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
27
What language is generated by the phrase-structure grammar if the productions are
where
is the start symbol?


Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
28
Construct a finite-state machine with output that produces a 1 if and only if the last 3 input bits read are 0's.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
29
determine the output for each input string, using 
10111

10111
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
30
Find all strings recognized by this deterministic finite-state automaton. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
31
Suppose that A = {1, 11, 01} and B = {0, 10}. Find AB.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
32
determine the output for each input string, using 
11000

11000
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
33
let
resulting grammar G is 




Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
34
Find a grammar for the set 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
35
Find all strings recognized by this deterministic finite-state automaton. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
36
Find the set recognized by this deterministic finite-state machine. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
37
determine the output for each input string, using 
000

000
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
38
let
resulting grammar G is 




Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
39
determine the output for each input string, using 
1111

1111
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
40
let
resulting grammar G is 




Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
41
Find the Kleene closure of A={0,1,2} .
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
42
Determine if 1101 belongs to the regular set 1*0*1.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
43
Find the language recognized by this nondeterministic finite-state automaton. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
44
Find the Kleene closure of A={1} .
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
45
Construct a finite-state automaton that recognizes all strings that end with 11.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
46
Determine if 1101 belongs to the regular set 1(10)*1*.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
47
Let A={0,11} . Find A3 .
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
48
Which strings belong to the regular set represented by the regular expression (1∗01∗0) ?
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
49
For the following Turing machines T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
50
Which strings are recognized by the following finite-state automaton? 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
51
Find a deterministic finite-state automaton equivalent to the following nondeterministic finite-state machine. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
52
Construct a finite-state automaton that recognizes the set represented by the regular expression 10∗.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
53
Find the Kleene closure of A={00} .
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
54
Which strings belong to the set represented by the regular expression 0∗ ∪ 11?
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
55
Determine if 1101 belongs to the regular set (0∪1)*1.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
56
Determine if 1101 belongs to the regular set (11)*0*(11)*.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
57
Find the language recognized by this nondeterministic finite-state automaton. 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
58
For the following Turing machine T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
59
Determine if 1101 belongs to the regular set (01)*(11)*(01)*.
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
60
Let A={0,11} . Find A2 .
Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
61
For the following Turing machine T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
62
Construct a Turing machine that computes 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
63
Construct a Turing machine that computes 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
64
For the following Turing machine T , find the final tape when T is run on the following tape, beginning in the initial position (the first nonzero entry from the left): 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
65
Consider the Turing machine T : 

Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
66
Consider the Turing machine T :
For the following tape, determine the final tape when T halts, assuming that T begins in state s0 at the leftmost nonblank symbol. 


Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck
67
Consider the Turing machine T :
For the following tape, determine the final tape when T halts, assuming that T begins in state s0 at the leftmost nonblank symbol. 


Unlock Deck
Unlock for access to all 67 flashcards in this deck.
Unlock Deck
k this deck