a) What is the language generated by a phrase-structure grammar G?
b) What is the language generated by the grammar G with vocabulary
c) Give a phrase-structure grammar that generates the set
Trending nowThis is a popular solution!
Chapter 13 Solutions
DISCRETE MATHEMATICS LOOSELEAF
- How many ways are there to arrange the 26 letters of the alphabet so that no pair of vowels appear consecutively (Y is considered a consonant)?arrow_forwardIf the binary operation * is defined on a set of ordered pairs of real number as (a,b)*(c,d)= (ad+bc, bd) and is associative then (1,2)*(3,5)*(3,4) equals:arrow_forwardLet A, B and C be 3 languages over the same alphabet: AtLeast2(A.B.C) = {w|w is in at least 2 of the 3 languages A, B and C } Show that if A, B and C are regular languages, then so is AtLeast2(A.B.C). Hint: Write "AtLeast2(A,B,C)" in the form of some set operations (intersection, union, complement,.) on "A", "B", and "C". Then use closure properties of regular languages.arrow_forward
- Denote the set in set-builder form {6, 12, 18, ….66}arrow_forwardWe are making 5-letter words from the set of letters a, b, c, d, e, f ..., in such a way that we have exactly the first 5 letters available so that we use all letters. that do not contain the sub- a. How many 5-letter words can we make from the letters without repeats word "bad" in consecutive letters? a. How many words don't contain the subword “bad” in not-necessarily-consecutive letters (but in order)? -> →arrow_forwardI don’t understand this!arrow_forward
- Construct a nondeterministic FSA that recognizes the language generated by the regular grammar G = (V, T, S, P), where V = {0, 1, S, A, B}, T = {0, 1), S is the start symbol, and P = {S → 1A, S→ 1B, S→ OC,S → 0,S→ 2, A → OB, A → 0, B → 1B, B → 0, B1, C → 04}arrow_forward4 -letter words'' are formed using the letters A, B, C, D, E, F, G. How many such words are possible for each of the following conditions?arrow_forwardThe set {1, 2, 3, 4, 5, .......} is called the set of -------------- numbersarrow_forward
- How many license plates can be made using either two uppercase English letters followed by four digits or two digits followed by four uppercase English letters? For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIUS Paragraph Arial 10pt A v I ... O WORDS POWERED BY T How many numbers must be selected from the set {1, 2, 3, 4, 5, 6} to guarantee that at least one pair of these numbers add up to 7? For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIUS Paragraph Arial 10pt A ...arrow_forwardHow would you write the set Q({∅,{∅,{∅}}}) in list notation? Show your all calculationarrow_forwardQ1) QUESTI0N 6 Are the sets equal? A={17,18,18,19,19,19,20,20,20,20} B={20,19,18,17} Yes Noarrow_forward
- Elementary Geometry For College Students, 7eGeometryISBN:9781337614085Author:Alexander, Daniel C.; Koeberlein, Geralyn M.Publisher:Cengage,