Professional Documents
Culture Documents
Dsa Preinsem 22-23
Dsa Preinsem 22-23
Q2a).
(OR)
For the given set of values35 36,25,41 2501,129,65,29,16,4.99. Create the (5)
hash table with size 20 and resolve collision using open' addréssingtechniques
Q2b). Explain following Collision Resolution Strategies: (5)
Double Hashing 2. Rehashing
Q2c). For the given set of values. 11, 33, 20, 88, 79, 98, 44, 68, 66, 22 Create a hash (5)
table with size 10 and resolve collision using chaining with replacement and
without replacement. Use the modulus Hash function. (key % size.)
3a) Write a non-recursive pseudo code for post order traversing of binary tree (5)
03 b) Write a non-recursive pseudo code for pbst order traversing of binary tree. (5)
Q3 c) Convert below tree into binary tree: (5)
(OR)
Q4 a) For given set of values: (5)
Node -weight A=10,B-3,C-4D=15,E-2,F=4,0-2,H=3
Construct the huffman's coding
Q4 b) Find the inorder post-order & pre-orderfor the following Tree (5
)
,