Deck 13: Modeling Computation

ملء الشاشة (f)
exit full mode
سؤال
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.)
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What is the language generated by the grammar with productions What is the language generated by the grammar with productions   where S is the start symbol?<div style=padding-top: 35px> where S is the start symbol?
سؤال
Suppose that A = {1, 11, 01} and B = {0, 10}. Find AB and BA.
سؤال
Which strings belong to the set represented by the regular expression Which strings belong to the set represented by the regular expression  <div style=padding-top: 35px>
سؤال
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.  <div style=padding-top: 35px>
سؤال
What language is generated by the phrase-structure grammar if the productions are S → S11, S → λ where S is the start symbol?
سؤال
Construct a finite-state automaton that recognizes the set represented by the regular expression 10∗.
سؤال
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?  <div style=padding-top: 35px>
سؤال
Which strings belong to the regular set represented by the regular expression (1∗01∗0)∗?
سؤال
Find a grammar for the set Find a grammar for the set  <div style=padding-top: 35px>
سؤال
The productions of a phrase-structure grammar are S → S1, S → 0A, and A → 1. Find a derivation of 0111.
سؤال
Construct a finite-state machine with output that produces a 1 if and only if the last three input bits read are all 0s.
سؤال
Let A = {1, 10}. Which strings belong to A∗?
سؤال
Let A = {1, 10}. Describe the elements of A∗.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/14
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 13: Modeling Computation
1
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.)
The following finite-state machine models the vending machine. The following finite-state machine models the vending machine.
2
What is the language generated by the grammar with productions What is the language generated by the grammar with productions   where S is the start symbol? where S is the start symbol?
The language is the set of all strings that consist of a 0 followed by an arbitrary number of 1's (possibly none).
3
Suppose that A = {1, 11, 01} and B = {0, 10}. Find AB and BA.
We find that AB = {10, 110, 1110, 010, 0110} and BA = {01, 011, 001, 101, 1011, 1001}.
4
Which strings belong to the set represented by the regular expression Which strings belong to the set represented by the regular expression
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
5
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
6
What language is generated by the phrase-structure grammar if the productions are S → S11, S → λ where S is the start symbol?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
7
Construct a finite-state automaton that recognizes the set represented by the regular expression 10∗.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
8
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which strings belong to the regular set represented by the regular expression (1∗01∗0)∗?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
10
Find a grammar for the set Find a grammar for the set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
11
The productions of a phrase-structure grammar are S → S1, S → 0A, and A → 1. Find a derivation of 0111.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
12
Construct a finite-state machine with output that produces a 1 if and only if the last three input bits read are all 0s.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
13
Let A = {1, 10}. Which strings belong to A∗?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
14
Let A = {1, 10}. Describe the elements of A∗.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.