subject
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?

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 16:00
Find the equation of the trend line (line of best fit). show your work i'm using the points (34,76) (42,91)
Answers: 2
question
Mathematics, 21.06.2019 17:00
How to solve a simultaneous equation involved with fractions?
Answers: 1
question
Mathematics, 21.06.2019 17:30
Ineeeeed this is due tomorrow and i dont know the answer can you find all the exponents
Answers: 1
question
Mathematics, 21.06.2019 20:10
The constitution gives congress the power to create federal courts lower than the supreme court higher than the supreme court equal to the supreme court, unaffected by the supreme court.
Answers: 1
You know the right answer?
Suppose I have a relation Grades(student_id, assignment_id, score). I have 200 students and 20 assig...
Questions
question
Business, 27.09.2021 02:50
question
English, 27.09.2021 02:50
question
Mathematics, 27.09.2021 03:00
question
Mathematics, 27.09.2021 03:00
question
Mathematics, 27.09.2021 03:00
question
Mathematics, 27.09.2021 03:00
Questions on the website: 13722367