dsa pyq
dsa pyq
Semester: III
Corse Code: BCA-63T-201 Course Title: Data Structures and Algorithms
Course Credit : 04 Hours/Week: 04
Course Objectives (COs):
By the end of this course, students will be able to:
• To design efficient algorithms using various algorithm designing strategies
• To analyze the problem and develop the algorithms related to these problems
• To classify the problem and apply the appropriate design strategy to develop algorithm
• To design algorithm in context of space and time complexity and apply asymptotic notation
gB
Maximum Marks: 100
Time Allowed: 3 Hours
PART I
10x2-20
Very Short Answer:
1
2
What is an Algorithm?
Explain a n Array in Data
structure.
(b)
Define polish notation.
P.T.O.
301/3311 1
,his
question
pa
PART.I
3 0 2
ShortAnswer example.
algorithm with
(a) Explain Eficiency of a n
linked list with diagram.
(b) What is Linked List ? Explain doubly
PART-1II
4+8
3. What is Stack? Write the procedure of PUSH and POP operation in Stack.
OR
4+8
What is Queue ? Explain types of queue and its operation.
4. Explain Circular linked list. Write an algorithm for inserting and deleting a node in circular linked 4+8
list.
OR
Explain Infix, Prefix and Postfix expression. Convert the following infix expression into postix expresSsion 6+6
using stack.
(A+B) -C*(D/E))+F.
5. What is Binary Search Tree (BST) ? Write an algorithm for searching into Binary Search Tree. 4+8
OR
Explain Tree Traversal in detail with example. 12
What is binary search ? Write advantages of binary search over linear search. Write complexity of
7.
2 4+4+4
Binary search. 2
OR
Write algorithm for Heap sort, 12
What is heap? an
- o 0 o-