DSPD QB
DSPD QB
Session 2022-2023
Question Bank
Department: Comp. Tech Subject: DSPD
Subject Code: BTCT211T Semester: 4th sem
Unit : 1
1. Elabortae the steps for sorting following elements using quick sort. Also specify its time
complexity in all cases. 21 06 56 61 44 07 09 76 75 32.
2. Search the following elements using linear search as well as binary search. Give the step
by step representation for successful as well as unsuccessful search. Also specify time
complexity of both 80 75 45 90 30 40 12 15 93 08.
3. Sort the following array using Bubble sort : 10,1,9,11,46,20,15,0,72,2.
4. Explain asymptotic notation.
5. How to decide performance of an algorithm? Explain big O notation in brief.
6. Suppose 'A' array contains 10 elements as follows :
10,23,44,11,2,66,3,9,7,63. Sort array 'A' using Quick Sort.
7. Explain in brief Abstract Data Type.
8. Explain the concept of data structure in detail. Also explain abstract data type.
9. Write down the algorithm for merge sort and sort the sequence of following numbers using
an algorithm. 45, 23, 11, 35, 67, 87, 24, 66.
10. How to decide performance of an algorithm? Explain big O notation in brief.
11. What do you mean by Divide and conquer strategy? Give suitable example for the same.
12. Explain the following terms:
i) Data structure and its types
ii) Abstract data type.
iii) Flowchart and its symbols.
iv) Time and space complexity.
13. What do you mean by analysis of algorithm? Explain different asymptotic notations use
for analysis of algorithm.
Unit : 2
L
A
M N O
B C
P Q
F
D E R
6. What is binary tree? Draw the binary tree for the following expression
i) (a+(b*c)/(d*e))
ii) A+ (B * C ) / D
iii) (A+ B) * (C+ D) * (E+ F)
6. Find the minimum cost spanning tree using Kruskal's method for the following graph.
7. Why B tree is considered a better structure than B-tree for implementation of an indexed
sequential.
8. What is height balanced tree? Explain what you mean by balance factor. Construct a
height balanced tree from the following sequence of integer.
40 30 20 10 05 50 60 80 70
9. Define the following.10 i)Complete graph. ii)Degree of a graph. iii) Path of a graph.
iv) Strongly connected component. v)Hamiltonian path. vi) Isolated Vertex. Explain
each term with a suitable example.
10. Define graph what are different types of graphs and different ways of representation of
graphs? Explain each with suitable example.
11. Explain prims algorithm to find minimum cost spanning tree with suitable example.
12. How many minimum spanning trees does the following graph have? Draw them.
13. Find the minimum spanning tree for the following graph.
14. Describe DFS algorithm find out DFS traversal of the following graph starting at node A.