You are designing a system to crowdsource student evaluations of college courses. As part of this...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are designing a system to crowdsource student evaluations of college courses. As part of this system, you want to store a table of reviews containing the following information (for each review): • Review Date - Date (3 bytes) • Academic Year - int32 • Academic Quarter - char[10] • Course ID-char[5] • Rating (0.0 to 5.0) - float32 • Grade in the course - char[2] • Estimated Hours Per Week - int32 • Review (text) - char[224] Question 2.1 What is the size of each row in bytes? Question 2.2 Assume that this data is stored on a HDD in 64MB IO blocks and these blocks are grouped in 2x64MB 10 blocks. How many rows can be stored per 64MB 10 block? Question 2.3 How many 2x64MB blocks would you need to store 2 million rows? Question 2.4 Relevant information: • According to the registrar, this quarter there are 16500 students (undergrad and graduate) enrolled. • Of these, about 1500 are grad students finishing their degree, which will be excluded. • Of the remainder, some are grad students who might be doing research full-time and not taking classes. Let's consider this and approximate that there are exactly 15,000 class-taking students at Stanford. • Let's assume that on average each class-taking student takes 3 classes per semester (including the summer semester). • Let us also assume that writing course evaluations is optional and 50% of students who take a course will write an evaluation. (Note: If a student chooses not to write an evaluation, no row is added to the table.) After 10 years (30 semesters), how large in MB will the table of course reviews be? Round your answer to 1 decimal place. Question 2.5 Q2.5-2.7 follow from 2.4. How many 64MB blocks would be needed to store the table of course reviews? Question 2.6 Now, let's say you would like to read from your table and retrieve a particular evaluation (row). Let's make the following assumptions about the hardware that is used to store the table: • Your data is all stored on HDDs • Use the numbers given in the notes/instructions for all calculations. How long would it take in hours to retrieve an evaluation (row) if the table rows are stored randomly on HDD (we must access and scan every row)? Round your answer to 1 decimal place. Question 2.7 How long would it take in seconds if the rows are grouped in 64MB blocks (which are randomly stored on HDD)? Note: in your calculations, please use a whole number of blocks (round up: e.g. 16.1 blocks → 17 blocks). You are designing a system to crowdsource student evaluations of college courses. As part of this system, you want to store a table of reviews containing the following information (for each review): • Review Date - Date (3 bytes) • Academic Year - int32 • Academic Quarter - char[10] • Course ID-char[5] • Rating (0.0 to 5.0) - float32 • Grade in the course - char[2] • Estimated Hours Per Week - int32 • Review (text) - char[224] Question 2.1 What is the size of each row in bytes? Question 2.2 Assume that this data is stored on a HDD in 64MB IO blocks and these blocks are grouped in 2x64MB 10 blocks. How many rows can be stored per 64MB 10 block? Question 2.3 How many 2x64MB blocks would you need to store 2 million rows? Question 2.4 Relevant information: • According to the registrar, this quarter there are 16500 students (undergrad and graduate) enrolled. • Of these, about 1500 are grad students finishing their degree, which will be excluded. • Of the remainder, some are grad students who might be doing research full-time and not taking classes. Let's consider this and approximate that there are exactly 15,000 class-taking students at Stanford. • Let's assume that on average each class-taking student takes 3 classes per semester (including the summer semester). • Let us also assume that writing course evaluations is optional and 50% of students who take a course will write an evaluation. (Note: If a student chooses not to write an evaluation, no row is added to the table.) After 10 years (30 semesters), how large in MB will the table of course reviews be? Round your answer to 1 decimal place. Question 2.5 Q2.5-2.7 follow from 2.4. How many 64MB blocks would be needed to store the table of course reviews? Question 2.6 Now, let's say you would like to read from your table and retrieve a particular evaluation (row). Let's make the following assumptions about the hardware that is used to store the table: • Your data is all stored on HDDs • Use the numbers given in the notes/instructions for all calculations. How long would it take in hours to retrieve an evaluation (row) if the table rows are stored randomly on HDD (we must access and scan every row)? Round your answer to 1 decimal place. Question 2.7 How long would it take in seconds if the rows are grouped in 64MB blocks (which are randomly stored on HDD)? Note: in your calculations, please use a whole number of blocks (round up: e.g. 16.1 blocks → 17 blocks).
Expert Answer:
Answer rating: 100% (QA)
Question 21 Size of each row in bytes Review Date 3 bytes assuming a standard date format Academic Year 4 bytes int32 Academic Quarter 10 bytes char10 Course ID 5 bytes char5 Rating 4 bytes float32 Gr... View the full answer
Related Book For
Project Management The Managerial Process
ISBN: 9781260570434
8th Edition
Authors: Eric W Larson, Clifford F. Gray
Posted Date:
Students also viewed these databases questions
-
Discuss the major policy controls of the Federal Reserve. Include in your discussion the relative effectiveness of open-market operations, the discount rate, and the legal reserve requirement.
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
You are designing a system that must have reliability at least 0.95 at 10,000 hours of operation. If you can reasonably assume that the time to failure is exponential, what MTTF must you achieve in...
-
Find the extreme values of (x, y) = x 2 + 2y 2 subject to the constraint g(x, y) = 4x 6y = 25. (a) Show that the Lagrange equations yield 2x = 42, 4y = -62. (b) Show that if x = 0 or y = 0, then the...
-
Consider an ideal heat pump that has a condenser temperature of 50C and an evaporator temperature of 0C, determine the coefficient of performance of this heat pump for the working...
-
write a presentation about a caf. -agenda -survey -presentation -staff, customer feedback add pictures
-
The interest rates in the UK and the United States are, respectively, \(4 \%\) and \(6 \%\) per annum compounded continuously. The spot price of the UK pound is \(\$ 1.6\). The forward price for a UK...
-
Alexander Wilson operates Metroplex Courier and Delivery Service. He has four employees who are paid on an hourly basis. During the workweek beginning December 15 and ending December 21, 2019, his...
-
A rainfall record contains 44 years of rainfall measurement at 10 minute intervals. The maximum rainfall amounts for intervals of 10 min and 20 min, 30 min, 40 min, 50 min, and 60 min have been...
-
The following is the statement of financial position of TT and Co. (see Self-Assessment Question 3.1 on page 113) at the end of its first year of trading: Statement of financial position as at 31...
-
Explain why networked information is more vulnerable to cyberattacks. Mention some of the methods used to keep networks secure. The safety of a company's network is a top priority for everyone. The...
-
Assume the same information for Keebler-Olson as in Problems 11-31, 11-32, 11-33, and 11-34. James plans to invest $100 in each of the 1,000 loans he is examining. If he decides not to invest in a...
-
The only prolabor name among the following is __________. a) Sherman b) Clayton c) Taft-Hartley d) Wagner
-
The most important influence on a firms demand for a factor of production is _________. a) the quantities of other resources b) the prices of other resources c) its productivity d) the demand for the...
-
The firm will hire workers until the wage rate and the of the last worker hired are equal. a) marginal physical product b) MRP c) output
-
Which one of the following statements is false? a) There are more union members working in the public sector than in the private sector. b) About 1 worker in 15 privately employed workers is a union...
-
a) What is project risk factor in Software Process Model? b) Which model the Project risk factor is considered? Briefly explain it. c) Explain the uses of above model with real time examples.
-
The test statistic in the NeymanPearson Lemma and the likelihood ratio test statistic K are intimately related. Consider testing H 0 : = 0 versus H a : = a , and let * denote the test statistic...
-
How important is a fun culture for innovation?
-
Ken Buttrey scratched his head as he looked over an e-mail from John Barbata. Ken was the team lead on the Jasper Jones project. He and 13 other developers were charged with creating Jasper Jones...
-
Safety is a major concern when working on projects abroad. Select a country that you would consider dangerous to work in and look up the travel advisory provided for that country by the U.S. State...
-
What are the differences among an onsite team, a virtual team, a task force, and a committee? What are some of the potential differences in dynamics between people in these different groups?
-
What are the benefits of implementing programs to address cultural competence within a health care organization? What are the costs of not implementing such programs?
-
Over the past month, every member of the Intravenous (IV) Therapy Team has complained to you about the IV Team supervisor. Her direct reports, all RNs, agree that she is technically superb. However,...
Study smarter with the SolutionInn App