Datastructures 2022
Datastructures 2022
:
21IT340
B.TECH. DEGREE– NOVEMBER 2022 –EXAMINATIONS
BRANCH:INFORMATION TECHNOLOGY
DATA STRUCTURES
Duration : 3Hours Maximum: 100 Marks
C5. Insert the items 37, 44, 55, 69, 27 into the Hash table of size 7, h(k) = k mod T CO3 (5)
using linear probing strategy (f(i) =i) and quadratic probing strategy (f(i)=i2).
[OR]
C6. Insert the items 18, 105, 71, 24, 68 into the Hash table of size 7, h(k) = k mod T, CO3 (5)
linear probing strategy (f(i) =i) and load factor 50%. Perform rehashing with the
table size 13. (2 + 3)
C7. Determine the space and time complexity involved in the given code. (2 + 3) CO4 (5)
for (i = 0; i < P; i++)
{
for (j = 0; j < Q; j++) {
sequence of statements
}
for(k = 0; k< R; k++){
sequence of statements
}
}
[OR]
C8. Write binary search algorithm for the set of array elements. Determine the space CO4 (5)
and time complexity involved in it. (3 + 1 + 1)
C9. Identify 2 different data structures to check whether the given string is palindrome CO6 (10)
or not. Select one structure with suitable justification. Write procedure(s) and
explain with diagrams. (4 + 4 + 2)
[OR]
C10. Demonstrate Selection sort and Quick sort for the given numbers. Identify suitable CO6 (10)
sorting algorithm and give justification. Write procedure(s)
29, 19, 59, 39, 99, 79, 49 (4 + 4 + 2)
***************