Construct the constraint graph for these inequalities

Assignment Help Computer Engineering
Reference no: EM133131351

Question 1: Consider the Statecharts for a solution to the two-task mutual exclusion problem in Figures 5.3 and 5.4. Statechart A is basically a classical finite-state machine whereas Statechart B takes advantage of Statecharts' features. Show the two cor¬responding Statecharts for a system with three tasks. Describe how Statechart B (for both the two-task and three-task systems) avoids the state-explosion problem found in statechart A.

1422_mutual exclusion problem.jpg

 

Figure 1: Statechart A of a solution to the mutual exclusion problem.

1346_mutual exclusion problem1.jpg

 

Figure 2: Statechart B of a solution to the mutual exclusion problem

Question 2: Express the following safety assertion in RTL: If the brake actuator is activated (ACTIVATED) within 30 time units of the completion of action TRANSMIT (which transmits the signal from the brake to the brake actuator), we are assured that within 100 time units of pressing the brake (BRAKE), the brake actuator is activated, and within 120 time units of pressing the brake but at least 40 time units after pressing the brake, the braking mechanism will be applied (STOP).

Question 3. If all edges involved in a positive cycle in a constraint graph U correspond to literals that belong to unit clauses, F" (SP ^ ¬SA in clausal form) must be unsatisfiable. If an edge corresponds to a literal that belongs to non-unit disjunctive clause Ci, then it must be shown that each of the remaining literals in Ci; is also involved in a different positive cycle. Explain why this is necessary.

Question 4. Consider the following set of inequalities.

1. t1 : C ≤ A
2. t2 : A - 15 ≤ B
3. t3 : B+ 15 ≤ C
4. t4v t6:C-10 ≤ D v B + 10 ≤ D
5. t5 v t7: D + 15 ≤ C v D + 15 ≤ B
6. t7 v t8 :D+ 15 ≤ B v D + 5 ≤ D

(a) Construct the constraint graph for these inequalities.
(b) List the positive cycles.
(c) Using these positive cycles, construct a tree to find out if this set of inequal-ities is unsatisfiable. You might have to check that the inequalities in a leaf node are by themselves not satisfiable.

Question 5. Consider again the specification of the NASA 2001 Mars Odyssey Orbiter (Cams 20011 described in chapter 5 (exercise 81. but now with timing constraints on the different events and actions.

The orbiter is in the ready mode before launch. Before and during launch, the orbiter is folded into a protective housing. The execution time for the launch is 60 s. The start of the launch occurs after a delay of 30 s but within 90 s of the time the orbiter becomes ready.

After launch, the solar panel extends within 120 s to convert solar energy into electric energy for navigational use. When the orbiter approaches Mars after IS months, its engine fires within 20 s and the orbiter inserts into Mars' orbit.

Question 6. Braking starts 50 s after the start of engine firing, and braking takes 20 s. After braiano, the orbiter deploys its high-gain antenna within 100 s. At any time after launch, if an emergency occurs (expected steps are not executed as observed by a specialized monitoring computer), the orbiter skips the above steps and enters a safe mode within 10 s and lets mission controllers take over control of the orbiter. Represent the behavior of the orbiter using (a) RTL

Question 7. Consider the following EQL program:

arbiter := b ! wake_up = false IF (error = a)
[] object_detected := true
IF (sensor_a = 1) AND (arbiter = a) AND (wake_up = true)

[]object_detected := false
IF (sensor_a = 0) AND (arbiter = a) AND (wake_up = true) 0 arbiter := a ! wake_up = false IF (error = b)
[] object_detected := true
IF (sensor_b = 1) AND (arbiter = b) AND (wake_up = true)

[]object_detected := false
IF (sensor_b = 0) AND (arbiter = b) AND (wake_up = true)

Use the general analysis strategy to analyze this program and report the analysis results.

Question 8. Consider a simple algorithm for solving the mutual exclusion problem tor two processes. Construct the state transition diagram for this algorithm. Prove or disprove the following properties by first expressing them in CTL formulas and then by following as much as possible the labeling technique in the CES model checker.
(a) Only one of the two processes can be in the critical section at any one time.
(b) The two processes will not deadlock.

Reference no: EM133131351

Questions Cloud

The economic explanation for shrinking airline washrooms : For a number of years, in a typical coach-class washroom on a passenger airplane, the distance from the mirror on one side to a wall on the other measured about
What journal entry gaur record to establish an allowance : Gaur's management estimates that 6% of the accounts will prove uncollectible. What journal entry should Gaur record to establish an allowance
Public organizations in terms of motivational tools : Discuss how private organizations differ from public organizations in terms of motivational tools
How much has the firm productivity increased : If you have 200 employees producing on average 125 units per year, how many units per year is your firm producing?
Construct the constraint graph for these inequalities : Construct the constraint graph for these inequalities and List the positive cycles - construct a tree to find out if this set of inequal-ities is unsatisfiable
Define firm and transaction costs : Define: firm and transaction costs. Define: proprietorship, partnership, and corporation, and provide an advantage and disadvantage of each.
What is the taxable income the corporation will report : The total amount of warranty claims during the year is $8,500. What is the taxable income the corporation will report on Schedule M-1
Purpose of the research study : In a research article conducted by Thomson et al. (2019), with the purpose to discover the reason behind a woman's choice to use or not use pharmacological pain
Calculate selling price for the pint of beer : Now suppose that after Mike gets his promo pint but before he decides whether to sell it, he notices that he lost $10 on the way to the pub. He does not yet inc

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain what made troubleshooting of problem so difficult

Explain what made the troubleshooting of the problem so difficult. What would you have done differently now that you are becoming more informed about MS Windows

  What are the disadvantages of a centralized it system

Read Case 9-1 "IT Governance at University of the Southeast" and then answer the following questions. First, describe the IT governance system.

  Write a function named triple whose only parameter

Write a function named triple whose only parameter is an integer pointer. In the main method and after calling the function, print the variable num.

  Find two ways to change the mac address on your computer

Perform a little research to find two ways to change the MAC address on your computer. Clearly explain why this is valuable knowledge to have.

  Privacy data policy in your companys data classification

The customer privacy data policy in your company's data classification standard requires encryption in two places

  Why turning off computer by using power switch might harmful

Explain why turning off the computer by using the power switch might be harmful to the system. Four medical assistants work at their own computer workstations, which are networked to a server. Explain the function of the server.

  Execute the boolean functions

Execute the Boolean functions

  How do you write an equality operator

Question: How do you write an equality operator (call it =/) that determines if two yearday instances are equal?

  What puts neuron into an excited state or an inhibited state

How is a neural network formed and what is the role of a synapse? What puts a neuron into an excited state or an inhibited state?

  Write an application that can be used to count the frequency

Write an application that can be used to count the frequency of characters in a paragraph. Allow the user to input several sentences using a GUI.

  Explore paper on vmware security

Explore paper on VMware Security

  Create a prototype of a stand-alone website

COIT 20268 - Responsive Web Design (RWD). To complete the given project specified in the Background section above, you are to create a prototype of a stand-alone website for a desktop computer

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