Consider generalizing the problem of constant propagation

Assignment Help Basic Statistics
Reference no: EM131096315

As defined in Exercise 20, prove or disprove that range analysis is a rapid data flow problem.

Exercise 20

Consider generalizing the problem of constant propagation to that of range analysis. For each variable, we wish to associate a minimum and maximum value, such that the actual value of the variable (at that site in the program) at runtime is guaranteed to fall between the two values. For example, consider

the following program.

After their assignment, variable has range 5 _ _ _5 and variable has range 3 _ _ _ 3. The effect of Step 14 gives the range 8 _ _ _ 8. The effect of Step 15 gives the range 2 _ _ _ 2. The assignment for therefore gets the range 2 _ _ _ 8.

(a) Sketch the data flow lattice for a single variable. Be specific about the values for or .

(b) Is this a forwards or backwards propagation problem?

(c) If the variable could have range r1 or r2, describe how to compute the meet of these two ranges.

Reference no: EM131096315

Questions Cloud

Design an application that instantiates an object : Design a class named Player that holds a player number and name for a sports team participant. Include methods to set the values for each data field and print the values for each data field.
Software and digital entertainment industries : 1. The theft of intellectual property in the software and digital entertainment industries is called:
Design an application that instantiates a book : Design an application that instantiates a Book and a Text Book and demonstrates all the methods of each class.
Design a card class that contains a string data field : Include get and set methods for each field. Write an application that randomly selects two playing cards and displays their values.
Consider generalizing the problem of constant propagation : Consider generalizing the problem of constant propagation to that of range analysis. For each variable, we wish to associate a minimum and maximum value, such that the actual value of the variable (at that site in the program) at runtime is guaran..
Product of the first n prime numbers : MATLAB: Write a function whose input is a positive integer n, and whose output is the nth prime number. Then, write a script that calls this function to output the sum of the first n prime numbers and the product of the first n prime numbers.
Provide n and display the result of n : Write a C++ program which calls a factorial function to calculate N!. N! is the product of all whole numbers from 1 to N. For example, the factorial of 5! is 1 * 2 * 3 * 4 * 5 = 120. Your main program will ask the user to provide N and display the..
Constant propagation to that of range analysis : Consider generalizing the problem of constant propagation to that of range analysis. For each variable, we wish to associate a minimum and maximum value, such that the actual value of the variable (at that site in the program) at runtime is guaran..
Java program that asks the user : Write a Java program that asks the user to input a positive integer n first, then create an array of size n. Fill n random integers between 5 and 555, inclusively, into the created array.

Reviews

Write a Review

Basic Statistics Questions & Answers

  Mean and standard deviation of the total revenue

a. Will the total revenue on a day be normally distributed? b. What are the mean and standard deviation of the total revenue on a particular day? c. What is the probability that the revenue will exceed $7,000 on a particular day?

  A event the student is between 21 and 35 inclusive b

the age distribution of students at a community college is given below. age years number of students f under 21 2196

  Sufficient evidence that the percentage of defects

In a random sample of 80 items, the defect rate is 5% but the manager claims that this is only a sample fluctuation and production is not really out of control. At the 0.01 level of significance, does the data provide sufficient evidence that the ..

  In a study of pregnant women and their ability to correctly

in a study of pregnant women and their ability to correctly predict the sex of their baby 56 of the pregnant women had

  Let x be the amount of time in minutes that a particular

let x be the amount of time in minutes that a particular san francisco commuter must wait for a bart train. suppose

  Confidence interval for population mean number of hours

Develop a 95% confidence interval for the population mean number of hours spent watching videos and DVDs last year.

  How many different committees are possible

From 9 names on a ballot, a committee of 3 will be elected to attend a political national convention. How many different committees are possible

  Determining the appropriate plan

A single-sample acceptance attributes sampling plan is required to have a producer's risk of 0.06 for an acceptable quality level of 0.5% nonconforming, and a consumer's risk of 0.10 for a rejectable quality level of 5% nonconforming. Use Minitab ..

  A random sample of 16 emergency reports was selected from

a random sample of 16 emergency reports was selected from the files of an ambulance service. the mean time computed

  Model the effect of temperature

Use logistic regression to model the effect of temperature on the probability of O-Ring Failure. How do you the results be interpreted? In particular how the effect of temperature on the odds of thermal distress should be interpreted?

  How many seeds will germinate in less than twenty days

Standard deviation of 3.2 days. If a nursery plants 100,000 of these seeds, how many will germinate in less than 20 days?

  Identify the sample space of the probability

Identify the sample space of the probability

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