0% found this document useful (0 votes)
67 views4 pages

Ada See

This document is an examination question paper for the Fourth Semester B.E. Degree in Analysis and Design of Algorithms at BMS Institute of Technology and Management. It outlines the structure of the exam, including modules and questions covering various algorithmic concepts such as Euclid's algorithm, Divide and Conquer, Greedy algorithms, and Dynamic Programming. Students are required to answer five questions, selecting one from each module, with a total examination time of three hours and a maximum score of 100 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views4 pages

Ada See

This document is an examination question paper for the Fourth Semester B.E. Degree in Analysis and Design of Algorithms at BMS Institute of Technology and Management. It outlines the structure of the exam, including modules and questions covering various algorithmic concepts such as Euclid's algorithm, Divide and Conquer, Greedy algorithms, and Dynamic Programming. Students are required to answer five questions, selecting one from each module, with a total examination time of three hours and a maximum score of 100 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

06 AUG 2024

BCS401

USN I B Y2
2A1oo 2 NATI:N

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT


(An Autonomous Institute affilialed to VisvesvaraIya Technological University, Belugavi)
SEMESTER END EXAMINATION QUESTION PAPER

Fourth Semester B.E. Degree Examination


Regular /Make-up/ Arrears / Supplementary
ANALYSIS AND DESIGN OF ALGORITHMS
Time: 3 hrs. Max. Marks: 100

Note:
Answer FIVE full questions,choosing ONE full question from each module.
2. Assume suitably any missing Data.
Q. No Module -1 Marks CO, RBT

What are the key properties that define an algorithm? Describe a situation wherc
la. understanding the problem is the most challenging part of solving a problem COI, L2
algorithmically. How would you approach solving such a problem?
lb.
Explain the notion of algorithm. Design Euclid's algorithm for computing GCD(m, n). 10 CO1, L3
Find GCD(60, 24) using Euclid's algorithm.
OR
Define time efficiency and space eficiency in the context of algorithm analysis. Explain
2a the concept of worst-case, best-case, and average-case efficiency in algorithm analysis. 10 CO1, L2
Provide examples to illustrate each scenario.
Write a pseudo code function to implement the algorithm for finding the maximum
2b number in a list of integers. 05 CO1, L3

If t1(n) ¬ O(g1(n)) and ta(n)¬ O(g:(n), then infer that


2c ti(n) + t2(n) ¬ O (max (g1(n), gz(n)). 05 CO1, L2

Module-2

3a.
Describe a Decrease and Conquer algorithm to perform Topological Sorting on a 10 CO1, LI
Directed Acyclic Graph (DAG).
Compare the complexity oflinear search and binary search. Deseribe how Divide and 10 CO1, L2
3b. Conquer approach is used in implementing binary search.
OR
Illustrate a Divide andConquer algorithm tofind the maximum and minimum elements
4a.
in an array. Analyse its time complexity, Provide a numerical example. 10 CO2, L2

4b. Explain the general method of Divide and Conquer algorithm. Solve the recurrence 10 CO2, L3
equation T(n) = aT(n/b) + f(n) using the Master's theorem.
Module-3
Given the weights and profits of N items, in the form of {profit, weight} put these
Sa. items in aknapsack of capacity W to get the maximum total profit in the knapsack 10 CO3, L3
problem using Greedy algorithm. Write the algorithm and show step by step procedure
forthe nput: arrl) =f(60, 101. (100, 20). (120, 30}. W= 50, Output: 240

Page 1 of4
BCS401
Construct the frequency table and Huffinan Tree for the string: "a fast runner nced
Sb. never be afraid of the dark. Explain the step-by-step construction method. 10
CO4, L3
OR
Consider the following tasks Table Iwith their dcadlines and profits. Schedule thetasks
in such a way that they produce maximum profit afer being exccuted.
Table 1

S. No. 2 3 4

10
6a. Jobs JI J2 J3 J4 J CO3, L3

Deadlincs 2 4

Profits 20 60 40 100 80

Write algorithmto generate minimum cost spanning tree using Prim's algorithim and
show step by step procedure of Prim's algorithm for the following graph (Fig-l)

10 28

6b. 10 CO4, L3
14
16
24
25
18

Fig-1 22 12

3)
Module -4
Design Belman-Ford algorithm. Apply this algorithmto findshortest path distance from CO4, L3
source S to allother vertices in Fig-2.

5
2

7a 10
3
7

Fig-2

Page 2 of4
BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT
BCS401

Illustrate a Dynamic Programming solution to find the optimal tour that visits CO4, L3
cach city exactly once and retuns to the starting city for the following graph Fig
3.

20

7b. 10 15 10

30

Fig-3.
OR
Construct the Optimal binary search tree for the following data: CO4, L2

8a. Key A B C D 10

Probability 0.1 0.2 0.4|0.3


Consider the following Table 2 to solve the Knapsack problem using dynamic CO4, L3

programming.
Table 2

Itenn Weight Value


10
8b. 2 $12
2 1 S 10 W=5
3 3 $ 20
4 2 $ 15
Module-5
06 CO3, L2
9a. Design algorithm to implement N-Queen Problem.
Solve the following assignment problem using branch and bound technique. CO2, L3

jobl job2 job3 job4


9 2 8|Person a
9b. 08
6 4 3 7|Personb
5 8 8Personc
|7 6 4 Persond
9c. Explain i) Class P problem ii) Class NP problem 06 CO1, LI
OR
Explain backtracking concept and apply it solve subset-sum problem: S = (4, 5, 08
CO3. L2
10a. 7.8} and d =15. Draw the state space tree.

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT Page 3 of 4


BCS40I

Solve he travelling salespcrson problem using branch nd bound technique tor


the followin: proph (Fig-1).

()8
IOb.

Fig-4
ii) NP had problem (04
1Oc. Explain i) NP Complete problem
Course Outcomes (COs):

COs A theend
Analyze of thealgorithms,
various course, theslate
N(udent wilbe able
the cficicncy usingto asymptotic notations and nnathenatically represcnt the complexity of the algorithm.
CO-1
C0-2 Explain the clusses P, NI, andNP-Complete and be able to prove that acertain problem is NP-Complete.
Explain inmportant alporithmic desiu paradignns (divido-and-conquer, greedy method, dynamic-propramming md Backtracking) and apply
(03
when analyoritbnie design situntion calls lor it.
CO-4 Ayply anLI-alonithn using ypropriate
Remenmbering design strategiesL3-Applying
L2-Understanding for problem solving.
L4- Analyzing L5 - Evaluating L6 -Creating

"Satisfaction lles in the ffort, not in the atainment, full effort is full victory"

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT Page4 otf4

You might also like