Data Structures Unit 3 Notes AKTU (BCS301)
AKTU · BTECH · Semester 3 · Data Structures · Unit 3 · Notes
Data Structures Unit 3 notes for AKTU BCS301, Semester 3. Revise binary search, hashing, collision resolution and sorting; practise unit-wise PYQs.
Open the interactive reader to study this resource on AcademicArk.
Unit 3: Searching, Hashing & Sorting – AKTU syllabus topics
- Searching: Binary Search, Index Sequential Search
- Hashing: Collision Resolution Techniques
- Sorting: Insertion Sort, Selection Sort, Bubble Sort, Quick Sort, Merge Sort, Heap Sort, Radix Sort
Most asked AKTU PYQ questions from Unit 3
- Q4a. (i) Use the merge sort algorithm to sort the following elements in ascending order. 13, 16, 10, 11, 4, 12, 6, 7. What is the time and space complexity of merge sort? (ii) Use quick sort algorithm to sort 15,22,30,10,15,64,1,3,9,2. Is it a stable sorting algorithm? Justify. (10 marks, 2021-22)
- Q2d. Differentiate between liner and binary search algorithm. Write a recursive function to implement binary search. (10 marks, 2021-22)
- Q4b. (i) The keys 12, 17, 13, 2, 5, 43, 5 and 15 are inserted into an initially empty hash table of length 15 using open addressing with hash function h(k) = k mod 10 and linear probing. What is the resultant hash table? (ii) Differentiae between linear and quadratic probing techniques. (10 marks, 2021-22)
- Q2c. How binary search is different from linear search? Apply binary search to find item 40 in the sorted array: 11, 22, 30, 33, 40, 44, 55, 60, 66, 77, 80, 88, 99. Also discuss the complexity of binary search. (10 marks, 2019-20)
- Q2c. Write an algorithm for Quick sort. Use Quick sort algorithm to sort the following elements: 2, 8, 7, 1, 3, 5, 6, 4 (10 marks, 2022-23)
- Q5a. What is Hashing? Explain division method to compute the hash function and also explain the collision resolution strategies used in hashing. (10 marks, 2022-23)
- Q2c. Explain any three commonly used hash function with the suitable example? A hash function H defined as H(key) =key%7, with linear probing, is used to insert the key 37,38,72,48,98,11,66 into a table indexed from 0 to 6. what will be the location of key 11? Justify your answer, also count the total… (10 marks, 2020-21)
- Q5a. Write an algorithm for merge sort and apply on following elements 45,32,65,76,23,12,54,67,22,87. (10 marks, 2020-21)
- Q5a. Why is quick sort named as quick? Show the steps of quick sort on the following set of elements: 25, 57, 48, 37, 12, 92, 86, 33. Assume the first element of the list to be the pivot element. (10 marks, 2019-20)
- Q5b. What is hashing? Give the characteristics of hash function. Explain collision resolution technique in hashing. (10 marks, 2019-20)
AKTU paper codes: BCS301, KCS301, BCS301H, KCS301H
Other Data Structures units
Data Structures previous year papers
More Data Structures resources
More versions of this resource
Browse all notes · Semester 3 notes · Data Structures notes