1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
OverLord2011 [107]
3 years ago
7

Assume your computer is able to complete 4 double floating-point operations per cycle when operands are in registers and it take

s an additional delay of 100 cycles to access any operands that are not in registers. The clock frequency of your computer is 2 Ghz.

Business
1 answer:
svp [43]3 years ago
8 0

Answer:

<em>For 1st algorithm</em><em>: The total run time is 200.25 s, while that of total waste time is 200 sec and the percentage of the waste time is 99.8%.</em>

<em>For 2nd algorithm:</em><em>The total run time is 100.35 s, while that of total waste time is 100.1 sec and the percentage of the waste time is 99.75%.</em>

Explanation:

As the complete question is not visible, therefore, the question is searched online and following reference question is obtained.

Following data is given as

Floating point operation time=T/4

Memory Access Time =100T

Frequency =2 GHz

Number of Cycles=1000

<u>1st Algorithm</u>

<em>/*dgemm0: simple ijk version triple loop</em>

<em>algorithm*/</em>

<em>for (i=0; i<n; i++)</em>

<em>for (j=0; j<n; j++)</em>

<em>for (k=0; k<n; k++)</em>

<em>c[i*n+j] += a[i*n+k] * b[k*n+j];</em>

First by rewriting the operation inside the inner loop:

= + ×

Now first A, B and C are loaded into the registers so

Load \,Time=3 \times Memory \,Access \,Time=3 \times 100\, T =300\, T

For 2 floating point computations (addition and multiplication)

Computation\, Time=2 \times Floating\, Time\\Computation\, Time=2 \times \frac{T}{4}\\Computation\, Time=\frac{T}{2}

Finally, to store and repeat the cycle as N^3 times the time is estimated as

Store \,Time=Memory\, Access\, Time=100T

Total Run time is given as

T_{run}=N^3 \times [T_{load}+T_{comp}+T_{store}]\\T_{run}=1000^3 \times [300T+\frac{T}{2}+100T]\\T_{run}=1000^3 \times [400.5T]\\T_{run}=200.25 s

Total Wasted time is given as

T_{waste}=N^3 \times [T_{load}+T_{store}]\\T_{waste}=1000^3 \times [300T+100T]\\T_{waste}=1000^3 \times [400T]\\T_{waste}=200 s

Percentage of Waste time is given as

\%age \, waste=\frac{T_{waste}}{T_{run}}\times 100\\\%age \, waste=\frac{200}{200.25}\times 100\\\%age \, waste=99.8\%

<em>The total run time is 200.25 s, while that of total waste time is 200 sec and the percentage of the waste time is 99.8%.</em>

<u>2nd Algorithm</u>

<em>/*dgemm1: simple ijk version triple loop</em>

<em>algorithm with register reuse*/</em>

<em>for (i=0; i<n; i++)</em>

<em>for (j=0; j<n; j++) {</em>

<em>register double r = c[i*n+j];</em>

<em>for (k=0; k<n; k++)</em>

<em>r += a[i*n+k] * b[k*n+j];</em>

<em>c[i*n+j] = r;</em>

<em>}</em>

Initialize register r with the content of C for N2 Times as given as Initialization\,Time=N^2 \times Memory \,Access \,Time=N^3 \times 100\, T

Time for Loading Operands A and B into registers for N3 Times is given as

Load \,Time=N^3 \times 2 \times Memory \,Access \,Time=N^3\times 2 \times 100\, T =N^3\times 200\, T

For 2 floating point computations (addition and multiplication)

Computation\, Time=N^3 \times\frac{T}{2}

Final Memory update to store result in the register r to the memory for N2 Times

Store \,Time=Memory\, Access\, Time=N^2 \times 100T

Total Run time is given as

T_{run}=N^3 \times [T_{load}+T_{comp}]+N^2 \times [T_{linit}+T_{store}]\\T_{run}=1000^3 \times [200T+\frac{T}{2}]+1000^2 \times [100T+100T]\\T_{run}=1000^3 \times [200.5T]+1000^2 \times [200T]\\T_{run}=100.35 s

Total Wasted time is given as

T_{waste}=N^3 \times [T_{load}]+N^2 \times [T_{init}+T_{store}]\\T_{waste}=1000^3 \times [200]+1000^2 \times [100T+100T]\\T_{waste}=1000^3 \times [200T]+1000^2 \times [200T]\\T_{waste}=100.1 s

Percentage of Waste time is given as

\%age \, waste=\frac{T_{waste}}{T_{run}}\times 100\\\%age \, waste=\frac{100.1}{100.35}\times 100\\\%age \, waste=99.75\%

<em>The total run time is 100.35 s, while that of total waste time is 100.1 sec and the percentage of the waste time is 99.75%.</em>

You might be interested in
Suppose that a house is worth $350,000 today. If house prices are expected to decline by 15% for each of the next two years. How
zhenek [66]

Answer: $‭252,875‬

Explanation:

This concerns a value in future (2 years) so the future value formula can be used;

= 350,000 * ( 1 - 15%) ²

= $‭252,875‬

House will be worth $‭252,875‬ at the end of 2 years if it declines in value at 15% per year.

5 0
3 years ago
The admissions director at big city university proposed using the iq scores of current students as a marketing tool. the univers
Vika [28.1K]

The complete question is as follows:

The admission directory of Big City University has a novel idea. He proposed using the IQ scores of current students as a marketing tool. The university agrees to provide him with enough money to administer IQ tests to 50 students. So the director gives the IQ test to an SRS of 50 of the university’s 5000 freshman. The mean IQ score for the sample is xbar=112. The IQ test he administered is known to have a σ of 15. What is the 95% Confidence Interval about the mean? What can the director say about the mean score of the population of all 5000 freshman?

Answer: The 95% confidence interval about the mean is Confidence interval = 107.84 \leq \mu \leq 116.16.

The director can say that he is 95% confident that the mean IQ score of the 5000 freshmen lies between 107.84 and 116.16.

We follow these steps to arrive at the answer:

Since the population standard deviation of the IQ test is known, we can use the Z scores to find the confidence interval.

The formula for the confidence interval about the mean is:

Confidence interval = \overline{X}\pm Z*\frac{\sigma}{\sqrt{n}}

In the equation above, X bar is known as the point estimate and the second term is known as Margin of Error.

The Critical Value of Z at the 95% confidence level is 1.96.

Substituting the values in the question in the equation above we have,

Confidence interval = \112\pm 1.96*\frac{15}{\sqrt{50}}

Confidence interval = \112\pm 4.157787873}

Confidence interval = 107.8422121 \leq \mu \leq 116.1577879

5 0
3 years ago
The June 30, 2021, year-end trial balance for Askew company contained the following information:
lutik1710 [3]

Answer:

The answer is:

A. $239,000

B.

June 30

Dr Cost of goods sold. $239,000

Closing Inventory $40,600

Purchase returns $10,600

Purchase discounts $ 6,600

Cr Opening Inventory. $ 32,600

Purchase $247,000

Freight-in $18,200

Explanation:

Net purchase is

Purchases. $246,000

Minus: Purchase discounts $6,600

Minus:Purchase returns $10,600

Plus: Freight-in $18,200

Net purchase. $247,000

A.

Cost of sales:

Opening Inventory $32,600

Plus: Purchases. $247,000

Minus: closing Inventory. $40,600

Cost of sales. $239,000

B.

June 30

Dr Cost of goods sold. $239,000

Closing Inventory $40,600

Purchase returns $10,600

Purchase discounts $ 6,600

Cr Opening Inventory. $ 32,600

Purchase $247,000

Freight-in $18,200

3 0
3 years ago
Individuals with variations that make them best suited to their environment will, on average, be more likely to ________. indivi
IgorC [24]
<span>Individuals with variations that make them best suited to their environment will, on average, be more likely to survive and reproduce. 

Individuals that understand and can survive within their environment often reproduce because they have outlived the other members. They are strong and equip to run the organization and environment they live in. 
</span>
4 0
3 years ago
Sal purchased a used toaster at a yard sale. The seller told Sal that although the toaster was more than 10 years old, she had n
inessss [21]

Answer:

<em><u>The manufacturer of the toaster would argue from the point of view of the warranty offered for the toaster.</u></em> In most electronic products, the manufacturer offers warranty ranging from 1 year to 5 years.

<em>For the toaster to have worked for more than 20 years without any problem shows that it was a good product. And, the warranty must have expired hence the need not to be held responsible for whatever happened to it.</em>

Explanation:

4 0
3 years ago
Other questions:
  • On November 27, the board of directors of Armstrong Company declared a $.50 per share dividend. The dividend is payable to share
    8·1 answer
  • Suppose a company has a unique dividend policy. The firm has expects to pay a dividend of $3.45 in the next year. They anticipat
    11·1 answer
  • What should you do when you use a ladder?
    5·2 answers
  • The purpose of the _____ stage of the new product development process of a company is to estimate costs and forecast sales for e
    13·1 answer
  • Western Athletic Club International (WACI) owns and operates a chain of fitness clubs and is interested in estimating the CLV fo
    6·1 answer
  • As a customer acquisition technique, events: a. Are considered mostly ineffective compared to mobile advertising or social media
    11·1 answer
  • Đặc điểm cơ bản của tài chính gián tiếp là gì
    14·1 answer
  • An investor owns $8,000 of Adobe Systems stock, $9,000 of Dow Chemical, and $9,000 of Office Depot. What are the portfolio weigh
    12·1 answer
  • Which means "6 times a number minus 7 is 5 more than 4 times that number"?
    11·1 answer
  • In a small group, which type of roles often involve seeking, processing, and evaluating information?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!