Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Daa Questions
DAA QUESTION PAPER
Uploaded by
kanishkk070
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save DAA QUESTIONS For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Daa Questions
DAA QUESTION PAPER
Uploaded by
kanishkk070
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save DAA QUESTIONS For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
BML MUNJAL IVERSITY. : = 3 END-SEM EXAMINATION ~ MAY 2019 Course:- CSE2012 - Design and Analysis of Algorithms Programme: B.Tech (GSC/CSE) Semester: IV Duration: 3 Hrs Max. Marks: 60 Weightage: 40% Instructions: > All Questions are compulsory. > Start each answer on a fresh page and number your answers clearly. Answer all parts of the same Question together and in sequence. > Calculator is not required. a4. | Consider the following weighted graph. Represent the graph with a suitable data structure. Apply Prim's algorithm to find the minimum spanning tree. As you proceed, show the status of the priority queue at A | each step as you grow the partial tree to a full solution. B | Given a weighted connected directed graph in the form of a square weight matrix W. All weights are positive. Write an algorithm that will generete a square binary matrix B having the same dimension as | » marks W. The matrix B will have @ one (1) for entry (Ij) if there is @ path from node / to node J in the graph. Otherwise, the entry will be a zero (0) ‘Comment on the time and space complexity of your solution. © | Design a divide and conquer algorithm to find the maximum and minimum of an unsorted array of n | (+25 elements. Analyze the time complexity of the algorithm and show that itis better than the brute force | marks method. D | With suitable example, explain how a non-deterministic alaonithm differs from @ deterministic algorithm. | § marks 2. | i) Consider the following sequence of matrices A B C D E whose dimensions are 4x5, 5x3, 3x2, 2x7 and 7x2 respectively, sierra How many different ways are there to compute the product of the given § matrices? Provide a ‘dynamic programming solution for finding the optimal parenthesization of the given sequence of matrices. marks[Tif im Boyar-Moore aking matching algorithm, a pattem is preprocessed before being matched with a | given text. Write the algorithm for preprocessing the pattern. Also state and justify the worst case time complexity of the algorithm. a3. | ii) Compute the nih Fibonacci number by writing two algorithms as Tolows — 2) a recursive algorithm without using dynamic programming b) a dynamic programming algorithm with memoization. Crically comment on the time requirements of both the approsches end justify that memoization approach is far better in reducing the time required for finding the solution. Explain how Becktracking, as a general problem solving approach, can be used to cope with computationally hard problems. You must cite suitable example (e.g. N-queen problem) and discuss in the context of that example problem. (5+5)=10 marks ii) Union-Find algorithm is a wellknown approach for representing disjoint set data structures. Discuss in detail, how different sets can be represented and various operations (e.g. makeset, union, find) can be performed in those sets. Clearly explain the time complexity of each of the operations. ‘A sequence of ten square matrices, each having dimension nxn for n=2k (k is a positive integer), is to be multiplied. Propose a divide and conquer algorithm for accomplishing the task. Analyze the time complexity by stating the recurrence. 5+(942)=10 as| i How do we prove the correctness of a loop in an algorithm? Justify by stating all the necessary properties in the context of the following problem — find the sum of all the elements of an array of integers. State the Vertex cover problem and prove thet Vertex-cover is NP-complete. 5+5=10
You might also like
Mtech Cse 1 Sem Advanced Algorithms v34 2012
PDF
No ratings yet
Mtech Cse 1 Sem Advanced Algorithms v34 2012
4 pages
DAA Assignment1
PDF
No ratings yet
DAA Assignment1
8 pages
18CS42 Design and Analysis of Algorithms
PDF
No ratings yet
18CS42 Design and Analysis of Algorithms
16 pages
Mrcet R22 Ii - I QB
PDF
No ratings yet
Mrcet R22 Ii - I QB
38 pages
MCS 211 (2025)
PDF
No ratings yet
MCS 211 (2025)
5 pages
ADA Pyqs
PDF
No ratings yet
ADA Pyqs
32 pages
ADA - Analysis and Design of Algorithms PDF
PDF
No ratings yet
ADA - Analysis and Design of Algorithms PDF
22 pages
Algorithms MCQ
PDF
No ratings yet
Algorithms MCQ
23 pages
Analysis and Design of Algorithm Paper 3
PDF
No ratings yet
Analysis and Design of Algorithm Paper 3
2 pages
MCA - NEW - Assignment - Ist Semester-2025
PDF
No ratings yet
MCA - NEW - Assignment - Ist Semester-2025
16 pages
Daa Question Papers
PDF
No ratings yet
Daa Question Papers
9 pages
ADA PYQ's
PDF
No ratings yet
ADA PYQ's
25 pages
Daa 5402
PDF
No ratings yet
Daa 5402
13 pages
Ada See
PDF
No ratings yet
Ada See
4 pages
DAA All Year Question Paper
PDF
No ratings yet
DAA All Year Question Paper
25 pages
Daa Question Bank Ad3351
PDF
No ratings yet
Daa Question Bank Ad3351
12 pages
2015JUNEMIS511
PDF
No ratings yet
2015JUNEMIS511
5 pages
CS3401 - Algorithms - QB - EVEN - AY - 24 - 25 - Completed
PDF
No ratings yet
CS3401 - Algorithms - QB - EVEN - AY - 24 - 25 - Completed
6 pages
July 2022 End Sem DAA
PDF
No ratings yet
July 2022 End Sem DAA
4 pages
Daa. .
PDF
No ratings yet
Daa. .
6 pages
Computer Course Daa
PDF
No ratings yet
Computer Course Daa
8 pages
2024-25 BCS401 ADA Question Bank
PDF
No ratings yet
2024-25 BCS401 ADA Question Bank
11 pages
ADA Major 2022
PDF
No ratings yet
ADA Major 2022
6 pages
Daa Cie25
PDF
No ratings yet
Daa Cie25
6 pages
Daa Previous Year Papers
PDF
No ratings yet
Daa Previous Year Papers
10 pages
Enel4aah1 6 2023 y P1
PDF
No ratings yet
Enel4aah1 6 2023 y P1
5 pages
DAA
PDF
No ratings yet
DAA
16 pages
QB Vandu
PDF
No ratings yet
QB Vandu
8 pages
10211CS202-Design and Analysis of Algorithms-Scheme of Evaluation
PDF
No ratings yet
10211CS202-Design and Analysis of Algorithms-Scheme of Evaluation
8 pages
8.ada QB BCS401
PDF
No ratings yet
8.ada QB BCS401
19 pages
(Solution) Mid CSE221 Fall '23
PDF
No ratings yet
(Solution) Mid CSE221 Fall '23
9 pages
Complex Solutions
PDF
No ratings yet
Complex Solutions
5 pages
May19CS302-D KTUweb
PDF
No ratings yet
May19CS302-D KTUweb
4 pages
CSE-ND-2018-CS 6402-Design and Analysis of Algorithms-888466107-20190201152036
PDF
No ratings yet
CSE-ND-2018-CS 6402-Design and Analysis of Algorithms-888466107-20190201152036
4 pages
Design and Analysis of Algorithmscsm CSD
PDF
No ratings yet
Design and Analysis of Algorithmscsm CSD
2 pages
Datta Meghe Institute of Engineering, Technology & Research, Sawangi (M), Wardha Assignment No.2
PDF
No ratings yet
Datta Meghe Institute of Engineering, Technology & Research, Sawangi (M), Wardha Assignment No.2
3 pages
Syllabus 104 112
PDF
No ratings yet
Syllabus 104 112
9 pages
Daa Lab Syllabus
PDF
No ratings yet
Daa Lab Syllabus
2 pages
Ad3351 Daa Lab Set4 Afternoon Batch QP 29.11.2024
PDF
No ratings yet
Ad3351 Daa Lab Set4 Afternoon Batch QP 29.11.2024
3 pages
Imp Qns For DAA
PDF
No ratings yet
Imp Qns For DAA
6 pages
MCS 211
PDF
No ratings yet
MCS 211
3 pages
2-1 Algorithm 19 Batch
PDF
No ratings yet
2-1 Algorithm 19 Batch
4 pages
UNIT-1 2 Mark Questions
PDF
No ratings yet
UNIT-1 2 Mark Questions
11 pages
EECE 431 Midterm
PDF
No ratings yet
EECE 431 Midterm
3 pages
Question Paper Code:: (10×2 20 Marks)
PDF
No ratings yet
Question Paper Code:: (10×2 20 Marks)
4 pages
CS8451 Daa Rejinpaul Iq Am19
PDF
No ratings yet
CS8451 Daa Rejinpaul Iq Am19
2 pages
Time: 3 Hours Total Marks: 70
PDF
No ratings yet
Time: 3 Hours Total Marks: 70
16 pages
Assignment #4
PDF
No ratings yet
Assignment #4
2 pages
Daa Prev
PDF
No ratings yet
Daa Prev
7 pages
Daa S
PDF
No ratings yet
Daa S
5 pages
DAA Previous Paper
PDF
No ratings yet
DAA Previous Paper
14 pages
Fourth Semester B.E Degree Examination (Common To CS and IS) Model Question Paper I 06CS43 Analysis and Design of Algorithms
PDF
No ratings yet
Fourth Semester B.E Degree Examination (Common To CS and IS) Model Question Paper I 06CS43 Analysis and Design of Algorithms
4 pages
Design Algorithm 2009
PDF
No ratings yet
Design Algorithm 2009
2 pages
DAA Final Examination 2003en
PDF
No ratings yet
DAA Final Examination 2003en
10 pages