SlideShare a Scribd company logo
CAT-III : APRIL 2015 (SET – A)
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS
Year/Sem : II/IV Date : 08.04.2015
Class/Sectin : CSE Duration : 3 Hours
Faculty : Max.
Marks
:
100
PART - A
Answer ALL Questions
1. What is recurrence relation?
2. List out the basic efficiency classes.
3. Define minimum spanning tree.
4. Write the equation for calculating binomial co – efficient.
5. Define Divide and conquer technique.
6. Define Strassen’s multiplication.
7. State Huffman coding.
8. What is meant by bipartite graph?
9. Mention the relation between P and NP.
10. Define Non Deterministic algorithm.
PART – B
11. a. Apply Warshall’s algorithm and compute the shortest path for the given instance (10)
ii) Write the algorithm for computing binomial co-efficient and analyse the efficiency. (6)
Or
11 b) Solve the instance of the Knapsack problem using dynamic programming method
and write the algorithm for the same.
12 a) i) Write the Huffman’s algorithm and construct Huffman tree for the following
data. (10)
ii) Write short notes on Memory function techniques. (6)
Or
12 b) i) Solve the given graph using single source shortest path algorithm. (8)
ii) Use Prim’s algorithm for the given graph and obtain the shortest path (8)
13 a) i) Solve the linear programming problem using simplex method
Maximize 3x+y
Subject to –x+y <= 1
2x + y < =4
X >= 0 y > =0
ii) Using backtracking technique solve the following instance for the subset prblem
s = (1, 3, 4, 5) and d=11
or
13 b) i) Write an memory function algorithm to solve the following knapsack problem.
Knapsack capacity W= 5
ii) Solve the following instance of the single source shortest path problem with vertex a as the
source.
14 a) i) Trace maximum and minimum (using divide and conquer) algorithm for the following
sequence 20,18,15,18,8,4,41,39,-3.
ii) Consider an instance of the stable marriage problem given by the ranking matrix. For each
of its marriage matching’s indicate whether it is stable or not
Or
14 b) Illustrate pictorially the Ford –Fulkerson method by showing the flow augmenting paths in
bold for the given flow network
15 a) i) Describe in detail about P and NP Problems (8)
ii) Write short notes on NP Complete Problem (8)
Or
b) i) Explain lower bound Arguments in detail. (8)
ii) Write down the backtracking algorithm for n – queens problem and subset sum problem.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CAT-III : APRIL 2015 (SET – A)
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS
Year/Sem : II/IV Date : 08.04.2015
Class/Sectin : CSE Duration : 3 Hours
Faculty :
MADHURAM R
Max.
Marks
:
100
PART - A
1. Define Asymptotic notations.
2. Define recursive equation.
3. What is brute force technique.
4. Define divide and conquer technique.
5. Define minimum spanning tree.
6. What is the difference between dynamic programming and divide and conquer
technique.
7. Define stable marriage problem.
8. Define bipartite graph.
9. Define decision tree.
10. Mention the relation between P and NP.
PART – B
11 a) Apply the branch and bound algorithm to solve the following knapsack problem and explain
in detail.
Ite
m
Weigh
t
valu
e
1 2 1
2 3 2
3 4 5
The knapsack capacity W is 6.
Or
b) Explain Hamiltonian circuit in a graph. Use backtracking to get a Hamiltonian circuit of
following the graph..
12 a) Solve the instance of the stable marriage problem given by the ranking matrix and find the
stable and unstable matching.
Ranking matrix
Or
b) Solve the followingproblemusingthe simplex method
 Maximize Z = 3X1+ 5X2
Subject to X1  4
2 X2  12
3X1 +2X2  18
X1 , X2  0
Ann Lea Sue
Bob 2,3 1,2 3,3
Jim 3,1 1,3 2,1
Tom 3,2 2,1 1,2
13 a) i) Explain the pseudo code for prim’s algorithm and apply the same to minimum spanning
tree for the following graph.
ii)
Or
b) Solve the following assignment problem using branch and bound technique. Explain in detail
how branch and bound technique is useful for solving assignment problems.
14 a) i) Explain in detail about approximation algorithms for NP hard problems. How all you
quantify the accuracy of an approximation algorithm?
ii) Explain n-queen’s problem. Draw a portion of the state space tree and perform
backtracking search for a solution to 4-queens problem
Solve the following instance of the travelling salesman problem by branch and bound method and
explain in detail.
Or
b) i) Devise an algorithm to sort the following elements using Merge sort technique
286, 45,278,368,475,389,656,788,503,126.
ii) Devise an algorithm for merge sorting. Show the intermediate steps when the numbers 310,
285, 179, 652, 351, 423, 861, 254, 450, 520 are sorted using quick sort.
15 a) Discuss the general plan for analyzing the efficiency of non recursive algorithm.
ii) Write an algorithm to find the number of binary digits in the binary representation of a
positive decimal integer and analyze its efficiency.
Or
b)i) Apply binary search algorithm to find the key value 32 in the following list of elements.
1,7,12, 16, 18,21,24,32,34
ii) Write and explain Floyd’s algorithm for the all-pairs shortest path problem. Using this find the
length of the shortest path between all pairs of vertices of the following graph.

More Related Content

PDF
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
DOCX
Cs6402 design and analysis of algorithms impartant part b questions appasami
PDF
Cs6402 design and analysis of algorithms may june 2016 answer key
PDF
design and analysis of algorithm
PDF
Design & Analysis Of Algorithm
DOCX
Cs6702 graph theory and applications question bank
PDF
Branch and bound technique
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
Cs6402 design and analysis of algorithms impartant part b questions appasami
Cs6402 design and analysis of algorithms may june 2016 answer key
design and analysis of algorithm
Design & Analysis Of Algorithm
Cs6702 graph theory and applications question bank
Branch and bound technique

What's hot (19)

PPTX
Graph Traversal Algorithms - Breadth First Search
PDF
ADA complete notes
PPT
PPTX
PPTX
Design and analysis of algorithms - Abstract View
PPTX
Algorithms : Introduction and Analysis
PPTX
Branch and bound technique
PPTX
#1 designandanalysis of algo
PPTX
NP-Completeness - II
PDF
Digit Factorial Chains .(Euler Problem -74) (Matlab Programming Solution)
PPT
Branch and bound
PPTX
Asymptotic Notation and Data Structures
PPTX
Dynamic Programming - Part 1
PPTX
Daa unit 3
PPT
Np cooks theorem
PPT
Design and Analysis of Algorithms
PDF
Graph Traversal Algorithms - Breadth First Search
ADA complete notes
Design and analysis of algorithms - Abstract View
Algorithms : Introduction and Analysis
Branch and bound technique
#1 designandanalysis of algo
NP-Completeness - II
Digit Factorial Chains .(Euler Problem -74) (Matlab Programming Solution)
Branch and bound
Asymptotic Notation and Data Structures
Dynamic Programming - Part 1
Daa unit 3
Np cooks theorem
Design and Analysis of Algorithms
Ad

Viewers also liked (8)

PPTX
PPT
Knowledge Management Tools
PPTX
Seth Earley Presentation on Knowledge Management Through Search-Based Applica...
PDF
Knowledge Management: Best Practices for Organization
PDF
Dasha knowledge management tools
PDF
15 Hot Knowledge Management Trends
PDF
Knowledge management (KM) tools
PPTX
Knowledge management
Knowledge Management Tools
Seth Earley Presentation on Knowledge Management Through Search-Based Applica...
Knowledge Management: Best Practices for Organization
Dasha knowledge management tools
15 Hot Knowledge Management Trends
Knowledge management (KM) tools
Knowledge management
Ad

Similar to CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio (20)

PDF
3rd Semester Computer Science and Engineering (ACU) Question papers
PDF
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
PDF
8th Semester Computer Science (2013-June) Question Papers
PDF
2nd Semester M Tech: Structural Engineering (June-2015) Question Papers
PDF
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
PDF
3rd Semester Computer Science and Engineering (ACU) Question papers
DOC
Data structures question paper anna university
DOCX
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
PDF
Pcd201516
PDF
7th Semester (June; July-2015) Computer Science and Information Science Engin...
DOCX
3rd Semester Computer Science and Engineering (ACU) Question papers
PDF
D E S I G N A N D A N A L Y S I S O F A L G O R I T H M S J N T U M O D E L...
PDF
Ec2203 digital electronics questions anna university by www.annaunivedu.org
DOC
Algorithms Question bank
PDF
DOCX
PDF
Daa q.paper
DOCX
Smu bsc it Spring 2014 solved assignments
PDF
5th Semester CS / IS (2013-June) Question Papers
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU-2022) Question papers
8th Semester Computer Science (2013-June) Question Papers
2nd Semester M Tech: Structural Engineering (June-2015) Question Papers
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
3rd Semester Computer Science and Engineering (ACU) Question papers
Data structures question paper anna university
SMU BSC IT FALL / SUMMER 2013 SOLVED ASSIGNMENTS
Pcd201516
7th Semester (June; July-2015) Computer Science and Information Science Engin...
3rd Semester Computer Science and Engineering (ACU) Question papers
D E S I G N A N D A N A L Y S I S O F A L G O R I T H M S J N T U M O D E L...
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Algorithms Question bank
Daa q.paper
Smu bsc it Spring 2014 solved assignments
5th Semester CS / IS (2013-June) Question Papers

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Computing-Curriculum for Schools in Ghana
PDF
Basic Mud Logging Guide for educational purpose
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Classroom Observation Tools for Teachers
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Cell Structure & Organelles in detailed.
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Computing-Curriculum for Schools in Ghana
Basic Mud Logging Guide for educational purpose
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPH.pptx obstetrics and gynecology in nursing
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Classroom Observation Tools for Teachers
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial disease of the cardiovascular and lymphatic systems
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Complications of Minimal Access Surgery at WLH
Abdominal Access Techniques with Prof. Dr. R K Mishra
Renaissance Architecture: A Journey from Faith to Humanism
Cell Structure & Organelles in detailed.
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
GDM (1) (1).pptx small presentation for students

CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio

  • 1. CAT-III : APRIL 2015 (SET – A) CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS Year/Sem : II/IV Date : 08.04.2015 Class/Sectin : CSE Duration : 3 Hours Faculty : Max. Marks : 100 PART - A Answer ALL Questions 1. What is recurrence relation? 2. List out the basic efficiency classes. 3. Define minimum spanning tree. 4. Write the equation for calculating binomial co – efficient. 5. Define Divide and conquer technique. 6. Define Strassen’s multiplication. 7. State Huffman coding. 8. What is meant by bipartite graph? 9. Mention the relation between P and NP. 10. Define Non Deterministic algorithm. PART – B 11. a. Apply Warshall’s algorithm and compute the shortest path for the given instance (10) ii) Write the algorithm for computing binomial co-efficient and analyse the efficiency. (6) Or 11 b) Solve the instance of the Knapsack problem using dynamic programming method and write the algorithm for the same. 12 a) i) Write the Huffman’s algorithm and construct Huffman tree for the following data. (10)
  • 2. ii) Write short notes on Memory function techniques. (6) Or 12 b) i) Solve the given graph using single source shortest path algorithm. (8) ii) Use Prim’s algorithm for the given graph and obtain the shortest path (8) 13 a) i) Solve the linear programming problem using simplex method Maximize 3x+y Subject to –x+y <= 1 2x + y < =4 X >= 0 y > =0 ii) Using backtracking technique solve the following instance for the subset prblem s = (1, 3, 4, 5) and d=11 or 13 b) i) Write an memory function algorithm to solve the following knapsack problem. Knapsack capacity W= 5
  • 3. ii) Solve the following instance of the single source shortest path problem with vertex a as the source. 14 a) i) Trace maximum and minimum (using divide and conquer) algorithm for the following sequence 20,18,15,18,8,4,41,39,-3. ii) Consider an instance of the stable marriage problem given by the ranking matrix. For each of its marriage matching’s indicate whether it is stable or not Or 14 b) Illustrate pictorially the Ford –Fulkerson method by showing the flow augmenting paths in bold for the given flow network 15 a) i) Describe in detail about P and NP Problems (8) ii) Write short notes on NP Complete Problem (8) Or b) i) Explain lower bound Arguments in detail. (8) ii) Write down the backtracking algorithm for n – queens problem and subset sum problem.
  • 4. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CAT-III : APRIL 2015 (SET – A) CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS Year/Sem : II/IV Date : 08.04.2015 Class/Sectin : CSE Duration : 3 Hours Faculty : MADHURAM R Max. Marks : 100 PART - A 1. Define Asymptotic notations. 2. Define recursive equation. 3. What is brute force technique. 4. Define divide and conquer technique. 5. Define minimum spanning tree. 6. What is the difference between dynamic programming and divide and conquer technique. 7. Define stable marriage problem. 8. Define bipartite graph. 9. Define decision tree. 10. Mention the relation between P and NP. PART – B 11 a) Apply the branch and bound algorithm to solve the following knapsack problem and explain in detail. Ite m Weigh t valu e
  • 5. 1 2 1 2 3 2 3 4 5 The knapsack capacity W is 6. Or b) Explain Hamiltonian circuit in a graph. Use backtracking to get a Hamiltonian circuit of following the graph.. 12 a) Solve the instance of the stable marriage problem given by the ranking matrix and find the stable and unstable matching. Ranking matrix Or b) Solve the followingproblemusingthe simplex method  Maximize Z = 3X1+ 5X2 Subject to X1  4 2 X2  12 3X1 +2X2  18 X1 , X2  0 Ann Lea Sue Bob 2,3 1,2 3,3 Jim 3,1 1,3 2,1 Tom 3,2 2,1 1,2
  • 6. 13 a) i) Explain the pseudo code for prim’s algorithm and apply the same to minimum spanning tree for the following graph. ii) Or b) Solve the following assignment problem using branch and bound technique. Explain in detail how branch and bound technique is useful for solving assignment problems. 14 a) i) Explain in detail about approximation algorithms for NP hard problems. How all you quantify the accuracy of an approximation algorithm? ii) Explain n-queen’s problem. Draw a portion of the state space tree and perform backtracking search for a solution to 4-queens problem Solve the following instance of the travelling salesman problem by branch and bound method and explain in detail.
  • 7. Or b) i) Devise an algorithm to sort the following elements using Merge sort technique 286, 45,278,368,475,389,656,788,503,126. ii) Devise an algorithm for merge sorting. Show the intermediate steps when the numbers 310, 285, 179, 652, 351, 423, 861, 254, 450, 520 are sorted using quick sort. 15 a) Discuss the general plan for analyzing the efficiency of non recursive algorithm. ii) Write an algorithm to find the number of binary digits in the binary representation of a positive decimal integer and analyze its efficiency. Or b)i) Apply binary search algorithm to find the key value 32 in the following list of elements. 1,7,12, 16, 18,21,24,32,34 ii) Write and explain Floyd’s algorithm for the all-pairs shortest path problem. Using this find the length of the shortest path between all pairs of vertices of the following graph.