Professional Documents
Culture Documents
Answer: intractable
6. What is a grammar?
Answer: ε
Quiz #2
Answer: DFA can exist in only one state at a given time while NFA can exist in multiple states
Answer: “C if H”
Answer: Implication
Answer: H → C
8. In words, H → C means…
9. NFA means:
Quiz #3 Part 1
Answer: True
Answer: False
Answer: 16
Answer: True
Answer: m x n
Answer: A U B
Answer: {5, 6, 7, 8, 9}
11. A' will contain how many elements from the original set A?
Answer: 0
12. (A')' = ?
Answer: A
Answer: true
Answer: A not in B
15. How many rational and irrational numbers are possible between 0 and 1?
Answer: Infinite
Answer: A ∩ B
18. Connected graphs have components.
Answer: False
19. Which of the following Set Operations produces the set that contains everything that is in Set A and
in Set B?
Answer: Union
20. The power set of a given set does not contain the set itself.
Answer: False
21. The cardinality of the union of two disjoint sets is less than the sum of the cardinality of the given
sets.
Answer: True
Answer: False
24. The commutativity property of set operations states that the union of any set with same set is the
set itself.
Answer: False
26. A set has n elements, then the number of elements in its power set is?
Answer: 2 ^ n
Answer: True
Quiz #3 Part 2
Answer: [A-Z][a-z]*
3. A good regular expression for any valid real number using engineering notation is ______________.
Answer: [0-9]+.[0-9]*[(E|e)[0-9]+]
Answer: that regular expressions are more program syntax-like while automata are more machine-like
Answer: a*b*c*a*d*
Answer: a*b*c*a*d*e+
Answer: a*b*c*a*d*e+
Answer: Idempotent
Answer: A CFG
10. The algebraic law of regular expression described by φE = φ = Eφ is _______________.
Answer: Annihilator
Quiz #4
Answer: X is useful
Answer: A is nullable
8. What is a grammar?
Quiz #5
Answer: A PDA
4. Which of the following statements is true about NPDA, DPDA, and RL?
Answer: {0, 1}
Answer: ABBBAA
4. Let w = 100011, is w a member of a language of string with equal number of 0s and 1s?
Answer: Yes, because the number of 1s is the same as the number of 0s, which is 3
8. What is a language?
Answer: A collection finite-length sentences that were constructed from a finite set of symbols
Answer: False
Quiz #7
3. If a problem can be shown that it belongs to the class of recursively enumerable languages then
______________________.
4. If we can successfully and correctly stimulate a TM with storage by two standard TMs, then
______________________.
Answer: ⊂
7. Recursive : TM that always halt = ________________ : TM that may or may not halt
Answer: can show that recursive languages are closed under union