DATA STRUCTURES(Previous year question)
DATA STRUCTURES(Previous year question)
UNIT-1
A B C D
E F G H
Q113)Write down the BFS and DFS traversal algorithm for a graph.
Q114)Explain minimum spanning tree .Find the minimum spanning tree for the following
graph using Kruskal algorithm(6)
10
A B
5
3 2 3
8 9 C
G
F 8
8 5 7 3
E D
Q115)Create B-tree of order 5 taking the keys in given order into an initially empty tree
65,71,70,66,75,68,72,77,74,69,83,73,82,88,67,76,78,84,85,80 then delete
75,69,73,88,67.(6.5)
Unit-IV
(End term Jan 2015)
Q116)Differentiate between
(a)merge sort and quick sort
(b)Sequential search and binary search
(c) Direct hashing and digit extraction hashing
Q117)Discuss any two hash function using suitable example?
Q118)Which sorting algorithm is easily adaptable to singly linked list?
Q119)Sort the following numbers using exchange sort and merge sort.Illustrate the
immediate steps as well
100,300,95,60,900,800
(End term dec 2015)
Q120)Define Bubble sort and quick sort with example.Which one is better if data set is small.
Q121)Define the following collision resolution method with example(12.5)
(a)Open addressing
(b)Linear probe
(c)Quadratic probe
Q122)Explain 2 way merge sort.
(End term dec 2016)
Q123)Derive the time complexity of the linear search in average and worst case.(4)
Q124)Explain the selection sort and sort the following elements using selection sort(6)
8,22,7,9,31,19,5,13,58,93,1,45
Q125)Write short note on following(6.25)
(a) Bucket hashing and collision resolution
(End term dec 2017)
Q126)When a sorting procedure is considered to be stable.
Q127)Why quicksort is generally considered to be better than mergesort?Explain Pseudocode
of quicksort and mergesort procedures and compare their performances.(12.5)
Q128)Define separate chaining,linear probing and quadratic probing.Given the
values{2341,4324,2389,430,22,397,3920},a hash table of size 7,and hash function h(x)=x
mod 7,show the resulting tables after inserting the values in the given order with each of
these collision strategy.(12.5)
(End term dec 2018)
Q129)What is bucket hashing?(2.5)
Q130)What is Hashing?Explain various hashing algorithm.Discuss various collision
resolution techniques.(6)
Q131)Write a algorithm for quick sort and perform sorting on following values.(6.5)
75,12,23,58,11,94,6,8,13
Q132)Write algorithm/program for binary search.Explain why binary search is better than
linear search.(6)
Q133)What is the difference between internal and external sorting?Write any one algorithm
for internal sorting and one for external sorting.(6.5)