Discuss in detail about ambiguous grammar

Assignment Help Other Subject
Reference no: EM132533083

Assignment-1

Question 1. Construct a DFA equivalent to the NFA. M=({p,q,r},{0,1}, δp,{q, s}) Where δ is defined in the following table.

 

0

1

P

{q, s}

{q}

q

{r}

{q, r}

r

{s}

{p}

s

-

{p}

Question 2 Show that the set L = (anbn/n>=1} is not a regular.

Question 3 Construct a derivation tree for the string 0011000 using the grammar S→ A0S| 0 |SS|, A → S1A|10.

Question 4 Discuss in detail about ambiguous grammar and removing ambiguity from grammar.

Question 5. Simplify the following grammar S→ aAa | bBb | BB. A →C, B→ S , A, C →S I ∈

Question 6. What is additional feature PDA has when compared with NFA? Is FDA superior over NFA in the sense of language acceptance? Justify your answer.

Question 7 Is it true that deterministic push down automata and non-deterministic posh down automata are equivalent in the sense of language of acceptances? Justify your answer.

Question 8 Construe a PDA accepting (an bm an /m, n> 1 n)al I by empty slack. Also construct the corresponding context-free grammar accepting the same set

Question 9. Construct a CFG representing the set of palindromes over (0+1)*.

Question 10 Let G be the grammar S→ aB|bA, A→ a|aS|bAA, B→ b|bS|aBB. Obtain parse tree for the string aaabbabblaa.

Question 11. Construct a context free Grammar for the given expression (a+b).(a+b+0+1)*.

Reference no: EM132533083

Questions Cloud

Calculate a gpa for each student and the class average : Write a program that will process a list of students'' grades to calculate a GPA for each student and the class average
Different laws for public and private sector employees : Do you agree that having different laws for public and private sector employees (at will versus for just cause ) is fairer?
What type of tort was alleged to have been committed : 1. What type of tort was alleged to have been committed? 2. What are the elements of that tort?
Resolve a dispute outside of the courts : Arbitration is a legal option for two parties to resolve a dispute outside of the courts. The parties ask a third party, known as the arbiter or arbitrators
Discuss in detail about ambiguous grammar : Construct a derivation tree for the string 0011000 using the grammar and Discuss in detail about ambiguous grammar and removing ambiguity from grammar.
What best describes the law of interpretation : Q1. What best describes the law of interpretation?
Explain impact of the mentioned factors on the cost of money : There are a number of factors that influence the cost of money, Explain the impact of the mentioned factors on the cost of money.
Briefly explain the purpose of open disclosure : Briefly explain the purpose of open disclosure
Explain the risks involved in trying to achieve : Explain the risks involved in trying to achieve the necessary outcomes and the resources required to address the gaps.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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