Productions of nonterminals as right regular grammars

Assignment Help Theory of Computation
Reference no: EM1361425

1. Rewrite the productions for each of the following nonterminals as right regular grammars: Identifier, Float.

2. Draw a DFSA for identifiers that contain only letters and digits, where the identifier must have at least one letter, but it need not be the first character. Hint: everything to the left of the leftmost letter must be a digit.

3. Show the moves made using the DFSA for identifiers in accepting the following:

1. a
2. a2
3. a2i
4. abc
4. For C-style / * . . . * / comments, give
1. a right regular grammar
2. a regular expression
3. a DFSA

5. Can a language have no reserved words? That is, suppose every reserved word (such as if and for) were merely predefined identifier, which the programmer is free to redefine. Can such a language exist? Explain.

Reference no: EM1361425

Questions Cloud

Restructuring and employee empowerment : Management Technique - Restructuring and Employee Empowerment
Human chorionic gonadotropins : Blood tests for meningitis were negative. However, he had low thyroxine, cortisol, and human chorionic gonadotropins (HCGs).
Employee training and transfer of knowledge : Employee Training and Transfer of Knowledge -Why do learners sometimes not take their new knowledge and skills back to their work place after training?
Explain advantages and disadvantages of consumer credit : Discuss and explain the advantages and disadvantages of consumer credit and to make sure to explain what leverage is and why it is important.
Productions of nonterminals as right regular grammars : Rewrite the productions for each of the following nonterminals as right regular grammars: Identifier, Float. Show the moves made using the DFSA for identifiers in accepting.
Why annual revenue growth has exceeded : The manager is concerned that, despite the fact that the firm's competitors are comparatively small, collectively their annual revenue growth has exceeded 50 percent over each of the last five years.
Effect of wound healing : Can you tell me how would her age effect her wound healing? I think her immobility, her diabetes, and her BMI will have a direct effect on her healing. Can you tell me why pathophysiologically why this is the case?
Degree of operating leverage : The Harley Health Club has asked you to review aspects of its financial condition, specifically its break even point and its use of leverage.
Show service and product design : Write a memo to the production department explaining the difference between service and product design and explain how it can incorporate service into the design process.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Construct and dfa or lr items for grammar

Consider the following grammar: S S (S) | ε. Construct and DFA or LR(0) items for this grammar. Construct SLR(1) parsing table.

  Proving language to be pumping lemma

Show that the language F = {a^i b^j c^k | i, j, k greater than or equal to 0 and if i = 1 then j = k} is not regular. Show, however, that it satisfies the statement of the pumping lemma

  Create standard 1-tape turing machine to calculate function

Create a standard 1-tape Turing machine M to calculate the function sub3. Specifically, calculate sub3 of a natural number represented in binary.

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Write first four strings in lexicographic enumeration

Consider the language L = L1 ∩ L2, where L1 = {ww^R : w ∈ {a, b}* and L2 = {a^n b*a^n: n ≥ 0}. Write the first four strings in the lexicographic enumeration of L?

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Express set as regular expression

Express the following set as a regular expression: The set of all strings of length at least three over {0,1} such that every three consecutive.

  Design jflap truing machine takes input a tape

Design in JFLAP a Truing machine that takes as input a tape containing a series of n 1s, Where n >= 0, terminated by an = sign.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Interpreting the regular expressions as languages

Show that the following identities hold for regular expressions over any alphabet: epsilon + R*R = R*. These should be done by interpreting the regular expressions as languages.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  If l recognized by dfa then language left half is regular

We showed to prove that if L can be identified by DFA then the language left half(L) = {x ∈ ∑*|∃y xy ∈ L and |x| = |y|} is also regular; here |x| means length of x.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd