Show the parse tree for the expression 110

Assignment Help Computer Engineering
Reference no: EM13323281

1. Two grammars are given:

S :: =SS | 0|1

T :: =0T|1T|0|1


A) The first grammar is ambiguous. This means that for some expression in the language(not necessarily for all), the expression has more than one parse tree. Give an expression that is in the language and give two different parse tree for it.


B) The second grammar is unambiguous. This means that every expression in the language has exacty on parse tree. Show the parse tree for the expression 110.

 

Reference no: EM13323281

Questions Cloud

How fast must an observer be traveling : In frame S, event B occurs 2 microseconds after event A and event A occurs at the origion whereas event B on the x-axis at x=3.3km. How fast must an observer be traveling along the +x axis
Calculate the power input to the basin with a depth : The minimum teperature anticipated is 60 deg. F and the absolute viscosity (μ) is 2.359 x 10-5lb*s/ft2. Determine the diameter (ft) if two rapid-mixbasins are operating in parallel with a depth of 10 feet. Also calculate the power input to the bas..
What is the syntax of the if statement : Find BNF OR EBNF grammars for Ada(available on the web). What is the syntax of the IF statement? Write a legal Ada if statement that look at the integer variables a and b.
Determine the initial acceleration of the metal cylinder : A 0.527 kg metal cylinder is placed inside the top of a plastic tube, the lower end of which is sealed off by an adjustable plunger, what is the initial acceleration of the metal cylinder
Show the parse tree for the expression 110 : The second grammar is unambiguous. This means that every expression in the language has exacty on parse tree. Show the parse tree for the expression 110.
Find its angular separation between central maxima : If wavelength is 5890 , and slits width is 0.25 mm, find its angular separation between central maxima
Determine total time for the compression wave to travel down : You are to perform a dynamic pile load test on a24-inch OD open ended homogeneous pipe pile. The pile has a shellthickness of 0.5 inch and is 80 feet long. Calculate: Compression wave velocity(hint: E=29x106 psi, g=490 pcf)
Create a temperature demo program : Make sure you take no input in this class and that it does not contain a main method.
Determine the pressure at the bottom of the tank : A large tank of water is full and has a depth of 10.0 m. What is the pressure at the bottom of the tank

Reviews

Write a Review

Computer Engineering Questions & Answers

  Securing the personal data

Because of the information systems are capable of storing and compiling the large amount of the data, several people worry that, and their private data will end up in the wrong hands.

  Implementing the code

Write down a program which utilizes a structure named MovieData in order to store the following information about the movieInvolve a constructor which allows all four of these member data values to be specified at the time a MovieData variable is g..

  How important is it to keep the site current

How important is it to keep the site current.According to "Putting Business Online Isn't Always Easy" (2005), "the biggest mistake people make is failing to know the commitment a Web site demands."

  What is equation in java

What is equation in Java

  Code to declare the four pointer variables

In C++: A pointer variable may consist of a pointer to a valid object, a pointer to a deleted object, NULL, or the random value. Write down the code which generates and sets four pointer variables a, b, c, and d to display each of these possibilit..

  Compare power loss if 500 kw of power is transmitted

A program to analyze the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compare the power loss if 500 kw of power is transmitted from a power generating station to cities at distances of 20, 30, 40, 50... 100 miles at 100 V..

  Describe a process of making it more widely

Conflict-management techniques allow managers to control conflict levels (not only decrease but also increase them). choose a problem that disturbs you and is not solved.

  Problems on b tree

Problems on B tree

  What are the advantages of this architecture

Reduced instruction set computers provide a large number of general-purpose registers and very few memory access instructions. Most instructions use registers instead of memory. What are the benefits of such architecture? Can you think of a disadv..

  Develop an opinion as to the degree to which hypertext links

Select two opposing viewpoints from web sources and by providing a review of their content develop an opinion as to the degree to which hypertext links are a good idea.

  Determining pearson correlation coefficient

Determining the Pearson correlation coefficient you need to write down the program computing Pearson correlation coefficient utilizing the parallel loop templates from the Intel Threading Building Blocks library (TBB).

  Make a menu bar with a file menu

make a menu bar with a File menu that includes a Perform Action command and an Exit command. The Perform Action command computes either the sum or average of the rows or columns in the array and displays the result in a message box. The Exit comma..

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