Mathematics
Mathematics, 19.10.2021 02:00, tamikagoss22

Suppose I have a relation Grades(student_id, assignment_id, score). I have 200 students and 20 assignments. I would grade all submissions of one assignment based on the submission order, and then insert the records. As a result, based on my insertion nature, the student_id is not sorted, but the assignment_id is. I choose heap file as my file organization. My page is quite small – it can only store 40 records, or 200 bytes in one page. The SearchKeySize is 2 bytes and PointerSize is 2 bytes. My buffer size is also small, 4 pages. If my most frequent query is to find individual students, such as select * from grades where student_id=β€˜3347’;
select * from grades where student_id=β€˜8462’;
A) What is the I/O cost (i. e., number of pages in reading and writing) for finding one student if I don’t build index for student_id? (note: student_id can appear as many as 20 times in this relation)
B) What is the I/O cost of multi-way merge sort if I sort the relation after I enter all records?
C) Suppose I decide to build B+ tree index instead of sorting. What is the smallest number of pages do you estimate the B+ tree will take?
D) What is the worst I/O cost for answering those queries with B+ tree index now?

answer
Answers: 2

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 19:00, ksiandua07
65% of students in your school participate in at least one after school activity. if there are 980 students in you school, how many do not participate in an after school activity?
Answers: 1
image
Mathematics, 21.06.2019 19:30, ginocousins06
Fa bus driver leaves her first stop by 7: 00 a. m., her route will take less than 37 minutes. if she leaves after 7: 00 a. m., she estimates that the same route will take no less than 42 minutes. which inequality represents the time it takes to drive the route, r?
Answers: 3
image
Mathematics, 21.06.2019 22:00, blythephillips2734
Benjamin is making bow ties. how many 1/2yards lomg bow ties can he make if he has 18 feet of fabric?
Answers: 2
image
Mathematics, 21.06.2019 23:40, blackbetty79
Rounded to the nearest tenth, what is the value of x
Answers: 1
Do you know the correct answer?
Suppose I have a relation Grades(student_id, assignment_id, score). I have 200 students and 20 assig...

Questions in other subjects: