3. (8 marks) A computer's memory holds programs 1 through n, where each program occupies consecutive...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. (8 marks) A computer's memory holds programs 1 through n, where each program occupies consecutive memory locations and no two programs overlap. Program i begins at address ai for each 1 i n, and a1 < a2 < < an. After a certain amount to time, some of the programs change their memory requirements, with the new length of the ith program being li. It might be necessary to shift some of the programs to satisfy the new memory requirements with no programs overlapping. Suppose that the programs must remain in the same order. Further, suppose that the starting addresses of programs 1 and n cannot be changed, and that programs 1 through n - 1 with their new memory requirements can fit into the space between a and an, that is, l + l2 + ... + ln-1 an - a1. Let R be a relation on {1, 2,..., n} where: j-1 (i,j) Ri j and laajai q=i That is, (i, j) E R means that if programs i and j remain at their original starting addresses, it is possible to shift programs i + 1 through j - 1 to satisfy the new memory requirements of programs i through j - 1. (a) Prove that R is a partial order relation. (b) Explain why the following statement is true by giving a few sentences of explanation. Do not give a formal proof. If C is a chain of the partially ordered set {1, 2,..., n} with respect to R such that 1, n C, then the new memory requirements can be satisfied with no programs overlapping by shifting n - |C| programs. 3. (8 marks) A computer's memory holds programs 1 through n, where each program occupies consecutive memory locations and no two programs overlap. Program i begins at address ai for each 1 i n, and a1 < a2 < < an. After a certain amount to time, some of the programs change their memory requirements, with the new length of the ith program being li. It might be necessary to shift some of the programs to satisfy the new memory requirements with no programs overlapping. Suppose that the programs must remain in the same order. Further, suppose that the starting addresses of programs 1 and n cannot be changed, and that programs 1 through n - 1 with their new memory requirements can fit into the space between a and an, that is, l + l2 + ... + ln-1 an - a1. Let R be a relation on {1, 2,..., n} where: j-1 (i,j) Ri j and laajai q=i That is, (i, j) E R means that if programs i and j remain at their original starting addresses, it is possible to shift programs i + 1 through j - 1 to satisfy the new memory requirements of programs i through j - 1. (a) Prove that R is a partial order relation. (b) Explain why the following statement is true by giving a few sentences of explanation. Do not give a formal proof. If C is a chain of the partially ordered set {1, 2,..., n} with respect to R such that 1, n C, then the new memory requirements can be satisfied with no programs overlapping by shifting n - |C| programs.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
State carefully, with proof, the compositionality, soundness, and adequacy results for PCF. [6 marks] (ii) Define the notion of contextual equivalence in PCF. [2 marks] (You need not describe the...
-
If two krypton atoms are held together by a stabilization energy of 1.005 kJ/mol at what temperature would you expect these atoms to transition from bound to unbound? Show your thought process for...
-
Selected accounts from the ledger of Restoration Arts for the fiscal year ended April 30, 2016, are as follows: Prepare a statement of owner's equity for the year. Doug Stone, Capital Apr. 30 30...
-
What braking distance of a sedan represents the 90th percentile? On a dry surface, the braking distances (in feet), from 60 miles per hour to a complete stop, of a sedan can be approximated by a...
-
The Foreign Corrupt Practices act can levy fines of more than five hundred million against companies our size that do not eliminate corruption in their operations abroad. Can you understand why the...
-
You have completed the field work in connection with your audit of Alexander Corporation for the year ended December 31, 2012. The balance sheet accounts at the beginning and end of the year are...
-
The Williamson Corporation wants to help its employees save for retirement by allowing them to defer part of their compensation on a pretax basis that the company would match. The best option for...
-
Calculate the future sum of $1,000, given that it will be held in the bank for 5 years and earn 10 percent compounded semiannually.
-
You made an investment of $100. Four years later the Investment is worth $175. What is the a GEOMETRIC MEAN RETURN for this investment?
-
The Casey Company is expected to pay a dividend of $1.60 in one year (i.e., at t=1); thereafter, company dividends are expected to grow at 10% per year for the four years after that (i.e., t=2...
-
Six dice are thrown 729 times. Find the probability that at least three dice to show a five or a six is k/729, then find the value of k
-
A speculator believes that the share price at the BMSB will be al a downward direction in the near future. You asked your broker to short 30 KLCI futures contracts at a price of 855. Based on the...
-
How would you summarize the broad change management history as evidenced in the literature? Based on your readings and understanding of change management evolution, what recommendations do you have...
-
Find the series solution of the differential equation d2y + (x? ) dx2 dy + %3D 0 dx 2x2
-
After graduating from college and working a few years at a small technology firm. Preet scored a high-level job in the logistics department at Amex Corporation. Amex sells high-quality electronic...
-
John Fuji (age 37) moved from California to Washington in December 2011. He lives at 468 Cameo Street, Yakima, WA 98901. John's Social Security number is 571-78-5974 and he is single. His earnings...
-
Laura is a single taxpayer living in New Jersey with adjusted gross income for the 2012 tax year of $35,550. Laura's employer withheld $3,300 in state income tax from her salary. In April of 2012,...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Suppose that \(X\) is a continuous random variable that takes on values in \((0,1)\) and has characteristic function \(\psi(t)=[\exp (i t)-1] / i t\). Use Theorem 2.28 to find the density of \(X\)....
-
a. Prove that \[\kappa_{5}=\mu_{5}^{\prime}-5 \mu_{4}^{\prime} \mu_{1}^{\prime}-10 \mu_{3}^{\prime} \mu_{2}^{\prime}+20...
-
a. Prove that \(\kappa_{4}=\mu_{4}^{\prime}-4 \mu_{3}^{\prime} \mu_{1}^{\prime}-3\left(\mu_{2}^{\prime}ight)^{2}+12 \mu_{2}^{\prime}\left(\mu_{1}^{\prime}ight)^{2}-6\left(\mu_{1}^{\prime}ight)^{4}\)....
Study smarter with the SolutionInn App