SlideShare a Scribd company logo
1 of 5
1
DEPARTMENT OF INFORMATION TECHNOLOGY
Subject Code : CS8451 Subject Name : Design & Analysis ofAlgorithms
Class/ Sem : II IT / II Sem Subject In – Charge : Dr. P. Subathra, Prof./IT
QUESTION BANK
UNIT II
BRUTE FORCE AND DIVIDE-AND-CONQUER
Brute Force – Computing an – String Matching - Closest-Pair and Convex-Hull Problems -
Exhaustive Search - Travelling Salesman Problem - Knapsack Problem - Assignment problem. Divide
and Conquer Methodology – Binary Search – Merge sort – Quick sort – Heap Sort - Multiplication of
Large Integers – Closest-Pair and Convex - Hull Problems.
Q. No Question
Marks
Knowled
geLevel
Number
of
Times
inAU
PART - A
BRUTE FORCE
1. Write the advantages of insertion sort. (R 13 NOV/ DEC 2017)
BRUTE FORCE - STRING MATCHING
2. Write the brute force algorithm to string matching. (R 17 APR/MAY2019)
BRUTE FORCE - CLOSEST-PAIRAND CONVEX-HULLPROBLEMS
3. What is the closest – pair problem? (R 13 MAY/JUN 2016)
What is closest-pair problem? (R 13 APR/MAY 2017)
What is the closest-pair problem? (R13 APR/MAY2019)
4. Write an algorithm for brute force closest- pair problem. (R 13 NOV/ DEC 2016)
EXHAUSTIVE SEARCH
5. What is an exhaustive search? (R13 APR/MAY2018)
DIVIDE AND CONQUERMETHODOLOGY
2
Give the general strategy of Divide and Conquer Method. (R 13 MAY/JUN 2016)
Give the general plan of divide and conquer algorithms. (R 13 NOV/ DEC 2017)
Give the general strategy of Divide and Conquer Method. (R13 APR/MAY2019)
State Master's Theorem. (R13 APR/MAY2018)
DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH
6. Derive the complexity of Binary Search algorithm. (R 13 APR/MAY 2015)
7. What is worst case complexity of binary search? (R 13 NOV/ DEC 2016)
DIVIDE AND CONQUER METHODOLOGY - MERGE SORT
8. What is the time and space complexity of Merge sort? (R 17 APR/MAY2019)
Q. No Question
Marks
Knowled
geLevel
Number
of
Times
inAU
PART - B
BRUTE FORCE - STRING MATCHING
1. Solve the following using Brute-Force algorithm: (R 13 APR/MAY 2015) (10)
Find whether the given string follows the specific pattern and return 0 or 1
accordingly.
Examples:
a. Pattern:“abba”, input : “redblueredblue” should return 1
b. Pattern:“aaaa”,input: “asdasdasdasd” should return 1
c. Pattern:“aabb”, input: “xyzabcxyzabc” should return 0
2. Solve the following using Brute – Force algorithm: (R 13 APR/MAY 2017)
(13) Find whether the given string follows the specifid pattern and return 0 or 1
accordingly.
Examples:
Pattern:“abba”, input : “redblueredblue” should return 1
Pattern:“aaaa”,input: “asdasdasdasd” should return 1
Pattern:“aabb”, input: “xyzabcxyzabc” should return 0
BRUTE FORCE - CLOSEST-PAIRPROBLEM
3. Explain the Bruteforce method to find the two closest points in a set of n points in
k-dimensional space. (R 13 NOV/ DEC 2017) (13)
4. BRUTE FORCE - CONVEX-HULL PROBLEM
3
5. What is the convex hull problem? Explain the brute force approach to solve
convex-hull with an example. derive the time complexity. (R 17 APR/MAY
2019) (2+7+4)
EXHAUSTIVE SEARCH
EXHAUSTIVE SEARCH - TRAVELLING SALESMAN PROBLEM
6. Find all the solution to the travelling salesman problem (cities and distances
shown below) by exhaustive search. Give the optimal solution. (R 13 MAY/JUN
2016) (16)
7. Find all the solution to the travelling salesman problem (cities and distances
shown below) by exhaustive search. Give the optimal solution. (R13 APR/MAY
2019) (13)
DIVIDE AND CONQUERMETHODOLOGY
Give the running time equation for divide and conquer algorithms. (R 08 APR/ MAY 2011)
Write short notes on : (R 08 APR/ MAY 2011)
d. Divide and Conquer algorithms (3)
e. Randomized algorithms (3)
What is Divide and Conquer strategy. Why recursion is most suited for divide and conquers? (R 08 NOV/ DEC
2015) (6)
DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH
4
8. If you have to solve the searching problem for a list of n numbers, how can you
take advantage of the fact that the list is known to be sorted? Give separate
answers for:
Lists represented as arrays.
Lists represented as linked lists.
Compare the time complexities involved in the analysis of both the algorithms. (R
13 APR/MAY 2015) (16)
9. Write the algorithm to perform Binary Search and compute its run time
complexity. (R 13 NOV/ DEC 2015) (8)
10. What is Divide and Conquer strategy and explain the binary search with suitable
example problem. (R 13 APR/MAY 2017) (13)
11. Write the algorithm to perform Binary Search and compute run time complexity.
(R13 APR/MAY2019) (7)
DIVIDE AND CONQUER METHODOLOGY - MERGE SORT
12. Derive the worst case analysis of Merge Sort using suitable illustrations. (R 13
APR/MAY 2015) (8)
13. State and Explain the Merge Sort algorithm and Give the recurrence relation and
efficiency. (R 13 MAY/JUN 2016) (16)
14. Explain the working of Merge Sort Algorithm with an example. (R 13 NOV/ DEC
2017) (13)
15. Discuss the running time of Divide-and-Conquer merge sort algorithm. (R 08
NOV/ DEC 2010) (8)
16. Analyze merge sort for the following numbers using divide and conquer strategy
25, 3, 45, 789, 87, 56, 47, 65, 30, 59, 56, 24. (R 08 NOV/ DEC 2013) (16)
DIVIDE AND CONQUERMETHODOLOGY - QUICK SORT
17. Give the algorithm for Quicksort. With an example show that Quicksort is not a
stable sorting algorithm. (R 13 NOV/ DEC 2016) (16)
18. Write the quick sort algorithm and explain it with an example. Derive the worst
case and average case time complexity. (R 17 APR/MAY2019) (5+4+4)
DIVIDE AND CONQUERMETHODOLOGY - MULTIPLICATIONOF LARGE INTEGERS
19. Explain the method used for performing Multiplication of two large integers.
Explain how Divide and Conquer Method can be used to solve the same. (R 13
MAY/JUN 2016) (16)
20. Formulate an algorithm to multiply n-digit integers using divide and conquer
approach. (R 08 NOV/ DEC 2009) (8)
5
DIVIDE AND CONQUERMETHODOLOGY - CONVEX- HULL PROBLEMS
21. Explain the convex hull problem and the solution involved behind it. (R 13
APR/MAY 2015) (6)
22. Write down the algorithm to construct a convex hull based on divide and conquer
strategy. (R 13 NOV/ DEC 2015) (8)
23. Write down the algorithm to construct a convex hull based divide and conquer
strategy. (R13 APR/MAY2019)(7 )
Q. No Question
Marks
Knowled
geLevel
Number
of
Times
inAU
PART - C
DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH
1. Consider the problem of finding the smallest and largest elements in an array of n
numbers.
Design a presorting-based algorithm for solving this problem and determine its
efficiency class. (R13 APR/MAY2018) (7)
Compare the efficiency of the three algorithms: (R13 APR/MAY2018) (8)
The Brute Force Algorithm, This presorting-based algorithm and
The divide and conquer algorithm
DIVIDE AND CONQUER METHODOLOGY - MERGE SORT
2. Explain the Merge Sort algorithm with an example. (R13 APR/MAY2018) (13)
DIVIDE AND CONQUERMETHODOLOGY - QUICK SORT
3. Write an algorithm for quick sort and write its time complexity with example list
as: 5, 3, 1, 9, 8, 2, 4, 7. (R 13 APR/MAY 2017) (15)
4. Write the algorithm for quick sort. Provide a complete analysis of quick sort for
the given set of numbers 12, 33, 23, 43, 44, 55, 64, 77, and 76. (R13 NOV/ DEC
2018) (13)
5. Write an algorithm for Quick sort and write its time complexity with example list
are 5, 3, 1, 9, 8, 2, 4, 7. (R13 APR/MAY2019) (15)
Staff In – Charge Subject Matter Expert HoD/IT

More Related Content

What's hot

Cs2303 theory of computation may june 2016
Cs2303 theory of computation may june 2016Cs2303 theory of computation may june 2016
Cs2303 theory of computation may june 2016appasami
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...appasami
 
Cs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperCs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperappasami
 
Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017appasami
 
Acceptability Paradigms in Abstract Argumentation Frameworks
Acceptability Paradigms in Abstract Argumentation FrameworksAcceptability Paradigms in Abstract Argumentation Frameworks
Acceptability Paradigms in Abstract Argumentation FrameworksCarlo Taticchi
 
Cs6503 theory of computation november december 2016
Cs6503 theory of computation november december 2016Cs6503 theory of computation november december 2016
Cs6503 theory of computation november december 2016appasami
 
CS2303 Theory of computation April may 2015
CS2303 Theory of computation April may  2015CS2303 Theory of computation April may  2015
CS2303 Theory of computation April may 2015appasami
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchHema Kashyap
 
20131216 Stat Journal
20131216 Stat Journal20131216 Stat Journal
20131216 Stat JournalMed_KU
 

What's hot (17)

Cs2303 theory of computation may june 2016
Cs2303 theory of computation may june 2016Cs2303 theory of computation may june 2016
Cs2303 theory of computation may june 2016
 
Cs6503 theory of computation november december 2015 be cse anna university q...
Cs6503 theory of computation november december 2015  be cse anna university q...Cs6503 theory of computation november december 2015  be cse anna university q...
Cs6503 theory of computation november december 2015 be cse anna university q...
 
A Polynomial-Space Exact Algorithm for TSP in Degree-5 Graphs
A Polynomial-Space Exact Algorithm for TSP in Degree-5 GraphsA Polynomial-Space Exact Algorithm for TSP in Degree-5 Graphs
A Polynomial-Space Exact Algorithm for TSP in Degree-5 Graphs
 
Cs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paperCs6503 theory of computation may june 2016 be cse anna university question paper
Cs6503 theory of computation may june 2016 be cse anna university question paper
 
Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017Cs6503 theory of computation april may 2017
Cs6503 theory of computation april may 2017
 
Acceptability Paradigms in Abstract Argumentation Frameworks
Acceptability Paradigms in Abstract Argumentation FrameworksAcceptability Paradigms in Abstract Argumentation Frameworks
Acceptability Paradigms in Abstract Argumentation Frameworks
 
Cs6503 theory of computation november december 2016
Cs6503 theory of computation november december 2016Cs6503 theory of computation november december 2016
Cs6503 theory of computation november december 2016
 
algo1
algo1algo1
algo1
 
Cs 73
Cs 73Cs 73
Cs 73
 
CS2303 Theory of computation April may 2015
CS2303 Theory of computation April may  2015CS2303 Theory of computation April may  2015
CS2303 Theory of computation April may 2015
 
Topological sort
Topological sortTopological sort
Topological sort
 
Topoloical sort
Topoloical sortTopoloical sort
Topoloical sort
 
Paper
PaperPaper
Paper
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Lecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star searchLecture 21 problem reduction search ao star search
Lecture 21 problem reduction search ao star search
 
20131216 Stat Journal
20131216 Stat Journal20131216 Stat Journal
20131216 Stat Journal
 
Model toc
Model tocModel toc
Model toc
 

Similar to 2. cs8451 daa anna univ question bank unit 2

CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questioCS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questioKarthik Venkatachalam
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...vtunotesbysree
 
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUSQUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUSJAMBIKA
 
CS 542 -- Query Execution
CS 542 -- Query ExecutionCS 542 -- Query Execution
CS 542 -- Query ExecutionJ Singh
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxcuddietheresa
 
ARIES: An Eclipse Plug-in To Support Extract Class Refactoring
ARIES: An Eclipse Plug-in To Support Extract Class RefactoringARIES: An Eclipse Plug-in To Support Extract Class Refactoring
ARIES: An Eclipse Plug-in To Support Extract Class RefactoringFabio Palomba
 
Data Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxData Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxsimonithomas47935
 
R and Visualization: A match made in Heaven
R and Visualization: A match made in HeavenR and Visualization: A match made in Heaven
R and Visualization: A match made in HeavenEdureka!
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxcarolinef5
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxdonaldp2
 

Similar to 2. cs8451 daa anna univ question bank unit 2 (20)

4. cs8451 daa anna univ question bank unit 4
4. cs8451 daa anna univ question bank unit 44. cs8451 daa anna univ question bank unit 4
4. cs8451 daa anna univ question bank unit 4
 
5. cs8451 daa anna univ question bank unit 5
5. cs8451 daa anna univ question bank unit 55. cs8451 daa anna univ question bank unit 5
5. cs8451 daa anna univ question bank unit 5
 
Anna University Question Bank Unit I
Anna University Question Bank Unit IAnna University Question Bank Unit I
Anna University Question Bank Unit I
 
Anna University Question Bank Unit I
Anna University Question Bank Unit IAnna University Question Bank Unit I
Anna University Question Bank Unit I
 
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questioCS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio
CS 6402 – DESIGN AND ANALYSIS OF ALGORITHMS questio
 
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...VTU 1ST SEM  PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
VTU 1ST SEM PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPERS OF JUNE-2015 & ...
 
2nd Semester M Tech: Structural Engineering (June-2015) Question Papers
2nd  Semester M Tech: Structural Engineering  (June-2015) Question Papers2nd  Semester M Tech: Structural Engineering  (June-2015) Question Papers
2nd Semester M Tech: Structural Engineering (June-2015) Question Papers
 
Lesson 6 recursion
Lesson 6  recursionLesson 6  recursion
Lesson 6 recursion
 
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUSQUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
QUESTION BANK FOR ANNA UNNIVERISTY SYLLABUS
 
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...2nd  Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
2nd Semester M Tech: Computer Science and Engineering (Jun-2016) Question Pa...
 
CS 542 -- Query Execution
CS 542 -- Query ExecutionCS 542 -- Query Execution
CS 542 -- Query Execution
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
 
ARIES: An Eclipse Plug-in To Support Extract Class Refactoring
ARIES: An Eclipse Plug-in To Support Extract Class RefactoringARIES: An Eclipse Plug-in To Support Extract Class Refactoring
ARIES: An Eclipse Plug-in To Support Extract Class Refactoring
 
Data Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxData Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docx
 
R and Visualization: A match made in Heaven
R and Visualization: A match made in HeavenR and Visualization: A match made in Heaven
R and Visualization: A match made in Heaven
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
 
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docxDescriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
Descriptionsordernametypeformatvallabvarlab1location_idint8.0gNum.docx
 
Recursive
RecursiveRecursive
Recursive
 
Daa tutorial
Daa tutorialDaa tutorial
Daa tutorial
 
Cs8251 faq1
Cs8251 faq1Cs8251 faq1
Cs8251 faq1
 

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai (20)

TestFile
TestFileTestFile
TestFile
 
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
 
2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS
 
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
 
1. 6 doubly linked list
1. 6 doubly linked list1. 6 doubly linked list
1. 6 doubly linked list
 
1. 5 Circular singly linked list
1. 5 Circular singly linked list1. 5 Circular singly linked list
1. 5 Circular singly linked list
 
1. 4 Singly linked list deletion
1. 4 Singly linked list deletion1. 4 Singly linked list deletion
1. 4 Singly linked list deletion
 
1. 3 singly linked list insertion 2
1. 3 singly linked list   insertion 21. 3 singly linked list   insertion 2
1. 3 singly linked list insertion 2
 
1. 2 Singly Linked List
1. 2 Singly Linked List1. 2 Singly Linked List
1. 2 Singly Linked List
 
1. C Basics for Data Structures Bridge Course
1. C Basics for Data Structures   Bridge Course1. C Basics for Data Structures   Bridge Course
1. C Basics for Data Structures Bridge Course
 
Approximation Algorithms TSP
Approximation Algorithms   TSPApproximation Algorithms   TSP
Approximation Algorithms TSP
 
Optimal binary search tree dynamic programming
Optimal binary search tree   dynamic programmingOptimal binary search tree   dynamic programming
Optimal binary search tree dynamic programming
 
The stable marriage problem iterative improvement method
The stable marriage problem iterative improvement methodThe stable marriage problem iterative improvement method
The stable marriage problem iterative improvement method
 
Maximum matching in bipartite graphs iterative improvement method
Maximum matching in bipartite graphs   iterative improvement methodMaximum matching in bipartite graphs   iterative improvement method
Maximum matching in bipartite graphs iterative improvement method
 
Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)
 
Knapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom upKnapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom up
 
Huffman tree coding greedy approach
Huffman tree coding  greedy approachHuffman tree coding  greedy approach
Huffman tree coding greedy approach
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Multiplication of integers & strassens matrix multiplication subi notes
Multiplication of integers & strassens matrix multiplication   subi notesMultiplication of integers & strassens matrix multiplication   subi notes
Multiplication of integers & strassens matrix multiplication subi notes
 

Recently uploaded

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

2. cs8451 daa anna univ question bank unit 2

  • 1. 1 DEPARTMENT OF INFORMATION TECHNOLOGY Subject Code : CS8451 Subject Name : Design & Analysis ofAlgorithms Class/ Sem : II IT / II Sem Subject In – Charge : Dr. P. Subathra, Prof./IT QUESTION BANK UNIT II BRUTE FORCE AND DIVIDE-AND-CONQUER Brute Force – Computing an – String Matching - Closest-Pair and Convex-Hull Problems - Exhaustive Search - Travelling Salesman Problem - Knapsack Problem - Assignment problem. Divide and Conquer Methodology – Binary Search – Merge sort – Quick sort – Heap Sort - Multiplication of Large Integers – Closest-Pair and Convex - Hull Problems. Q. No Question Marks Knowled geLevel Number of Times inAU PART - A BRUTE FORCE 1. Write the advantages of insertion sort. (R 13 NOV/ DEC 2017) BRUTE FORCE - STRING MATCHING 2. Write the brute force algorithm to string matching. (R 17 APR/MAY2019) BRUTE FORCE - CLOSEST-PAIRAND CONVEX-HULLPROBLEMS 3. What is the closest – pair problem? (R 13 MAY/JUN 2016) What is closest-pair problem? (R 13 APR/MAY 2017) What is the closest-pair problem? (R13 APR/MAY2019) 4. Write an algorithm for brute force closest- pair problem. (R 13 NOV/ DEC 2016) EXHAUSTIVE SEARCH 5. What is an exhaustive search? (R13 APR/MAY2018) DIVIDE AND CONQUERMETHODOLOGY
  • 2. 2 Give the general strategy of Divide and Conquer Method. (R 13 MAY/JUN 2016) Give the general plan of divide and conquer algorithms. (R 13 NOV/ DEC 2017) Give the general strategy of Divide and Conquer Method. (R13 APR/MAY2019) State Master's Theorem. (R13 APR/MAY2018) DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH 6. Derive the complexity of Binary Search algorithm. (R 13 APR/MAY 2015) 7. What is worst case complexity of binary search? (R 13 NOV/ DEC 2016) DIVIDE AND CONQUER METHODOLOGY - MERGE SORT 8. What is the time and space complexity of Merge sort? (R 17 APR/MAY2019) Q. No Question Marks Knowled geLevel Number of Times inAU PART - B BRUTE FORCE - STRING MATCHING 1. Solve the following using Brute-Force algorithm: (R 13 APR/MAY 2015) (10) Find whether the given string follows the specific pattern and return 0 or 1 accordingly. Examples: a. Pattern:“abba”, input : “redblueredblue” should return 1 b. Pattern:“aaaa”,input: “asdasdasdasd” should return 1 c. Pattern:“aabb”, input: “xyzabcxyzabc” should return 0 2. Solve the following using Brute – Force algorithm: (R 13 APR/MAY 2017) (13) Find whether the given string follows the specifid pattern and return 0 or 1 accordingly. Examples: Pattern:“abba”, input : “redblueredblue” should return 1 Pattern:“aaaa”,input: “asdasdasdasd” should return 1 Pattern:“aabb”, input: “xyzabcxyzabc” should return 0 BRUTE FORCE - CLOSEST-PAIRPROBLEM 3. Explain the Bruteforce method to find the two closest points in a set of n points in k-dimensional space. (R 13 NOV/ DEC 2017) (13) 4. BRUTE FORCE - CONVEX-HULL PROBLEM
  • 3. 3 5. What is the convex hull problem? Explain the brute force approach to solve convex-hull with an example. derive the time complexity. (R 17 APR/MAY 2019) (2+7+4) EXHAUSTIVE SEARCH EXHAUSTIVE SEARCH - TRAVELLING SALESMAN PROBLEM 6. Find all the solution to the travelling salesman problem (cities and distances shown below) by exhaustive search. Give the optimal solution. (R 13 MAY/JUN 2016) (16) 7. Find all the solution to the travelling salesman problem (cities and distances shown below) by exhaustive search. Give the optimal solution. (R13 APR/MAY 2019) (13) DIVIDE AND CONQUERMETHODOLOGY Give the running time equation for divide and conquer algorithms. (R 08 APR/ MAY 2011) Write short notes on : (R 08 APR/ MAY 2011) d. Divide and Conquer algorithms (3) e. Randomized algorithms (3) What is Divide and Conquer strategy. Why recursion is most suited for divide and conquers? (R 08 NOV/ DEC 2015) (6) DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH
  • 4. 4 8. If you have to solve the searching problem for a list of n numbers, how can you take advantage of the fact that the list is known to be sorted? Give separate answers for: Lists represented as arrays. Lists represented as linked lists. Compare the time complexities involved in the analysis of both the algorithms. (R 13 APR/MAY 2015) (16) 9. Write the algorithm to perform Binary Search and compute its run time complexity. (R 13 NOV/ DEC 2015) (8) 10. What is Divide and Conquer strategy and explain the binary search with suitable example problem. (R 13 APR/MAY 2017) (13) 11. Write the algorithm to perform Binary Search and compute run time complexity. (R13 APR/MAY2019) (7) DIVIDE AND CONQUER METHODOLOGY - MERGE SORT 12. Derive the worst case analysis of Merge Sort using suitable illustrations. (R 13 APR/MAY 2015) (8) 13. State and Explain the Merge Sort algorithm and Give the recurrence relation and efficiency. (R 13 MAY/JUN 2016) (16) 14. Explain the working of Merge Sort Algorithm with an example. (R 13 NOV/ DEC 2017) (13) 15. Discuss the running time of Divide-and-Conquer merge sort algorithm. (R 08 NOV/ DEC 2010) (8) 16. Analyze merge sort for the following numbers using divide and conquer strategy 25, 3, 45, 789, 87, 56, 47, 65, 30, 59, 56, 24. (R 08 NOV/ DEC 2013) (16) DIVIDE AND CONQUERMETHODOLOGY - QUICK SORT 17. Give the algorithm for Quicksort. With an example show that Quicksort is not a stable sorting algorithm. (R 13 NOV/ DEC 2016) (16) 18. Write the quick sort algorithm and explain it with an example. Derive the worst case and average case time complexity. (R 17 APR/MAY2019) (5+4+4) DIVIDE AND CONQUERMETHODOLOGY - MULTIPLICATIONOF LARGE INTEGERS 19. Explain the method used for performing Multiplication of two large integers. Explain how Divide and Conquer Method can be used to solve the same. (R 13 MAY/JUN 2016) (16) 20. Formulate an algorithm to multiply n-digit integers using divide and conquer approach. (R 08 NOV/ DEC 2009) (8)
  • 5. 5 DIVIDE AND CONQUERMETHODOLOGY - CONVEX- HULL PROBLEMS 21. Explain the convex hull problem and the solution involved behind it. (R 13 APR/MAY 2015) (6) 22. Write down the algorithm to construct a convex hull based on divide and conquer strategy. (R 13 NOV/ DEC 2015) (8) 23. Write down the algorithm to construct a convex hull based divide and conquer strategy. (R13 APR/MAY2019)(7 ) Q. No Question Marks Knowled geLevel Number of Times inAU PART - C DIVIDE AND CONQUERMETHODOLOGY – BINARYSEARCH 1. Consider the problem of finding the smallest and largest elements in an array of n numbers. Design a presorting-based algorithm for solving this problem and determine its efficiency class. (R13 APR/MAY2018) (7) Compare the efficiency of the three algorithms: (R13 APR/MAY2018) (8) The Brute Force Algorithm, This presorting-based algorithm and The divide and conquer algorithm DIVIDE AND CONQUER METHODOLOGY - MERGE SORT 2. Explain the Merge Sort algorithm with an example. (R13 APR/MAY2018) (13) DIVIDE AND CONQUERMETHODOLOGY - QUICK SORT 3. Write an algorithm for quick sort and write its time complexity with example list as: 5, 3, 1, 9, 8, 2, 4, 7. (R 13 APR/MAY 2017) (15) 4. Write the algorithm for quick sort. Provide a complete analysis of quick sort for the given set of numbers 12, 33, 23, 43, 44, 55, 64, 77, and 76. (R13 NOV/ DEC 2018) (13) 5. Write an algorithm for Quick sort and write its time complexity with example list are 5, 3, 1, 9, 8, 2, 4, 7. (R13 APR/MAY2019) (15) Staff In – Charge Subject Matter Expert HoD/IT