DS-IISEM-Question Bank
DS-IISEM-Question Bank
Unit-1
Part-A
1. Define the term algorithm .
2. Differentiate between recursive and iterative algorithms.
3. Describe best case, average case and worst-case efficiency of an algorithm
4. How do you measure the algorithm running time?
5. Define the term Time Complexity.
6. Define the term Space complexity.
7. Define the term Data abstraction?
8. Define data structure and its types.
9. List linear and nonlinear data structures.
10. List out any four applications of data structures?
11. List areas where data structures can be applied?
12. What is meant by an abstract data type (ADT)?
Part-B
1. Discuss various the asymptotic notations used for best case average case and worst-case
analysis of algorithms.
2. Discuss about various asymptotic notations with examples.
3. Define recursion? Explain with its Fibonacci series and factorial of a number.
4. Describe the reasons of using the space complexity and time complexity in measuring the
performance of a program?
5. Explain time and space complexities in detail
6. F(n)=3n2-n+4 show that f(n)=O(n2)
7. F(n)=5n2+10n convert this to Ω() notation.
8. Explain about ADTs with suitable examples.
9. What is recursion? What are the conditions for a recursive function to run? Write a
recursive function to implement the reversing a number?
10. Find omega notation for f(n)=4n2+7n+12.
11. Define data structure. Explain about linear and nonlinear data structures.
Unit-2
Part-A
1. State the different types of linked lists?
2. List the applications of stack?
3. List out the basic operations that can be performed on a queue?
4. With a neat diagram represent 2 elements (12, 10) in Circular linked list.
5. What is a stack?
6. Define Linked list?
7. Convert the infix expression (a+-(c* into postfix form?
8. List the basic operations carried out in a linked list?
9. Write the representation of double linked list with a neat diagram?
10. State the different ways of representing an expression?
11. List out the basic operations that can be performed on a stack?
12. What is an array? What are the different types of arrays?
Part-B
1. Explain the procedure to convert infix expression into postfix expression. Convert the
following expression ((A-(B+)*D^(E+F) into postfix form.
2. Explain different operations on single linked list? Write a C++ code snippet to create and
delete an element from single linked list
3. Explain the procedure to evaluate postfix expression and evaluate the given expression
623 + - 382 / + * 2 / 3 +
4. Explain different operations on circular linked list? Write a C++ code snippet to create
and delete an element from circular linked list
5. Write an algorithm to implement stack ADT using linked lists.
6. List and explain about double linked list insert and delete operations with an example.
7. Write a procedure to implement the following stack operations using linked list
i) push ii) pop
8. What is a circular queue? Explain the procedure for insert and delete operations
9. Explain the following operations in a double linked list
Insert an element
Delete an element
Reverse traversal of an element
10. Explain queue operation using array and linked list with an example each.
11. Explain Array and Linked representation of Sparse Matrix.
Unit-3
Part-A
1. Define full binary tree?
2. What is the function of find operation in disjoint sets?
3. List the different tree traversals?
4. Define Max heap?
5. Define tree?
6. List the operations can be performed on priority queue?
7. Define degree of the node?
8. Give the representation of full binary tree and complete binary tree with an example?
9. Define complete binary tree?
10. Give the representations for max tree and min tree.
11. Define path in a tree?
12. What are the tasks performed during post order traversal?
Part-B
1. construct a binary tree from a given pre order and in order sequence
Pre order: ABDGCEHIF
In order: DGBAHEICF construct a binary tree from a given pre order and in order sequence
Pre order: ABDGCEHIF
In order: DGBAHEICF
2. Explain tree traversal with an example.
3. Write a c++ program that uses functions to perform the following(each carry 10 marks)
i) Create a binary search tree of characters
ii) Traverse the above binary search tree recursively in order
4. Write a c++ program that uses functions to perform the following
Traverse the above binary search tree recursively in pre order, in order and post order
5. Define Mix heap. Construct a mix heap for the following {12,15,9,8,10,18,7,20,25}.
6. Explain about union –find problem with an example
7. Write inorder, preorder, postorder, level order traversals of the following tree with
procedure.