0% found this document useful (0 votes)
55 views

5CS4-05 Analysis of Algorithms Set 2

This document is the midterm exam for the Analysis of Algorithms course given to third year computer science students. It contains 3 parts with multiple choice and short answer questions. Part A has 6 short answer questions worth 2 marks each about graph traversal techniques, comparing algorithm performance, examples of NP-complete problems, and more. Part B has 4 longer answer questions worth 5 marks each, including solving a subset sum problem, explaining the KMP string matching algorithm, and describing job scheduling. Part C contains 2 questions worth 9 marks each on solving an assignment problem using branch and bound and explaining dynamic programming and multicommodity flow problems.

Uploaded by

Shrinath Tailor
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

5CS4-05 Analysis of Algorithms Set 2

This document is the midterm exam for the Analysis of Algorithms course given to third year computer science students. It contains 3 parts with multiple choice and short answer questions. Part A has 6 short answer questions worth 2 marks each about graph traversal techniques, comparing algorithm performance, examples of NP-complete problems, and more. Part B has 4 longer answer questions worth 5 marks each, including solving a subset sum problem, explaining the KMP string matching algorithm, and describing job scheduling. Part C contains 2 questions worth 9 marks each on solving an assignment problem using branch and bound and explaining dynamic programming and multicommodity flow problems.

Uploaded by

Shrinath Tailor
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Sri Balaji College of Engineering & Technology, Jaipur

Department of Computer Science & Engineering


B.Tech. III Year (V Sem.)
II Mid Term Exam Dec-2021
Subject (Subject Code): Analysis of Algorithms (5CS4-05)
Max. Marks: - 50 Max. Time: - 1.5 Hour
NOTE: - Question Paper is divided into three parts. Attempt all parts.
Part A
Attempt any six questions (Short answer question up to 25 words)
1. What are the graph traversal techniques? [2]
2. How do you compare the performance of various algorithms? [2]
3. Give example of NP complete problem. [2]
4. Distinguish between deterministic and non-deterministic algorithms. [2]
5. Differentiate between decision problems and approximation problems. [2]
6. What is promising and non-promising nodes? [2]
7. What is the time complexity of conventional matrix multiplication method and Strassen's
matrix multiplication method? [2]
8. State Sum of Subsets problem. [2]
Part B
Attempt any four questions
9. Let S = {4,6,7,8} and m=18. Find all possible subsets of s that sum to m. Draw the state space
tree that is generated. [5]
10. Write the KMP string matching algorithm and also find the prefix function for the following
pattern (a b a b b a b a a) and implement the algorithm for the one step. [5]
11. What is job scheduling problem? Schedule two jobs on 4 machine using flow shop scheduling
technique. The time required by each operation of these jobs is given by the followings [5]
Job 1 Job 2
M1 3 0
M2 0 3
M3 4 2
M4 5 2
12. Explain Randomized algorithm and give advantage and disadvantage of it. [5]
13. Explain Cook’s Theorem. [5]
14. Explain Flow shop Scheduling with suitable example. [5]
Part C
Attempt any two questions
15. Solve the assignment problem by branch and bound method. [9]
Job 1 Job 2 Job 3 Job 4
Person 1 9 2 7 8
Person 2 6 4 3 7
Person 3 5 8 1 8
Person 4 7 6 2 4

16. What is dynamic programming? How is this approach different from recursion? Explain. [9]
17. What is multicommodity flow? Explain with suitable example. [9]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy