Exam 13: A: Modeling Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Suppose V={S, A, a, b}, T={a, b} , and S is the start symbol. Find a set of productions that includes SAaS \rightarrow A a and AaA \rightarrow a and generates the language {a, b, b a, b a a} .

(Short Answer)
4.9/5
(42)

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= {SABa,SBa,AaB,ABb,Bab}\{ S \rightarrow A B a , S \rightarrow B a , A \rightarrow a B , A B \rightarrow b , B \rightarrow a b \} - Which of these are derivable from ABa? (1) ba , (2) abb , (3) aba , (4) b , (5) aababa

(Short Answer)
4.9/5
(32)

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= {SABa,SBa,AaB,ABb,Bab}\{ S \rightarrow A B a , S \rightarrow B a , A \rightarrow a B , A B \rightarrow b , B \rightarrow a b \} are derivable from A ? (1) babaa, (2) aab , (3) bba

(Short Answer)
5.0/5
(34)

Determine if 1101 belongs to the regular set 1*0*1.

(Short Answer)
4.8/5
(24)

Consider the Turing machine T : (s0,0,s1,1,R),(s0,1,s1,1,R),(s1,0,s0,1,L),(s1,1,s0,0,R),(s0,B,s1,1,R)\left( s _ { 0 } , 0 , s _ { 1 } , 1 , R \right) , \left( s _ { 0 } , 1 , s _ { 1 } , 1 , R \right) , \left( s _ { 1 } , 0 , s _ { 0 } , 1 , L \right) , \left( s _ { 1 } , 1 , s _ { 0 } , 0 , R \right) , \left( s _ { 0 } , B , s _ { 1 } , 1 , R \right) For the following tape, determine the final tape when T halts, assuming that T begins in state s0 at the leftmost nonblank symbol. \@cdots 1 0 1 \@cdots

(Short Answer)
4.8/5
(33)

Find a deterministic finite-state automaton equivalent to the following nondeterministic finite-state machine. Find a deterministic finite-state automaton equivalent to the following nondeterministic finite-state machine.

(Essay)
4.8/5
(24)

Let A={0,11} . Find A2 .

(Short Answer)
4.7/5
(36)

determine the output for each input string, using determine the output for each input string, using   -000 -000

(Short Answer)
4.9/5
(38)

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= {SAB0,AB1,A0,BAB}\{ S \rightarrow A B 0 , A B \rightarrow 1 , A \rightarrow 0 , B \rightarrow A B \} from S ? (1) 000, (2) 11, (3) 010, (4) } 0000, (5) 0001, (6) 110, (7) 0010

(Short Answer)
4.7/5
(34)

Suppose a phrase-structure grammar has productions S → 1S0, S → 0A, A → 0. Find a derivation of

(Short Answer)
4.7/5
(38)

Find a set of two productions that produces {12nn>0}\left\{ 1 ^ { 2 n } \mid n > 0 \right\}

(Short Answer)
4.8/5
(39)

Find all strings recognized by this deterministic finite-state automaton. Find all strings recognized by this deterministic finite-state automaton.

(Short Answer)
4.9/5
(41)

Find the Kleene closure of A={1} .

(Short Answer)
4.9/5
(34)

Suppose a phrase-structure grammar has productions S → S0, S → A1, A → 0. Find a derivation of 01.

(Short Answer)
4.9/5
(34)

determine the output for each input string, using determine the output for each input string, using   -10111 -10111

(Short Answer)
4.9/5
(34)

Determine if 1101 belongs to the regular set (0∪1)*1.

(Short Answer)
4.9/5
(32)

Suppose that A = {1, 11, 01} and B = {0, 10}. Find AB.

(Short Answer)
4.7/5
(44)

Construct a finite-state automaton that recognizes the set represented by the regular expression 10∗.

(Essay)
4.8/5
(38)

Which strings belong to the set represented by the regular expression 0∗ ∪ 11?

(Essay)
4.9/5
(27)

Find the language recognized by this nondeterministic finite-state automaton. Find the language recognized by this nondeterministic finite-state automaton.

(Short Answer)
4.8/5
(29)
Showing 21 - 40 of 67
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)