Data Structure
End Semester Examination, 2021-22
B. Tech - Semester : 03
Time : 3 hrs. - Max. Marks : 100
Instructions:
- All questions are Compulsory
- Assume missing data suitably, if any.
Section : A ( 10 x 4 = 40 Marks )
All questions are compulsory
- List advantage of linked list over arrays.
- Evaluate time complexity of insertion sort.
- List different ways of implement polynomial ADT.
- Define in-degree and out-degree of a graph.
- Discuss deque with examples.
- What are the properties of Minimum Cost Spanning (MST) Tree ?
- Discuss rotation of AVL tree.
- What are the disadvantages of circular linked list.
- Evaluate the best case, average case and worst case time complexity of Bubble sort.
- Explain the properties of Sparse matrix.
Section : B ( 3 x 6 = 18 Marks )
All questions are compulsory
- Write an algorithm to delete an element anywhere from doubly linked list.ORWrite applications of single linked list to represent polynomial expressions.
- Write an algorithm of insertion in queue using linked list.ORExplain polynomial addition using linked list.
- Write an algorithm to push and pop an element using array.ORWrite an algorithm to push and pop an element from linked list.
Section : C ( 3 x 10 = 30 Marks )
All questions are compulsory
- Write a pseudo code for converting infix expression into postfix.ORExplain time complexity and space complexity of an algorithm with example.
- Convert following expression X+(Y*Z)-((N*M+O)/P) into post form.ORRearrange following numbers using selection sort : 10, 6, 3, 7, 17, 26, 56, 32, 72 and discuss its time complexity.
- What is a Binary tree ? Construct a binary tree given the pre-order traversal and in-order traversal as follows:
Pre-Order Traversal : G B Q A C K F P D E R H
In-Order Traversal : Q B K C F A G P E D H RORConstruct AVL tree for the following : 1, 2, 3, 4, 5, 6, 7
Section : D ( 1 x 12 = 12 Marks )
All questions are compulsory
No comments:
Post a Comment