Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
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)
9 views
2017 Algorithm
DU Question Papers
Uploaded by
Animesh Kumar
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 now
Download
Save 2017_Algorithm For Later
Download
Save
Save 2017_Algorithm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
9 views
2017 Algorithm
DU Question Papers
Uploaded by
Animesh Kumar
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 now
Download
Save 2017_Algorithm For Later
Carousel Previous
Carousel Next
Save
Save 2017_Algorithm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 5
Search
Fullscreen
{This question psper contains 8 printed pages.) wets 8 | NOOE OIL Nee ahs teor tng naomi hgiveaiease Unigue Paper Code; 32361801... Naie'oP the Paper”: Detgs ai Kiai 6 Aortme Poa at Name of the Course ae eee No. 7. 1. @ Arrange the tolling functions in the Of nr ak FO 100 Ghai a Ny. i clement in a given aray: di [L.Se Ch) —Gnb SeCLBES) TT Saved - 20/7| 2796 2 ight md) IF 1 Is smaller than the left recursive search in the leftmost prion: iit is ewer than the right mi, pertorm a ecupve seach in the | ‘rightmost partition; else perform a recursive search in i} the middle perttion. Thus, the algérithm performs 4 | comparisons in each iteration and recurses on one-third | of te any. Write the resrence relation for he ing 1 time ofthe algorithm and ove it. o ee zr ‘le it i's cai a Ae For each possible coloring of the three nodes, ion the property tat is Violated. ® a, pero 3 ‘shopkeeper has’ W marbles and m empty bottles, Let oj, Gjnny Oy respectively denote the number of (P marbles the bottles ean contain: The shopkeeper waats to store the marbles in the bottles. ©) Describe grecdy algorithm which minimizes the ‘number of bottles used. (@ How would you modify your algorihan i bottle | ‘also has an cesoviated cost price pj and the ‘onli to minimize the total coet of the bottles sed. Gr) istibuted. Then: (i) will the sort stil S_ sive.comect output? (i) what will be the impact of telaxing this condition on the runaing time ? Justify @ Discuss the run time complenity of the naive string “atohing algorithm, o {8) Compare the space requirements of adjacency list and djacncy matrix ropreseitatins of praph having m © edges and a vertices. ® (© Give a efficent algorithm to fad the minimym element Ju 4 maxcheap, Give the exact runing time of the cy seri, ® Pro.2796 4 He op a7 TS of te ces sch bre) ‘Rte a weldied gph wth etary ce srg? ty your aes, ® 12. (@) Give on efficient algorithm to check if given undirected ‘sah has a cycle, Discuss the time complexity of your algorithm. 3 () For each of the following operations does 2 Red Black ‘Tree work faster than Binary Search Tree? Elaborate © Search iy ontondee avers o 3. (@)A priority queue is implemented in two different ways toring = max heap a ing ‘order of ke} values (higher key value indicates higher priority). Compare the time complexity ofthe following an array sorted in de operations when performed on the two different implementations of the priority queue (@ Finding the maximom element (i) Deleting the maximum element (Gy Taorease the pririty of a certain elenieat (6) 5 (©) Suppose «graph has two edge-Sisjoit spanning trees (wo spanning trees that have #0 edges in common). ‘Argue that inthis graph G, every pair of nodes forms part of s cycle, o (@) Consider the following recursive algorithm to find an optimal schedule for weighted interval scheduling problem: ‘Compute_optt) Ij = 0 then “Retura 0 Blse : Rerum many + Comypse_ opt), Compue op) (© Explain why does his algorithm take exponential time to ran in the wort case () What changes should be made to the above ‘Algorithm fo make t run in polynomial time, o (©) Suppose that an nx n array A consist of 1’s and O's such that in any row of all the 1's come before any 0's in that row. Give an O(algn) algorithm for counting ouAhe umber of U's in A, o Pro.©. (@) Which red-back tree properties may be violated when a 2796 6 +s 2 5. (@) Give an example graph having four nodes that docs @D hhave a topological ordering ® Hicst. The instructor wishes to sort the m integer scores (0 Suppose a lve aay i msntained withthe following 1 policy: the sts inal sre, When ew elements te ded, they we loved tthe oni of he ny tn conse. Witt the ber of pow mens cher ee es 10, the array is resorted and the counter is cleared. ee CONT coutiet a ee, Whe taf ev Ginko es eng Sei cet 00) se th Hien ner tt en Tae ie irs te hihet order bt. Th ely operation on the comer is “nsreneat (©) We use Randomized-Select to select the minimum clement of the array A=<3,2,9,0, 75. Describe « sequence of partitions thet would result in the worst ‘cate performance of the algorithm, o ie sort algorithm is such that depts the worst cate beh the running time ofthe merge sor gorithm nstance, ® ge weights are allowed to be ‘your answer with an argument, o fers and on Integer T. It finds iether there exist two elements in the array that sm up to T and returss 1 on success and 0 onihe 20 SES, ae
You might also like
DAA Assignment1
PDF
No ratings yet
DAA Assignment1
8 pages
2022 Algorithm
PDF
No ratings yet
2022 Algorithm
6 pages
algo pyq
PDF
No ratings yet
algo pyq
16 pages
AD I Practice Questions
PDF
No ratings yet
AD I Practice Questions
11 pages
Design Analysis of Algorithms Rcs 502
PDF
No ratings yet
Design Analysis of Algorithms Rcs 502
2 pages
CS702. 2011-Sol
PDF
No ratings yet
CS702. 2011-Sol
13 pages
3rd Mid Sem Pyqs
PDF
No ratings yet
3rd Mid Sem Pyqs
14 pages
23CS312 DAA Answer Key
PDF
No ratings yet
23CS312 DAA Answer Key
7 pages
Computer Algorithm
PDF
No ratings yet
Computer Algorithm
59 pages
Paper Daa
PDF
No ratings yet
Paper Daa
8 pages
Midterm Sol 1 PDF
PDF
No ratings yet
Midterm Sol 1 PDF
6 pages
HW 04 Extra
PDF
No ratings yet
HW 04 Extra
5 pages
CS C341-Is C361
PDF
No ratings yet
CS C341-Is C361
5 pages
DAA SET a CT 1 Answer Key
PDF
No ratings yet
DAA SET a CT 1 Answer Key
7 pages
QP4
PDF
No ratings yet
QP4
28 pages
Algorithms and Data Structures Exercises: Antonio Carzaniga University of Lugano Edition 1.2 January 2009
PDF
No ratings yet
Algorithms and Data Structures Exercises: Antonio Carzaniga University of Lugano Edition 1.2 January 2009
13 pages
Exercises 1.2
PDF
No ratings yet
Exercises 1.2
13 pages
Solutions To Set 140
PDF
No ratings yet
Solutions To Set 140
18 pages
SiddharthashankarDaa
PDF
No ratings yet
SiddharthashankarDaa
60 pages
XXXXXXXX
PDF
No ratings yet
XXXXXXXX
7 pages
EECE 431 Midterm
PDF
No ratings yet
EECE 431 Midterm
3 pages
Week 5
PDF
No ratings yet
Week 5
37 pages
Exer4 W23
PDF
No ratings yet
Exer4 W23
3 pages
18IS6C2 - 2023
PDF
No ratings yet
18IS6C2 - 2023
3 pages
Assignment-DAA_1 (1)
PDF
No ratings yet
Assignment-DAA_1 (1)
4 pages
Time: 3 Hours Total Marks: 70
PDF
No ratings yet
Time: 3 Hours Total Marks: 70
16 pages
Daa
PDF
No ratings yet
Daa
17 pages
DSA Question Paper (1374)
PDF
No ratings yet
DSA Question Paper (1374)
12 pages
2017 Mid-Daa Solution
PDF
No ratings yet
2017 Mid-Daa Solution
16 pages
CT1-Answer key Set A DAA.docx
PDF
No ratings yet
CT1-Answer key Set A DAA.docx
7 pages
QP VTU With Ans 1A PDF
PDF
No ratings yet
QP VTU With Ans 1A PDF
19 pages
Assignment 1 DAA
PDF
No ratings yet
Assignment 1 DAA
14 pages
Btech Cs 5 Sem Design and Analysis of Algorithms Rcs 502 2018 19
PDF
No ratings yet
Btech Cs 5 Sem Design and Analysis of Algorithms Rcs 502 2018 19
2 pages
DAA Unit-1
PDF
No ratings yet
DAA Unit-1
20 pages
Algos Qpaper 2022
PDF
No ratings yet
Algos Qpaper 2022
6 pages
Sheet-1
PDF
No ratings yet
Sheet-1
2 pages
HW6_Handout (1)
PDF
No ratings yet
HW6_Handout (1)
6 pages
COMP90038 2022S1 A1 Solutions
PDF
No ratings yet
COMP90038 2022S1 A1 Solutions
4 pages
2011 Daa End-Regular
PDF
No ratings yet
2011 Daa End-Regular
4 pages
Algorithm
PDF
No ratings yet
Algorithm
14 pages
Question
PDF
No ratings yet
Question
10 pages
Daa Question Papers
PDF
No ratings yet
Daa Question Papers
9 pages
Du Daa - QP 2022
PDF
No ratings yet
Du Daa - QP 2022
5 pages
DAA FJ1_Set B Key
PDF
No ratings yet
DAA FJ1_Set B Key
9 pages
Final Solutions
PDF
No ratings yet
Final Solutions
20 pages
UNC401 Mst Spring 2025
PDF
No ratings yet
UNC401 Mst Spring 2025
2 pages
ف1
PDF
No ratings yet
ف1
4 pages
[Solution] Mid CSE221 Fall '23
PDF
No ratings yet
[Solution] Mid CSE221 Fall '23
9 pages
Fall 2015 Midterm 2 Solutions W Rubrics
PDF
No ratings yet
Fall 2015 Midterm 2 Solutions W Rubrics
9 pages
MT 1 Key
PDF
No ratings yet
MT 1 Key
8 pages
Final Solutions
PDF
No ratings yet
Final Solutions
20 pages
CSE565 F10 Midterm1
PDF
No ratings yet
CSE565 F10 Midterm1
14 pages
Algorithms Exam Help
PDF
No ratings yet
Algorithms Exam Help
19 pages
q1_new
PDF
No ratings yet
q1_new
4 pages