Exam 13: Modeling Computation

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which strings belong to the regular set represented by the regular expression (1∗01∗0)∗?

Free
(Essay)
4.9/5
(42)
Correct Answer:
Verified

These are the strings containing an even number of 0's and not ending with a 1.

Let A = {1, 10}. Describe the elements of A∗.

Free
(Essay)
4.8/5
(30)
Correct Answer:
Verified

The strings in the set A∗ are those strings where each 0 is preceded by a 1.

Let A = {1, 10}. Which strings belong to A∗?

Free
(Essay)
4.8/5
(38)
Correct Answer:
Verified

The strings in A∗ are those for which every 0 is preceded by at least one 1.

What is the output produced by the following finite-state automaton when the input string is 11101? What is the output produced by the following finite-state automaton when the input string is 11101?

(Short Answer)
4.9/5
(40)

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

(Essay)
5.0/5
(39)

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

(Essay)
4.8/5
(35)

Construct a finite-state machine that models a vending machine accepting only quarters that gives a container of orange juice when 50 cents has been deposited, followed by a button being pushed. (The possible inputs are quarters and the button, and the possible outputs are nothing, orange juice, and a quarter. The machine returns any extra quarters.)

(Essay)
4.7/5
(28)

Construct a finite-state machine with output that produces a 1 if and only if the last three input bits read are all 0s.

(Essay)
4.9/5
(35)

What is the language generated by the grammar with productions SSA,S0,A1A, and A1S \rightarrow S A , S \rightarrow 0 , A \rightarrow 1 A , \text { and } A \rightarrow 1 where S is the start symbol?

(Essay)
4.9/5
(21)

What language is generated by the phrase-structure grammar if the productions are S → S11, S → λ where S is the start symbol?

(Essay)
4.8/5
(35)

The productions of a phrase-structure grammar are S → S1, S → 0A, and A → 1. Find a derivation of 0111.

(Essay)
5.0/5
(36)

Find a grammar for the set {02n1nn0}\left\{ 0 ^ { 2 n } 1 ^ { n } \mid n \geq 0 \right\}

(Essay)
4.8/5
(40)

Which strings belong to the set represented by the regular expression 0110 ^ { * } \cup 11

(Essay)
4.8/5
(37)

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

(Essay)
4.9/5
(37)
close modal

Filters

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