Maulana Azad National Institute of Technology Bhopal Endterm Exam Nov 2021
Maulana Azad National Institute of Technology Bhopal Endterm Exam Nov 2021
…………………………
MAULANA AZAD NATIONAL INSTITUTE OF TECHNOLOGY BHOPAL
ENDTERM EXAM NOV 2021
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
Show the state of the tree after inserting the following keys: 18, 45, 46, 49, 52,
36, 32, and then deleting 17, 34 from the resultant tree. With reference to the B+
tree resulting after given insertions, what is the minimum number of nodes
(including the Root node) that must be fetched in order to satisfy the following
query. "Get all records with a search key greater than or equal to 18 and less than
49".
b) Create an instance of table FAMILY with fields Fid (Primary key), Full Name,
Age, Relation (Not Null), Mobile Number (Unique), City having at least ten
tuples in the table. Assume that these tuples are stored in a sorted file and the file 4
is stored on a disk and each disk block can contain at most three tuples. Give an
example of primary index and secondary index (on attribute age) that can be
created on this table. Show the data entries of each of the indexes.
5. a) Check whether the following two schedules are conflict serializable, 4
recoverable or not. Give reason for your answer.
i. T1: R(x), T2: W(x), T2:Commit, T1:W(x), T1:Commit, T3:R(x), T3:W(x),
T3:Commit.
ii. T2:R(x), T3:R(z), T3:W(x), T3:Commit, T1:W(y), T1:Commit, T2:R(y),
T2:W(z), T2:Commit.
b) Consider the following schedule: What all concurrency problems does this
4
schedule suffer from giving suitable reasons.
T1 T2
Read(X)
X= X-100
Write(X)
Read(X)
X= X+50
Sum= X+Y
Read(Y) .
Y=Y+10 .
Write(Y) .
Abort .
.
Commit