2. A system is computing results for a set of different requests. Each request is answered...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. A system is computing results for a set of different requests. Each request is answered by first querying a database, and then processing the query results to produce an answer. The system can process the query results in parallel (with one processor per request), but querying the database itself must be done sequentially (one request at a time). Consider that we have an entire set of requests, and we can respond to them in any order we wish. We also have, for each request i, the time q; that will be needed to query the database and the time p; that will be needed to process the query results into the answer. Processing this set of requests is monopolizing our system, so we would like to complete the entire process as soon as possible. (a) Consider a greedy approach that answers the requests in nondecreasing order of total time qi + Pi, with the shortest q + pi first. Give and demonstrate a counterexample to show that this approach does not always find the minimum total time elapsed. (b) Prove that answering the requests in nonincreasing order of p; (largest processing time first) always produces an optimum result. 2. A system is computing results for a set of different requests. Each request is answered by first querying a database, and then processing the query results to produce an answer. The system can process the query results in parallel (with one processor per request), but querying the database itself must be done sequentially (one request at a time). Consider that we have an entire set of requests, and we can respond to them in any order we wish. We also have, for each request i, the time q; that will be needed to query the database and the time p; that will be needed to process the query results into the answer. Processing this set of requests is monopolizing our system, so we would like to complete the entire process as soon as possible. (a) Consider a greedy approach that answers the requests in nondecreasing order of total time qi + Pi, with the shortest q + pi first. Give and demonstrate a counterexample to show that this approach does not always find the minimum total time elapsed. (b) Prove that answering the requests in nonincreasing order of p; (largest processing time first) always produces an optimum result.
Expert Answer:
Answer rating: 100% (QA)
a Counterexample for Greedy Approach Consider three requests with the following parameters Request A ... View the full answer
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
In Exercises 7681, find the domain of each function. g(x) = 4 x - 7
-
Presented below are two independent situations. 1. Longbine plc redeemed 130,000 face value, 12% bonds on June 30, 2017, at 102. The carrying value of the bonds at the redemption date was 117,500....
-
Banff Limited (a Canadian company) imports die-cast parts from its Taiwanese subsidiary that are used in the production of childrens toys. Per unit, part 169 costs the Taiwanese subsidiary C$10.00 to...
-
What is a User Story?
-
1. Your notebook computers hard drive recently crashed, and you decide to take it to a local repair technician to have it fixed. In this relationship, a. you are the agent. b. the technician is the...
-
Consider the following WiFi topology, with five transmitters (A, B, D, E, and F) and two access points (C and G). As shown, A and B are associating with C, while D, E, and F are associating with G. 2...
-
1. What factors might have enabled JLR to raise new debt at less than half the coupon rate of interest in 2015 compared with the debt raised in 2011? 2. Compute the amount at which existing...
-
AP CS Test 6: Inheritance suas ns al 20W (1 1) [18pt] This question involves the using of an interface. A trendy millennial-owned clothing store downtown sells coats, pants, and shirts. The store...
-
The demand and supply schedule of 'Pizza by the Bay is given below: Price (Rand/pizza) 140 120 100 80 60 40 20 Quantity Demanded (Millions per week) 50 100 200 300 400 500 600 Quantity supplied...
-
An airplane traveling at 60 m/s comes to a stop in 10 seconds. Calculate the airplane's acceleration. Show the appropriate formula and show your work with units in order to receive credit.
-
Descriptive Writing Sample As you read the following example of descriptive writing, please do the following: 1. Highlight, in bil, the thesis statement (main idea) of the text. 2. Highlight, in...
-
2. A travelling salesperson wishes to travel to the most populated cities of Australia to sell a product. To solve this problem assume that the direct distance between two cities can be calculated as...
-
20. Joan's license expired 14 months ago. If this is her third license cycle, what must she do to practice real estate again? (a) Take 28 hours of reactivation education and pass a 50-question test ...
-
One of the clients for the consultancy firm you work for operates an escape room. Their escape room has 14 rooms, with an exit in both room 1 and 14. The puzzles have been setup so that there is a...
-
Design an experiment to demonstrate that RNA transcripts are synthesized in the nucleus of eukaryotes and are subsequently transported to the cytoplasm.
-
Discuss briefly the importance in systems design of good communication among systems analysts, management, and systems operating personnel.
-
The following is a description of purchasing and accounts payable procedures in effect at the Northwest Manufacturing Company: Using departments submit purchase requisitions on pre numbered...
-
List the six steps in the systems approach.
-
(a) Complete a steady-state simulation of the vinyl-chloride process in Figure 2.6. First, create a simulation flowsheet. Assume that: Cooling water is heated from 30 to \(50^{\circ} \mathrm{C}\)...
-
For the monochlorobenzene separation process in Figure 7.14, the results of an ASPEN PLUS simulation are provided in the multimedia modules under ASPEN \( ightarrow\) Principles of Flowsheet...
-
Complete a simulation of the entire process for the hydrodealkylation of toluene in Figure 6.14. Initially, let the purge/recycle ratio be 0.25 ; then, vary this ratio and determine its effect on the...
Study smarter with the SolutionInn App