Question

In: Computer Science

We have a multi-level computer which has hardware at level 1 and identical levels of translation...

We have a multi-level computer which has hardware at level 1 and identical levels of translation at all levels above it. Each level has W times more powerful instructions compared to the level below it. An instruction being W times as powerful means that optimally sequenced W instructions at level n-1 do the same work of one instruction at level n. In practice, the optimal translation from a level to the one below it is hard to achieve. Therefore, we will assume that an instruction at level n is translated into S instructions at level n-1, where S > W. Assuming we have 6 levels in this multi-level computer find the ratio of the time it takes to execute a program at level 6 to the time it takes an optimal sequence of instructions to do the same work at level 1. Assume all instruction types at one level take the same amount of time to execute. Generalize your answer to N levels.

Solutions

Expert Solution

Given,

Practically, an instruction at n level is translated to S instructions at n-1 level

Optimally, an instruction at n level is translated to W instructions at n-1 level

For practical case,

For a program, let the no. of instructions at level n be x

x instructions are translated to S*x instructions at level n-1

S*x instructions are translated to S2x instructions at level n-2

After calculating, x instructions are translated to Sn-1x instructions at level 1.

For optimal case,

x instructions are translated to W*x instructions at level n-1

W*x instructions are translated to W2x instructions at level n-2

After calculating, x instructions are translated to Wn-1x instructions at level 1.

Ratio of the time taken to execute a program at level n to the time taken to optimally execute a program at level 1

= (Sn-1*x*time taken per instruction)/(Wn-1*x*time taken per instruction)

= (S/W)n-1

For a program at level 6, the required ratio is (S/W)6-1=(S/W)5

Answer:

Ratio of the time taken to execute a program at level n to the time taken to optimally execute a program at level 1 = (S/W)n-1

Ratio of the time taken to execute a program at level 6 to the time taken to optimally execute a program at level 1 = (S/W)5


Related Solutions

We have a system of two identical particles which are in the individual states of |φ...
We have a system of two identical particles which are in the individual states of |φ and |ψ (φψ=0). Calculate appropriate system state for both fermion and boson cases We want to measure the observable A common to both particles. This observable has non-degenerate and discrete spectrum, i.e, A|ui=ai|ui. Immediately after the measurement calculate the probability P(an,am) for measuring an eigenvalue for one of the particles and am for the other. What would happen to the probability if right after...
Explain the difference between the three different levels of virtualisation: CPU Instruction Set level, Hardware Abstraction...
Explain the difference between the three different levels of virtualisation: CPU Instruction Set level, Hardware Abstraction Layer (HAL) level, and Operating System level.
Please thoroughly explain each answer. A manufacturer of computer chips has a computer hardware company as...
Please thoroughly explain each answer. A manufacturer of computer chips has a computer hardware company as its largest customer. The computer hardware company requires all of its chips to meet specifications of 1.2 cm. The vice-president of manufacturing, concerned about a possible loss of sales, assigns his production manager the task of ensuring that chips are produced to meet the specification of 1.2 cm. Based on the production run from last month, a 95% confidence interval was computed for the...
In terms of databases: What are multi level indexes? Why do we need them and are...
In terms of databases: What are multi level indexes? Why do we need them and are they any good? What are their merits and demerits?
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is...
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is indicated. 3. Provide examples of each prevention type.
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is...
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is indicated. 3. Provide examples of each prevention type Note: want answers typed.
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is...
1. Distinguish between the levels of prevention. 2. Identify the circumstances in which each level is indicated. 3. Provide examples of each prevention type.
Suppose we have two identical firms A and B, selling identical products. They are the only...
Suppose we have two identical firms A and B, selling identical products. They are the only firms in the market and compete by choosing quantities at the same time. The Market demand curve is given by P=200-Q. The only cost is a constant marginal cost of $17. Suppose Firm A produces a quantity of 50 and Firm B produces a quantity of 50. If Firm A decides to increase its quantity by 1 unit while Firm B continues to produce...
Booyah is a publicly traded company that sells both computer hardware and services. It has no...
Booyah is a publicly traded company that sells both computer hardware and services. It has no debt outstanding or cash. In the most recent year, the company reported the following information about its two businesses: Business              Revenues (in $ millions)               Enterprise Value/Sales Unlevered Beta Computer hardware       $800                                                               0.7 1.22 Computer services          $500                                                               1.9 0.7 The company also provides the breakdown of revenues geographically: Country Riskfree rate In local currency Equity Risk Premium Marginal tax rate Total Revenues (in...
To what end have billions of dollars have been spent on computer hardware, software, network communications,...
To what end have billions of dollars have been spent on computer hardware, software, network communications, and all the other requirements of having world-class technology. Has the money spent on technology allowed businesses to become more profitable? Has the implementation of information technology led to a sustainable competitive advantage?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT