DSA Final
DSA Final
UNIT 3
Y
26) Construct AVL tree for insertion of following data: 63, 9, 19, 27, 18, 108, 99, 81
27) Write the functions for split & skew operations in AA tree.
28) Explain following terms w.r.t. symbol table : i) Insert & lookup operations ii) Advantages iii) Disadvantages
29) Construct an AVL tree having the following elements : H, I, J, B, A, E, C, F, D, G
30) Insert 15, 10, 17, 7 in splay tree.
31) What is the need of AA tree? List the five invariants that AA tree must satisfy.
32) Who developed K-D tree? What is the purpose of K-O tree? Insert step by step (7, 8), (12, 3), (14, 1), (4, 12), (9,
1), (2, 7) and (10, 19) into K-D tree.
33) Show the balanced AVL tree after deletion of mentioned node : i) Delete 30 ii) Delete 55 iii) Delete 60
DSA
UNIT 5
34) Construct a B-Tree of order 3 by inserting numbers from 1 to 10.
35) Explain following primary index, Secondary index, Sparse index and Dense index with example.
36) Construct a B Tree of order 5 with the following data : D H Z K B P Q E A S W T C L N Y M
37) What is trie tree? Explain insert and search operation on it.
38) Create a B- Tree of order 5 from the following list of data items: 30, 20, 35, 95, 15, 60, 55, 25, 5, 65, 70, 10, 40,
50, 80, 45
39) Create a B+Tree of order 3 from the following list of data items: 1, 3, 5, 7, 9, 2, 4, 6, 8, 10
40) Define trie tree. Compare trie tree with hash table. Draw trie tree for following data: bear, sell, bell, bid, stock,
bull, buy, stop.
41) What is indexing? What are the advantages of indexing? Discuss clustering index with example.
42) Construct a B-Tree of order 3 for following data : 50, 30, 21, 90, 10, 13, 20, 70, 25, 92, 80.
43) Why B+ tree? List its properties and advantages.
44) Build B+ tree of order 3 for the following : F, S, Q, K, C, L, H, T, V, W, M, R
DSA
UNIT 5
45) Explain multilist files & coral rings.
46) What is Sequential and index sequential file organization? State its advantages and disadvantages
47) Explain inverted file & cellular partitions.
48) Explain direct access file organization. State its advantages and disadvantages
49) What is linked organization? Explain inverted file and coral rings with respect to linked organization.
50) List & explain two possible ways of representing records
51) Differentiate between indexed sequential file and direct access file.