Data Structure DS
Data Structure DS
QUESTION BANK
6) What do you mean by Divide and conquer strategy? Give suitable example for the same.
7) What are the parameters & their roles considered for Analysis of an algorithm? Explain
asymptotic notations used for analysis of algorithms.
8) Discuss bubble sort & insertion sort with their time complexities.
9) Write a C program to implement binary search.
10) Write a detailed note on Abstract data type.
11) Explain various symbols used in a flowchart and draw a flowchart to add 10 numbers using
iterative construct.
12) How to decide performance of an algorithm ? Explain big O notation in brief.
13) Explain the concept of data structure in detail. Also explain abstract data type.
14) Give the snapshots of searching an element using linear and binary search in the given array.
20 91 32 81 75 48 05 19 08. Also comment on time complexity.
15) Write a C program to sort the elements of matrix row wise Assume that the matrix is
represented by two dimensional array
4) Suppose graph is stored in memory. Write a non-recursive procedure for breadth. First search
traversal of a graph.
5) What is a graph and what are its applications? Discuss various ways of representation of a
graph.
6) Construct a minimum cost spanning tree (MST) for the given graph using Kruskal's algorithm.
7) Write and explain the algorithm for DFS graph traversal with ex ample.
8) For the following graph:
Write:
i)Indegree and outdegree for each vertex.
ii) Adjacency matrix. I
ii) Adjacency list.
iv) Adjacency multi list.
HASHING :-
1) Using Division method of hashing for a table of size 11, store the following numbers in a hash
table 64, 98, 123, 200, 214, 193, 163, 201.
2) What are the different collision handling mechanisms? Explain any two with suitable
example.
3) Explain the following collision handling techniques.
i) Linear Probing.
ii) Quadratic probing.
iii) Double hashing.
4)Give the following list of elements 22, 26, 89, 45, 12, 32, 90, 55, 69, 96 and the hash function :
(Index = key % 10). Show the hash table. Use collision Resolution through Linear probing.
5) Explain two techniques to overcome hash collision.
6) Differentiate between static and dynamic hash tables.
7) What is hashing? Explain division method of hashing to store the following values in has h
table 25, 45, 96, 101, 102, 162, 197, 201, 84 Use suitable collision handling mechanism.
8) What is symbol table? What is the use of symbol table? Describe the implementation of
symbol table?
Subject Teacher
Prof. P. S. Gumgaonkar