Ay 2024-2025 III-i Daa Question Bank
Ay 2024-2025 III-i Daa Question Bank
UNIT- 1
Q..NO DESCRIPTION OF QUESTION MARKS CO PO BTL
a List out the characteristics of an algorithm. 1 1 1 1
b Define an algorithm to returns nth term of the Fibonacci series. 1 2 1 1
c Explain the recurrence relation used to determine the time complexity in
1
divide and conquer algorithms and also demonstrate how to derive the time
10 3 1 2
complexity using the substitution method, assuming the constants a=2 and
b=2.
a Define the time complexity. 1 1 2 1
b Analyze the time complexity of merge sort 1 2 2 4
2 c Define the Quick Sort algorithm. Also Explain the recurrence relation
representing its worst-case time complexity and determine it by solving the 10 2 2 2
recurrence relation.
a Organize the following functions in ascending order based on their growth:
1 2 1 2
n, log n,n2,n3,nlogn,2n
b Analyze the time complexity of quick sort. 1 2 2 4
3
c Apply quick sort technique and arrange the records with the following values
in the ascending order. 10 2 2 3
2, 3, 8, 5, 4, 7, 6, 9, 1.
a List out the applications of divide and conquer 1 1 1 5
b Analyze the time complexity of Strassens matrix multiplication. 1 1 1 4
4 c Define the Merge Sort algorithm and apply it to sort the following elements:
5 1 2 2
310, 285, 179, 652, 351, 423, 861, 254, 450, 520.
d Explain the Strassen’s matrix multiplication algorithm 5 1 1 2
a Explain the recurrence relation representing time complexity of binary search. 1 1 1 2
b List various asymptotic notations. 1 2 2 4
5 c Apply quick sort algorithm to sort the list C, O, L, L, E, G, E in alphabetical
5 3 2 5
order.
d Solve the following recurrence: T(n)=4T(n/2)+n, Where 1n and is a power
5 1 1 2
of 2.
a Define an Order of growth 1 1 1 2
b Explain Big-Oh notation. 1 1 2 2
6
c Explain the Strassen’s matrix multiplication. 5 1 2 2
d Define the Binary Search algorithm. Also explain with an example. 5 1 1 2
UNIT-2
Q..NO DESCRIPTION OF QUESTION MARKS CO PO BTL
1 a Define a set and its representations. 1 1 2 1
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284
b Define Disjoint sets properties 1 1 2 1
c Define simple union and simple find algorithms. Also explain them with
10 2 2 2
examples.
a Define Backtracking. 1 1 2 1
b Illustrate the performance problems associated with the Simple Union and
1 1 2 2
2 Find algorithms.
c Define weighted union and collapsing find algorithms. Also analyze the
10 1 2 4
performance their benefits with examples.
a Define Backtracking algorithm 1 1 2 1
3 b Define Explicit and Implicit Constraints. 1 1 2 1
c Define and explain the n-queens problem. 10 1 2 2
a List the Applications of Backtracking 1 1 2 1
4 b Explain the 4-queen problem using backtracking. 1 2 2 2
c Define and explain Sum of subsets problem. 10 1 2 2
a Define state space tree. 1 1 2 1
b Find the sum of subsets for the following set of integers using fixed tuple
5 method. 1 1 2 1
{5, 10, 25, 50,100} for W=75.
c Define and explain graph coloring problem. 10 1 2 2
a Define hamiltonian cycle? 1 1 2 1
6 b Define planar graph and draw the example. 1 1 2 1
c Define and explain heap sort. 10 1 2 2
UNIT-3
Q..NO DESCRIPTION OF QUESTION MARKS CO PO BTL
a Define dynamic programming 1 1 2 1
b Define optimal binary search tree with an example 1 1 2 1
1 c Explain merging and purging rules in 0/1 knapsack problem. Find an optimal
solution to the 0/1 knapsack Instance n=4, m=15, (w1,w2, w3, w4)=(3,4,3,5), 10 2 2 2
and (p1,p2,p3,p4)=(10,5,7,11)
a Define optimal Solution? 1 1 2 1
b Give the statement of Reliability design problem. 1 1 2 4
c Obtain all pairs shortest paths for the following graph
2
10 2 2 1
UNIT-5
Q..NO DESCRIPTION OF QUESTION MARKS CO PO BTL
a What do you mean by bounding? 1 1 3 1
b Write about the general method for Branch and Bound. 1 1 3 5
1 c Draw the portion of the state space tree generated by LCBB for the following
instances:
10 2 3 3
n=5, m=12, (P1………..P5) = (10, 15, 6, 8, 4)
(w1…………w5) = (4, 6, 3, 4, 2)
a Write the applications of Branch and Bound problem. 1 1 3 1
b Write the control abstraction algorithm for LC search. 1 1 3 1
2 c Explain the FIFO BB 0/1 Knapsack problem procedure with the knapsack
instance for n=4, m=15,(p1,p2,p3,p4)=(10,10,12,18), (w1,w2,w3,w4) =(2, 4, 10 3 3 2
6, 9). Draw the portion of the state space tree and find optimal solution.
a What is the Principle of Optimality? 1 1 3 1
b Write the non-deterministic sorting algorithm. 1 1 3 2
c Solve the Travelling Salesman Problem for the following graph 4 by using the
Branch and Bound Algorithm.
3
10 2 3 2
5 a Define Class P? 1 1 3 1
b What is NP-hard problem. 1 1 3 1
c State and Explain the cook’s theorem. What is the significance of this
10 2 3 2
theorem?.
6 a List the applications of Dynamic programming? 1 1 3 1
b Distinguish between deterministic and non deterministic algorithm. 1 2 3 4
c i) Prove that CNF satisfiability of AND/OR graph decision problem. 10 2 3 2
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284
ii) Give the 0/1 Knapsack LCBB algorithm.
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284
Objective Questions:
1. Each path through the tree represents a …….. in a binary tree
a) Sequence of comparisions b) elements comparisions
c) Sequence of elements d) comparisions
2. The sets A&B are said to be disjoint if
a)AUB= Ø b)AUB≠ Ø c)A∩B= Ø d)A∩B≠ Ø
3. The time required for find operation to find an element at level i of tree is _______.
a)O(i) b)O(2i) c)O(3i) d)O(i2)
4. The operations of disjoint sets are ____.
a)find b)union c)a&b d)none
5. Backtracking is allowed in ____ algorithm.
a)BFS b)DFS c)Prims d)Krushkal
6. In n-queens problem, nodes are numbered as in ______.
a)DFS b)BFS c)D-search d)both b&c
UNIT-III
Objective Questions:
1. Which method can be used when the solution to a problem can be viewed as the result of
a sequence of decisions
10. If an optimal solution can be created for a problem by constructing optimal solutions for
its subproblems, the problem possesses ____________ property.
a) Overlapping subproblems
b) Optimal substructure
c) Memoization
d) Greedy
11. In dynamic programming, the technique of storing the previously calculated values is
called ___________
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
(AN AUTONOMOUS INSTITUTION)
Deshmukhi (V), Pochampally (M), Yadadri Bhuvanagiri Dist., TS-508284
12. The travelling sales man problem is to find the tour of _______ cost.
13. The probability that device i will work properly is called ____ of that device.
16. The _____ states that whatever the initial state &decision are, the remaining decisions
must constitute an optimal decision sequence.
18. In 0/1 Knapsack problem the set S=(P, W) where P is___________and W is________.
19. We have two sets (P1,W1) and (p2,W2) when P1<P2 and W1>W2 then this property is
known as __________
20. Finding the shortest path between every pair of vertices is known as___________
Objective Questions:
1. The problem job scheduling with deadlines comes under ………..
6. Worst case is the worst case time complexity of Prim’s algorithm if adjacency matrix is
used?
a) O(log V)
b) O(V2)
c) O(E2)
d) O(V log E)
10. Fractional knapsack problem is solved most efficiently by which of the following
algorithm?
a) Divide and conquer
b) Dynamic programming
c) Greedy algorithm
d) Backtracking
11. In job scheduling we get the profit if the job completes in ………..
15. In single source shortest path problem we visit the vertex v ………. to u.
19. The objective of Knapsack problem is to fill the knapsack that ……… the total profit
earned.
UNIT-V
Objective Questions:
1. If there are m live nodes then addition and deletion of a node to a list can be carried out in
the time of
a) O(log m) b)O(1) c)O(m) d)None
2. For exploring new nodes ------- techniques are used
a)_DFS b)BFS c)D-search d)Both b&c
3. 3. In branch and bound method the basic idea is selection of ……
a) E-node b) B-node c)D-node d)None
4. Branch and bound is a __________
a) problem solving technique
b) data structure
c) sorting algorithm
d) type of tree
5. Which of the following is not a branch and bound strategy to generate branches?
a) LIFO branch and bound
b) FIFO branch and bound
c) Lowest cost branch and bound
d) Highest cost branch and bound
6. Any problem for which the answer is either zero or one is called---
11. Which of the following can traverse the state space tree only in DFS manner -----------
12. ---------- Algorithms have the property that the result of every operation is uniquely
defined.
13. If an NP hard problems can be solved in polynomial time then all --- problems can be
solved in polynomial time
14. …………. is the decision problem of determining whether a given com- puter program
halts on a given input