CLASS: II YEAR / IV SEMESTER CSE CS 6402-DESIGN AND ANALYSIS OF ALGORITHM UNIT I INTRODUCTION

Similar documents
5105 BHARATHIDASAN ENGINEERING COLLEGE

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: CS6402- Design & Analysis of Algorithm Year/Sem : II/IV UNIT-I INTRODUCTION

D.K.M.COLLEGE FOR WOMEN (AUTONOMOUS), VELLORE-1.

CS6402 DESIGN AND ANALYSIS OF ALGORITHMS QUESTION BANK UNIT I

DESIGN AND ANALYSIS OF ALGORITHMS

R13 SET - 1. ''' '' ''' ' blog: anilkumarprathipati.wordpress.com. Code No: RT32054

Anany Levitin 3RD EDITION. Arup Kumar Bhattacharjee. mmmmm Analysis of Algorithms. Soumen Mukherjee. Introduction to TllG DCSISFI &

Topic Analysis PART-A

Department of Computer Applications. MCA 312: Design and Analysis of Algorithms. [Part I : Medium Answer Type Questions] UNIT I

Contents. 1 Introduction. 2 Searching and Traversal Techniques. Preface... (vii) Acknowledgements... (ix)

INSTITUTE OF AERONAUTICAL ENGINEERING

15CS43: DESIGN AND ANALYSIS OF ALGORITHMS

DESIGN AND ANALYSIS OF ALGORITHMS

Model Answer. Section A Q.1 - (20 1=10) B.Tech. (Fifth Semester) Examination Analysis and Design of Algorithm (IT3105N) (Information Technology)

CSCE 321/3201 Analysis and Design of Algorithms. Prof. Amr Goneid. Fall 2016

L.J. Institute of Engineering & Technology Semester: VIII (2016)

Sankalchand Patel College of Engineering - Visnagar Department of Computer Engineering and Information Technology. Assignment

Introduction to Algorithms Third Edition

4. Give the diagram representation of Notion of algorithm. [M 13]

Thomas H. Cormen Charles E. Leiserson Ronald L. Rivest. Introduction to Algorithms

Lecture 1. Introduction

4.1.2 Merge Sort Sorting Lower Bound Counting Sort Sorting in Practice Solving Problems by Sorting...

Analysis of Algorithms

Virtual University of Pakistan

DESIGN AND ANALYSIS OF ALGORITHMS

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

IV/IV B.Tech (Regular) DEGREE EXAMINATION. Design and Analysis of Algorithms (CS/IT 414) Scheme of Evaluation

INTERNATIONAL INSTITUTE OF MANAGEMENT, ENGINEERING & TECHNOLOGY, JAIPUR (IIMET)

END-TERM EXAMINATION

CS-6402 DESIGN AND ANALYSIS OF ALGORITHMS

CS6402-DESIGN AND ANALYSIS OF ALGORITHM. TWO MARK QUESTION WITH ANSWERS Unit-I. Introduction

2. (a) Explain when the Quick sort is preferred to merge sort and vice-versa.

Overview of Data Structures, Algorithm Analysis

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

UNIT 1 BASICS OF AN ALGORITHM

Notation Index 9 (there exists) Fn-4 8 (for all) Fn-4 3 (such that) Fn-4 B n (Bell numbers) CL-25 s ο t (equivalence relation) GT-4 n k (binomial coef

St. Joseph College of Engineering

Notation Index. Probability notation. (there exists) (such that) Fn-4 B n (Bell numbers) CL-27 s t (equivalence relation) GT-5.

The Algorithm Design Manual

1 Format. 2 Topics Covered. 2.1 Minimal Spanning Trees. 2.2 Union Find. 2.3 Greedy. CS 124 Quiz 2 Review 3/25/18

About the Author. Dependency Chart. Chapter 1: Logic and Sets 1. Chapter 2: Relations and Functions, Boolean Algebra, and Circuit Design

CS 440 Theory of Algorithms /

PSD1A. DESIGN AND ANALYSIS OF ALGORITHMS Unit : I-V

CS 6402 DESIGN AND ANALYSIS OF ALGORITHMS QUESTION BANK

CS6702 GRAPH THEORY AND APPLICATIONS QUESTION BANK

CS6402 Design and Analysis of Algorithm. 2 Marks Question & Answer UNIT I INTRODUCTION

QUESTION BANK. Prepared by,mrs.d.maladhy AP/IT,RGCET. Page 1

CS521 \ Notes for the Final Exam

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

6. Algorithm Design Techniques

INDEX. Cambridge University Press How to Think About Algorithms Jeff Edmonds Index More information

TOTAL CREDIT UNITS L T P/ S SW/F W. Course Title: Analysis & Design of Algorithm. Course Level: UG Course Code: CSE303 Credit Units: 5

Lecture 3. Brute Force

( ) 1 B. 1. Suppose f x

CSC Design and Analysis of Algorithms

CSC Design and Analysis of Algorithms. Lecture 6. Divide and Conquer Algorithm Design Technique. Divide-and-Conquer

Multiple Choice Question. Unit-1 Introduction

Algorithms and Data Structures (INF1) Lecture 15/15 Hua Lu

February 19, Integer programming. Outline. Problem formulation. Branch-andbound

Your favorite blog : (popularly known as VIJAY JOTANI S BLOG..now in facebook.join ON FB VIJAY

Analysis and Design of Algorithm

CS583 Lecture 01. Jana Kosecka. some materials here are based on Profs. E. Demaine, D. Luebke A.Shehu, J-M. Lien and Prof. Wang s past lecture notes

Review for Midterm Exam

UCS-406 (Data Structure) Lab Assignment-1 (2 weeks)

CSC 8301 Design & Analysis of Algorithms: Linear Programming

Reference Sheet for CO142.2 Discrete Mathematics II


Theorem 2.9: nearest addition algorithm

Theory and Frontiers of Computer Science. Fall 2013 Carola Wenk

COMP 251 Winter 2017 Online quizzes with answers

( ) + n. ( ) = n "1) + n. ( ) = T n 2. ( ) = 2T n 2. ( ) = T( n 2 ) +1

End-Term Examination Second Semester [MCA] MAY-JUNE 2006

Test 1 Last 4 Digits of Mav ID # Multiple Choice. Write your answer to the LEFT of each problem. 2 points each t 1

A 0 A 1... A i 1 A i,..., A min,..., A n 1 in their final positions the last n i elements After n 1 passes, the list is sorted.

17/05/2018. Outline. Outline. Divide and Conquer. Control Abstraction for Divide &Conquer. Outline. Module 2: Divide and Conquer

Introduction to Computer Science

Divide-and-Conquer. The most-well known algorithm design strategy: smaller instances. combining these solutions

LECTURE 3 ALGORITHM DESIGN PARADIGMS

F falling factorial, 11. father, 139. Ferris wheel, 112. Fibonacci numbers, 34, 36, 224, , 277. finite automaton, deterministic, 191.

CAD Algorithms. Categorizing Algorithms

AP Computer Science 4325

CSC Design and Analysis of Algorithms. Lecture 4 Brute Force, Exhaustive Search, Graph Traversal Algorithms. Brute-Force Approach

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

Algorithms and Data Structures

Brute Force: Selection Sort

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

Total No. of Questions : 18] [Total No. of Pages : 02. M.Sc. DEGREE EXAMINATION, DEC First Year COMPUTER SCIENCE.

Chapter 4. Divide-and-Conquer. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

n 2 ( ) ( ) Ο f ( n) ( ) Ω B. n logn Ο

Review of course COMP-251B winter 2010

Algorithms. Algorithms ALGORITHM DESIGN

Greedy Algorithms 1 {K(S) K(S) C} For large values of d, brute force search is not feasible because there are 2 d {1,..., d}.

Cs502 Solved MCQS MidTerm

n 2 ( ) ( ) + n is in Θ n logn

CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2012 Thorsten Joachims. Lecture 25: Review and Open Problems

COE428 Lecture Notes Week 1 (Week of January 9, 2017)

& ( D. " mnp ' ( ) n 3. n 2. ( ) C. " n

Chapter 9 Graph Algorithms

Ph.D. Comprehensive Examination Design and Analysis of Algorithms

Chapter 9 Graph Algorithms

Transcription:

CLASS: II YEAR / IV SEMESTER CSE CS 6402-DESIGN AND ANALYSIS OF ALGORITHM UNIT I INTRODUCTION 1. What is performance measurement? 2. What is an algorithm? 3. How the algorithm is good? 4. What are the requirements of an algorithm? 5. Why to study an algorithm? 6. Define Algorithm Validation.(Nov/Dec-2012) 7. What is Euclid s algorithm? Give example. 8. What are the two main issues related to algorithms? 9. What are the important problem types? 10. Define Program. 11. Write the For LOOP general format. 12. What do you mean by linear search?(nov/dec-2011) 13. What is recursive algorithm? 14. Define Recurrence equation.(apr/may-2010) 15. What is space complexity?(nov/dec-2012) 16. What is time complexity? 17. What is basic operation? 18. Differentiate time complexity from space complexity.(apr/may-2010) 19. Give an example input size and basic operations. 20. Give the two major phases of performance evaluation 21. Define input size. 22. Define best-case step count. 23. Define worst-case step count. 24. Define average step count. 25. Define the asymptotic notation Big oh (O) 26. Define the asymptotic notation Omega ( Ω ). 27. Define the asymptotic t\notation theta ( Ѳ) 28. Establish the relationship between O and Ω.(Nov/Dec-2010) 29. Define little oh. 30. What is the properties of big-oh Notation.(Nov/Dec-2011). 31. Give some properties of asymptotic order of growth. 32. What is Order of Growth? Write Order of Growth Sequence. 33. What are exponential growth functions? 34. What is worst-case efficiency? 35. What is best-case efficiency? 36. What is average case efficiency? 37. Write basic asymptotic efficiency classes. 38. Write algorithm using iterative function to fine sum of n numbers. 39. Write an algorithm using Recursive function to fine sum of n numbers, 40. Write an Algorithm for Sequential Search. 41. What are the types of recurrence equations? 42. What are the algorithm design techniques? 43. Write steps for time efficiency of non recursive algorithms. 44. What are the plans for Analysis of Recursive Algorithms? 1. Describe the steps in analyzing & coding an algorithm. 2. Define the asymptotic notations used for best case average case and worst case analysis of Algorithms. 3. Discuss the fundamentals of analysis framework. (Or) Explain the general framework for analyzing the efficiency of algorithm. (Or) Explain the various criteria used for analyzing algorithms. 4. Define Asymptotic Notations. Distinguish between Asymptotic notation and conditional Asymptotic notation.(nov/dec-2011) 5. Explain how the removing condition is done from the conditional Asymptotic notation with example.(nov/dec-2011)

6. Describe briefly the notations of complexity of an algorithm. 7. Explain some of the problem types used in the design of algorithm 8. List the properties of various asymptotic notations.(or) Explain the various asymptotic notations used in algorithm design.(nov/dec- 2012)(Apr/May-2010) 9. Briefly explain how to solve recurrence equations with an example.(or) What are the various methods of solving recurrences? Explain them in Brief.(Nov/Dec-2011) 10. Describe about the analysis of linear search with an example, if any.(nov/dec-2011)(nov/dec-2012) 11. Derive the recurrence equation for Fibonacci series. Perform complexity analysis for the same. 12. Define Input Size. Write an algorithm for matrix addition and construct step table for it. 13. Explain with examples Big Oh, Omega, Theta and Little Oh asymptotic notations 14. Explain the basic efficiency classes. 15. Explain briefly the concept of algorithmic strategies. 16. What is Pseudo-code? Explain with an example. 17. Find the complexity C(n) of the algorithm for the worst case, best case and average case.(evaluate average case complexity for n=3,where n is the number of inputs. 18. Write an algorithm for a given numbers n to generate the nth number of the Fibonacci sequence. 19. Explain the necessary steps for analyzing efficiency of recursive algorithms with an example. 20. Show a tree structure for recursive calls made in the problem of Tower of Hanoi. 21. Design a non-recursive algorithm for computing the product of two n*n matrices and also find the time efficiency of algorithm. 22. Write the recursive and non-recursive versions of the factorial function. Examine how much time each function requires as n become large.(apr/may-2011) UNIT II BRUTE FORCE AND DIVIDE-AND-CONQUER 1. What is an optimal Solution?(Apr/May-2010) 2. What is Brute force technique? 3. Write Brute force for selection sort algorithm. 4. Write Brute force for string matching algorithm. 5. Brute-Force Polynomial Evaluation 6. Write Brute force for closest pair problem. 7. What are the strengths of Brute force? 8. What are the weaknesses of Brute force? 9. What is Exhaustive search? 10. Give an example of Exhaustive search? 11. What is Traveling Salesman problem?(nov/dec-2011) 12. What is Knapsack problem?(nov/dec-2011) 13. What is Assignment problem? 14. What are the disadvantages of Exhaustive search algorithm? 15. What is Divide and Conquer techniques? 16. Give an Example of Divide and Conquer. 17. Write Master Theorem Formula. 18. What is merge sort? 19. Write analysis of Merge sort. 20. What is Quick sort? 21. Write analysis of Quick sort. 22. What is binary search?

23. Write an algorithm for binary search. 24. Write analysis of Binary Search. 25. What are the limitations of Binary Search? 26. Trace the operation of the binary search algorithm for the input -15,- 6,,0,7,9,23,54,82,101,112,125,131,142,151 if you are searching for the element 9.(Nov/Dec-2012) 27. What is Multiplication of Large Integers Problem? 28. Give an Example for Multiplication of Large Integers Problem. 29. Give Brute force for conventional matrix multiplications. 30. Give Strassen s matrix multiplications. 31. Give an Analysis of Strassen s Algorithm. 32. What is Closest-Pair Problem by Divide-and-Conquer? 33. What is the Efficiency of the Closest-Pair Algorithm? 34. What is convex hull problem? 35. Give Quick hull Algorithm. 36. Write an efficiency of Quick hull Algorithm. 1. Write any four examples for Brute Force Approach. 2. Find the number of comparisons made by the sequential search in the worst & best case. 3. Give the time efficiency & Drawback of merge sort Algorithm. 4. What is the difference between DFS & BFS? 5. What is the Brute Force Algorithmic Strategy? 6. State the time complexity of following: (i) Bubble sort (ii) Selection sort (iii) Sequential search (iv) Brute force string matching 7. What are the features of Brute force String matching algorithm? 8. With Suitable algorithm,explain the problem of finding the maximum and minimum items in a set of n elements.(apr/may-2010) 9. Explain about Traveling Salesman Problem using Brute Force Techniques with an example. 10. Explain about Knapsack Problem using Brute Force Techniques with an example. 11. Explain about Assignment problem using Brute Force Techniques with an example. 12. Give any two strength & Weakness of Brute force algorithm. 13. Explain Brute force string matching algorithm. 14. Define Divide & Conquer Technique. 15. State Master s Theorem. 16. What is divide and Conquer strategy and explain the binary search with suitable example problem.(nov/dec-2011) 17. Define Merge sort & explain three steps of Merge sort. 18. Define Quick sort & explain three steps of Quick sort. 19. Define Binary Search. Explain the binary search algorithm with an example. And explain its best, average and worst case time complexities.(nov/dec-2012) 20. What are the applications of binary search? 21. State advantages & Disadvantages of binary search. 22. Explain Binary search tree. 23. Describe binary search tree with three traversal patterns? Give suitable example with neat diagram for all three traversal of binary search.(nov/dec-2011) 24. Discuss the algorithm for finding minimum cost binary search tree. Explain with suitable example.(nov/dec-2012) 25. What is the recurrence relation for divide & conquer? 26. Explain Merge Sort problem using divide and conquer technique. Give an example.(apr/may-2010)

27. Distinguish between quick sort and mergesort,and arrange the following in increasing order using merge sort(18,29,68,32,43,37,87,24,47,50)(nov/dec-2011) 28. Trace the steps of Mergesort algorithm for the elements 122,25,70,175,80,90,95,102,123 and also compute its time complexity.(nov/dec-2012) 29. Explain Multiplication of Large Integers using Divide and Conquer technique. 30. Explain Strassen s Matrix Multiplication using Divide and Conquer technique 31. Explain Closest-Pair and Convex-Hull Problems using Divide and Conquer technique. UNIT III DYNAMIC PROGRAMMING AND GREEDY TECHNIQUE 1. What is dynamic programming? 2. Compare divide & conquer and Dynamic programming. 3. How the problems can be solved using dynamic programming? 4. What is binomial-coefficient? Give an example. 5. Define Wars hall s algorithm. 6. Define Floyd s algorithm. 7. Give any two properties of dynamic programming approach. 8. Define principle of optimality.(nov/dec-2010) 9. What is OBST?(Apr/May-2010) 10. What is Greedy method? 11. State the general principle of Greedy algorithm.(nov/dec-2010) 12. Compare Divide and conquer with dynamic Programming.(Nov/Dec 2010) 13. Compare Greedy algorithm & Dynamic programming.(nov/dec- 2010)(Apr/May-2011) 14. Write an algorithm to find the shortest path between All pairs of nodes.(apr/may-2011) 15. What is graph cloning.(nov/dec-2011) 16. What is graph coloring strategy.(nov/dec-2012) 17. What is spanning tree? Give an example.(nov/dec-2011) 18. Define Multi stage graph.(apr/may-2010) 19. Define Prim s algorithm. 20. Define Kruskal s algorithm. 21. Define Dijikstra s shortest path algorithm. 22. How to obtain Huffman s Code? 23. What are the applications of Huffman trees? 24. What are the applications of spanning trees? 1. Explain Dynamic Programming techniques with suitable ecample. 2. How to compute Binomial-Coefficient Using Dynamic Programming technique? 3. What is Warshall s algorithm? Explain with an example. 4. Explain in detail about the multi-stage graphs with suitable example. 5. Explain in detail about the All-Pair shortest path problem with suitable example. (Apr/May-2010)(Nov/Dec-2010) 6. What is Floyd s algorithm? Explain with an example. (Nov/Dec 2009,2011) 7. Explain in detail about the optimal binary search trees with an example.(apr/may 2011) 8. Discuss the use of Greedy algorithm in solving knapsack problem. 9. Describe about the traveling salesman problem and discuss how to solve it using dynamic programming.(apr/may-2010)(nov/dec-2012)

10. Describe about the 0/1 knapsack problem and discuss how to solve it using dynamic programming. (Nov/Dec 2008,2010,2011) 11. Define greedy method and explain in detail. 12. Explain in detail about the Prims algorithm. 13. Construct a minimum spanning tree using Kruskals algorithm with your own example. 14. Explain in detail about the Dijkistrass algorithm 15. Explain in detail about the single source shortest path algorithm. 16. Explain in detail about the shortest path problem. 17. Explain in details about Huffman Tree Algorithm with suitable example. UNIT IV ITERATIVE IMPROVEMENTS 1. What is the main concept behind iterative improvement techniques? 2. Give an example of iterative improvements. 3. What is a simplex method state? 4. What is linear programming? 5. What is feasible, optimal and infeasible solution? 6. What is meant by level line? 7. What is standard form? 8. What are the steps involved in simplex method? 9. What is Maximum-Flow problem? 10. What are the properties of maximum-flow problem? 11. What is flow network? 12. What is flow-conservation requirement? 13. What is flow augmenting? 14. What is augmenting-path method or Ford Fulkerson method? 15. What is shortest-augmenting-path or First-labeled-first scanned algorithm? 16. What is cut? 17. State Max-Flow Min-Cut Theorem. 18. What is matching in a graph? 19. What is maximum matching? 20. What is bipartite graph? 21. When the graphs say 2-colorable? 22. What is maximum cardinality matching? 23. When the matching M is maximal? 24. State Stable Marriage Problem. 25. When marriage matching M is called stable? 26. When marriage matching M is called unstable? 1. Explain in details about iterative improvement techniques with suitable examples. 2. Explain about simplex method concepts with an example. 3. State and Prove Geometric Interpretation of Linear Programming. 4. State and Prove Extreme Point Theorem. 5. Describe about the maximum-flow problem and illustrate with example. 6. Write an algorithm to find Shortest Augmenting Path. 7. State and Prove Max-Flow Min-Cut Theorem. 8. Explain about maximum matching in bipartite graphs. 9. Prove the theorem for matching M is maximal. 10. Write an Algorithm for maximum-bipartite-matching of G. 11. Explain the concepts of stable marriage problem with suitable example.

UNIT V COPING WITH THE LIMITATIONS OF ALGORITHM POWER 1. What is trivial lower bound? 2. What is a Decision tree? 3. What is information-theoretic lower bound? 4. Define Class P. 5. Define Class NP. 6. Define Class NP Complete.(Nov/Dec-2010) 7. What is tractable and intractable problem? 8. What is halting problem? 9. Define Backtracking. 10. Explain the idea behind backtracking.(nov/dec-2010) 11. What are the applications of backtracking? 12. What are the algorithm design techniques? 13. Define n-queens problem. 14. Define Hamiltonian Circuit problem. 15. Define sum of subset problem. 16. What is state space tree? 17. Define Branch & Bound meth 18. Define assignment problem. 19. What is promising & non-promising node? 20. Define Knapsack s problem. 21. Define Travelling salesman problem. 22. State principle of backtracking. 23. Compare Backtracking & Branch and Bound techniques with an example. 24. What are the applications of branch & bound? 25. What are the examples of branch & bound? 26. In Backtracking method, how the problem can be categorized? 27. How should be determine the solution in backtracking algorithm? 28. What is a FIFO branch and Bound Algorithm.(Apr/May-2010) 29. Obtain all possible solutions to 4-Queen s problem. 30. Generate at least 3-solutions for 5-Queen s problem. 31. Draw a pruned state space tree for a given sum of subset problem s={3,4,5,6} and d=13 32. What is Approximation Algorithm? 33. What is NP-hard Problem?(Nov/Dec-2010) 34. Define NP-Completeness.(Nov/Dec-2011) 35. What is the property of NP-Complete problem?(nov/dec-2012) 32. Explain about Limitations of Algorithm Power-Lower-Bound Arguments. 33. Explain Decision Trees concepts. 34. Explain Class P, NP and NP Complete problem with an example. 35. Write Short notes on NP hard and NP-Completeness.(Apr/May-2012) 36. Explain Backtracking with suitable example. 37. State and Solve n-queen Problem using Backtracking technique.(apr/may-2010)(apr/may-2011) 38. How does backtracking work on the 8 Queens problem with suitable example?(nov/dec-2011)(nov/dec-2012) 39. Explain elaborately recursive backtracking algorithm?(nov/dec-2011) 40. What is state Space tree? Explain with one example. 41. What is Hamiltonian problem? Explain with an example using backtracking. (Nov/Dec-2011). 42. Explain Subset-Sum problem with suitable example. 43. Explain Branch and bound design technique with suitable example. 44. Compare the contrast LC-BB and FIFO BB.(Nov/Dec-2012) 45. Explain Assignment problem with an example.

46. Explain Knapsack Problem using branch and bound with an example.(nov/dec-2010)(apr/may-2010)(nov/dec-2012) 47. Explain Traveling Salesman Problem with an example using branch and bound technique. 48. What is Approximation Algorithm? Write Short notes on it. 49. Explain NP-hard Problem with suitable example. 50. Explain Travelling salesman problem using Approximation Algorithm. 51. Explain Knapsack problem using Approximation Algorithm.