Question

2021-09-09

a) The tradional five stage pipeline of IF, ID, EX, MEM, WB can be modified to IF,ID,MEM,EX,WB if we only wabt to support registe indirect addressing.

c) The following illustrates the forwarding path in the modified pipeline.

\(\begin{array}{|c|c|c|}\hline\text{Source Instruction Pipeline Stage}&\text{Destination Instruction Pipeline Stage}&\text{Remarks}\\\hline\text{MEM}&\text{MEM}&\text{Load or Store (data value or index)}\\\hline\text{EX}&\text{MEM}&\text{ALU OP producing the register for a Load or Store}\\\hline\text{EX}&\text{EX}&\text{Dependent ALU operation}\\\hline\end{array}\)

d) There are several ways that this modified ways that he modified ISA canhave a different instruction count for a given program over the original ISA. The modified pipeline enables the complier to mergeloads and ALU operations, there by reducing instruction count. However, these instructions cannot be merged if the memory operation requires an offset. If a memory operation requires anoff set and we are not able to merge it with abnother instruction, the modified ISA requires an additional instruction to compute the offset value and store it in a register.

Some examples:

\(\begin{array}{|c|c|c|}\hline\text{Original ISA}&\text{MODIFIED ISA}&\text{Remarks}\\\hline\text{LD,R2,16(R1)}&\text{ADDUI R3,R1,#16}&\text{Requires an additional instruction}\\\hline\text{LD R2,0(R1) ADD R3,R2,R4}&\text{ADD R3,R4,(R1)}&\text{Able to merge two instructions}\\\hline\end{array}\)

asked 2021-05-09

The dominant form of drag experienced by vehicles (bikes, cars,planes, etc.) at operating speeds is called form drag. Itincreases quadratically with velocity (essentially because theamount of air you run into increase with v and so does the amount of force you must exert on each small volume of air). Thus

\(\displaystyle{F}_{{{d}{r}{u}{g}}}={C}_{{d}}{A}{v}^{{2}}\)

where A is the cross-sectional area of the vehicle and \(\displaystyle{C}_{{d}}\) is called the coefficient of drag.

Part A:

Consider a vehicle moving with constant velocity \(\displaystyle\vec{{{v}}}\). Find the power dissipated by form drag.

Express your answer in terms of \(\displaystyle{C}_{{d}},{A},\) and speed v.

Part B:

A certain car has an engine that provides a maximum power \(\displaystyle{P}_{{0}}\). Suppose that the maximum speed of thee car, \(\displaystyle{v}_{{0}}\), is limited by a drag force proportional to the square of the speed (as in the previous part). The car engine is now modified, so that the new power \(\displaystyle{P}_{{1}}\) is 10 percent greater than the original power (\(\displaystyle{P}_{{1}}={110}\%{P}_{{0}}\)).

Assume the following:

The top speed is limited by air drag.

The magnitude of the force of air drag at these speeds is proportional to the square of the speed.

By what percentage, \(\displaystyle{\frac{{{v}_{{1}}-{v}_{{0}}}}{{{v}_{{0}}}}}\), is the top speed of the car increased?

Express the percent increase in top speed numerically to two significant figures.

\(\displaystyle{F}_{{{d}{r}{u}{g}}}={C}_{{d}}{A}{v}^{{2}}\)

where A is the cross-sectional area of the vehicle and \(\displaystyle{C}_{{d}}\) is called the coefficient of drag.

Part A:

Consider a vehicle moving with constant velocity \(\displaystyle\vec{{{v}}}\). Find the power dissipated by form drag.

Express your answer in terms of \(\displaystyle{C}_{{d}},{A},\) and speed v.

Part B:

A certain car has an engine that provides a maximum power \(\displaystyle{P}_{{0}}\). Suppose that the maximum speed of thee car, \(\displaystyle{v}_{{0}}\), is limited by a drag force proportional to the square of the speed (as in the previous part). The car engine is now modified, so that the new power \(\displaystyle{P}_{{1}}\) is 10 percent greater than the original power (\(\displaystyle{P}_{{1}}={110}\%{P}_{{0}}\)).

Assume the following:

The top speed is limited by air drag.

The magnitude of the force of air drag at these speeds is proportional to the square of the speed.

By what percentage, \(\displaystyle{\frac{{{v}_{{1}}-{v}_{{0}}}}{{{v}_{{0}}}}}\), is the top speed of the car increased?

Express the percent increase in top speed numerically to two significant figures.

asked 2021-02-26

The top string of a guitar has a fundamental frequency of 33O Hz when it is allowed to vibrate as a whole, along all its 64.0-cm length from the neck to the bridge. A fret is provided for limiting vibration to just the lower two thirds of the string, If the string is pressed down at this fret and plucked, what is the new fundamental frequency? The guitarist can play a "natural harmonic" by gently touching the string at the location of this fret and plucking the string at about one sixth of the way along its length from the bridge. What frequency will be heard then?

asked 2021-04-11

The equation F=−vex(dm/dt) for the thrust on a rocket, can also be applied to an airplane propeller. In fact, there are two contributions to the thrust: one positive and one negative. The positive contribution comes from air pushed backward, away from the propeller (so dm/dt<0), at a speed vex relative to the propeller. The negative contribution comes from this same quantity of air flowing into the front of the propeller (so dm/dt>0) at speed v, equal to the speed of the airplane through the air.

For a Cessna 182 (a single-engine airplane) flying at 130 km/h, 150 kg of air flows through the propeller each second and the propeller develops a net thrust of 1300 N. Determine the speed increase (in km/h) that the propeller imparts to the air.

For a Cessna 182 (a single-engine airplane) flying at 130 km/h, 150 kg of air flows through the propeller each second and the propeller develops a net thrust of 1300 N. Determine the speed increase (in km/h) that the propeller imparts to the air.

asked 2020-12-25

Case: Dr. Jung’s Diamonds Selection

With Christmas coming, Dr. Jung became interested in buying diamonds for his wife. After perusing the Web, he learned about the “4Cs” of diamonds: cut, color, clarity, and carat. He knew his wife wanted round-cut earrings mounted in white gold settings, so he immediately narrowed his focus to evaluating color, clarity, and carat for that style earring.

After a bit of searching, Dr. Jung located a number of earring sets that he would consider purchasing. But he knew the pricing of diamonds varied considerably. To assist in his decision making, Dr. Jung decided to use regression analysis to develop a model to predict the retail price of different sets of round-cut earrings based on their color, clarity, and carat scores. He assembled the data in the file Diamonds.xls for this purpose. Use this data to answer the following questions for Dr. Jung.

1) Prepare scatter plots showing the relationship between the earring prices (Y) and each of the potential independent variables. What sort of relationship does each plot suggest?

2) Let X1, X2, and X3 represent diamond color, clarity, and carats, respectively. If Dr. Jung wanted to build a linear regression model to estimate earring prices using these variables, which variables would you recommend that he use? Why?

3) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

4) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?

5) Dr. Jung now remembers that it sometimes helps to perform a square root transformation on the dependent variable in a regression problem. Modify your spreadsheet to include a new dependent variable that is the square root on the earring prices (use Excel’s SQRT( ) function). If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?

1

6) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

7) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must actually square the model’s estimates to convert them to price estimates.) Which sets of earring appears to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?

8) Dr. Jung now also remembers that it sometimes helps to include interaction terms in a regression model—where you create a new independent variable as the product of two of the original variables. Modify your spreadsheet to include three new independent variables, X4, X5, and X6, representing interaction terms where: X4 = X1 × X2, X5 = X1 × X3, and X6 = X2 × X3. There are now six potential independent variables. If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?

9) Suppose Dr. Jung decides to use color (X1), carats (X3) and the interaction terms X4 (color * clarity) and X5 (color * carats) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

10) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must square the model’s estimates to convert them to actual price estimates.) Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?

With Christmas coming, Dr. Jung became interested in buying diamonds for his wife. After perusing the Web, he learned about the “4Cs” of diamonds: cut, color, clarity, and carat. He knew his wife wanted round-cut earrings mounted in white gold settings, so he immediately narrowed his focus to evaluating color, clarity, and carat for that style earring.

After a bit of searching, Dr. Jung located a number of earring sets that he would consider purchasing. But he knew the pricing of diamonds varied considerably. To assist in his decision making, Dr. Jung decided to use regression analysis to develop a model to predict the retail price of different sets of round-cut earrings based on their color, clarity, and carat scores. He assembled the data in the file Diamonds.xls for this purpose. Use this data to answer the following questions for Dr. Jung.

1) Prepare scatter plots showing the relationship between the earring prices (Y) and each of the potential independent variables. What sort of relationship does each plot suggest?

2) Let X1, X2, and X3 represent diamond color, clarity, and carats, respectively. If Dr. Jung wanted to build a linear regression model to estimate earring prices using these variables, which variables would you recommend that he use? Why?

3) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

4) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?

5) Dr. Jung now remembers that it sometimes helps to perform a square root transformation on the dependent variable in a regression problem. Modify your spreadsheet to include a new dependent variable that is the square root on the earring prices (use Excel’s SQRT( ) function). If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?

1

6) Suppose Dr. Jung decides to use clarity (X2) and carats (X3) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

7) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must actually square the model’s estimates to convert them to price estimates.) Which sets of earring appears to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?

8) Dr. Jung now also remembers that it sometimes helps to include interaction terms in a regression model—where you create a new independent variable as the product of two of the original variables. Modify your spreadsheet to include three new independent variables, X4, X5, and X6, representing interaction terms where: X4 = X1 × X2, X5 = X1 × X3, and X6 = X2 × X3. There are now six potential independent variables. If Dr. Jung wanted to build a linear regression model to estimate the square root of earring prices using the same independent variables as before, which variables would you recommend that he use? Why?

9) Suppose Dr. Jung decides to use color (X1), carats (X3) and the interaction terms X4 (color * clarity) and X5 (color * carats) as independent variables in a regression model to predict the square root of the earring prices. What is the estimated regression equation? What is the value of the R2 and adjusted-R2 statistics?

10) Use the regression equation identified in the previous question to create estimated prices for each of the earring sets in Dr. Jung’s sample. (Remember, your model estimates the square root of the earring prices. So you must square the model’s estimates to convert them to actual price estimates.) Which sets of earrings appear to be overpriced and which appear to be bargains? Based on this analysis, which set of earrings would you suggest that Dr. Jung purchase?