Database Management System
105502Module 3: Storage Strategies
Q1c. Which of the following is used for indexing in database systems? (i) Transaction log (ii) B-tree (iii) Views (iv) Triggers20242m
Module 3: Storage Strategies
View this question on its own page →Which of the following is used for indexing in database systems?
(i) Transaction log
(ii) B-tree
(iii) Views
(iv) TriggersQ1f. A B-tree of order 4 and of height 3 will have a maximum of ____ keys. (i) 255 (ii) 63 (iii) 127 (iv) 18820202m
Module 3: Storage Strategies
View this question on its own page →A B-tree of order 4 and of height 3 will have a maximum of ____ keys.
(i) 255
(ii) 63
(iii) 127
(iv) 188Q1g. Compared with B-tree indexing, hashing is preferred when queries mainly involve: (i) Range searches (ii) Ordered traversal (iii) Exact match search (iv) Sorting20252m
Module 3: Storage Strategies
View this question on its own page →Compared with B-tree indexing, hashing is preferred when queries mainly involve:
(i) Range searches
(ii) Ordered traversal
(iii) Exact match search
(iv) SortingQ1h. For a B-tree of order m, every non-root internal node must have at least: (i) m/2 children (ii) [m/2] children (iii) [m/2]-1 children (iv) m-1 children20252m
Module 3: Storage Strategies
View this question on its own page →For a B-tree of order m, every non-root internal node must have at least:
(i) m/2 children
(ii) [m/2] children
(iii) [m/2]-1 children
(iv) m-1 childrenQ5. Construct the B+ tree for the following set of key values: (2, 3, 5, 7, 11, 17, 19, 23, 29, 31) Assume that tree is initially empty and values are added in ascending order. Construct B+ tree for the cases where the number of pointers that will fit in one node is as follows: (a) Four (b) Six (c) Eight202014m
Module 3: Storage Strategies
View this question on its own page →Construct the B+ tree for the following set of key values:
(2, 3, 5, 7, 11, 17, 19, 23, 29, 31)
Assume that tree is initially empty and values are added in ascending order. Construct B+ tree for the cases where the number of pointers that will fit in one node is as follows:
(a) Four
(b) Six
(c) EightQ5b. Explain different indexing techniques used in databases.20257m
Module 3: Storage Strategies
View this question on its own page →Explain different indexing techniques used in databases.
Q6a. What are indices in database systems? Explain the need and advantages of indexing. Describe various types of indexing techniques including primary index, secondary index, clustered and non-clustered indexes with the help of suitable diagrams.20247m
Module 3: Storage Strategies
View this question on its own page →What are indices in database systems? Explain the need and advantages of indexing. Describe various types of indexing techniques including primary index, secondary index, clustered and non-clustered indexes with the help of suitable diagrams.
Q6a. Consider a hash table of size 10 with the hash function h(k) = k \pmod{10}. Insert the keys 23, 43, 13, 27, 37, and 50 into the hash table. Construct the hash table using separate chaining for collision resolution and then reconstruct it using linear probing. Compare the final arrangements obtained using both methods.20257m
Module 3: Storage Strategies
View this question on its own page →Consider a hash table of size 10 with the hash function . Insert the keys 23, 43, 13, 27, 37, and 50 into the hash table. Construct the hash table using separate chaining for collision resolution and then reconstruct it using linear probing. Compare the final arrangements obtained using both methods.
Q6b. What is a B-tree? Explain its structure, order, and properties. How is a B-tree used in database indexing? Demonstrate insertion and search operations in a B-tree with a proper example. Also compare B-tree with binary search tree in context of database performance.20247m
Module 3: Storage Strategies
View this question on its own page →What is a B-tree? Explain its structure, order, and properties. How is a B-tree used in database indexing? Demonstrate insertion and search operations in a B-tree with a proper example. Also compare B-tree with binary search tree in context of database performance.
Q8a. For the following set of key values construct a B+ tree with a degree 4: 5, 10, 15, 29, 35, 46, 58, 63, 67, 89 Initially tree is empty. Values must be added in ascending order. Show the step-by-step construction.201910m
Module 3: Storage Strategies
View this question on its own page →For the following set of key values construct a B+ tree with a degree 4:
5, 10, 15, 29, 35, 46, 58, 63, 67, 89
Initially tree is empty. Values must be added in ascending order. Show the step-by-step construction.Q8b. What is multilevel indexing? Explain in detail.20194m
Module 3: Storage Strategies
View this question on its own page →What is multilevel indexing? Explain in detail.