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)
14 views
Design Analysis of Algorithms Rcs 502
Good
Uploaded by
Shobhit Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Design Analysis of Algorithms Rcs 502 For Later
Download
Save
Save Design Analysis of Algorithms Rcs 502 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
14 views
Design Analysis of Algorithms Rcs 502
Good
Uploaded by
Shobhit Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Design Analysis of Algorithms Rcs 502 For Later
Carousel Previous
Carousel Next
Save
Save Design Analysis of Algorithms Rcs 502 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
Printed Pages: 02 Subject Code: RCSS02 Paper Ia: [ 110502 Roll No: BTECH (SEM V) THEORY EXAMINATION 2018-19 DESIGN & ANALYSIS OF ALGORITHMS Time: 3 Hours Total Marks: 70 Note: 1. Attempt all Sections. If require any missing data; then choose suitably. 2. Any special paper specific instruction SECTION A 1 Attempt all questions in brief. 2x7=14 a. Rank the following by growth rate: rn, 27, jog n, tog (logn), log’n, (Ign), 4, (3/2)", nf b. Prove that if n>=1, then for any n-key B-Tree of height h and minimum degree t >~2, h<= log. ((n+1)/2) ¢. Define principal of optimality. When and how dynamic programming is applicable 4. Explain application of graph coloring problem €. Compare adjacency matrix and linked Adjaceng)J suitable example/diagram £ What are approximation algorithms? Whe meant by P (n) approximation algoritns? g. What do you mean by stability of sai algorithm? Explain is aplication sts representation of a Graph with, nN 2. Attempt any three of the followit 7 & a Use a recursion tree to give‘ah asymptotically tight solution to the r¢curfence Tn) = Tian) + TU - a+ cn, where a is a constant in the mage) *a< 1 and © Vis alsoa consgeane & b. Define BNP, ‘NP hard and NP Complete Problems: Prove that Travelling Salesman Probiem is NP-Complete. ¢. Consider the weights and values of items listed below. Note that there is only one unit of each item. The task is to pick a subset of these items such that their total weight is no more than 11 Kgs and their total value is maximized. Moreover, no item may be split, The total value of items picked by an optimal algorithm is denoted by Vos. A greedy algorithm sorts the items by their value-to-weight ratios in descending order and packs them greedily, starting from the first item in the ordered list. The total value of items picked by the greedy algorithm is denoted by Vgreedy. Find the value of Vopt ~ Vercedy i A PO ~ Ww i0 [7 [4 ]2 Vv 60 128 120 124 4. Insert the following keys in a 2-3-4 B Tree: 40, 35, 22, 90, 12, 45, 58, 78, 67, 60 and then delete key 35 and 22 one after other. . Prove that if the weights on the edge of the connected undirected graph are distinct then there is a unique Minimum Spanning Tree. Give an example in this regard. Also discuss Prim’s Minimum Spanning Tree Algorithm in detail,SECTION C Attempt any one part of the following: 7x17 (a) The recurrence T (n) = 7T (0/3) + n? describes the running time of an algorithm A Another competing algorithm B has a running time of $ (n) = aS (n/ 9) + n?, What is the smallest value of ‘a’ such that A is asymptotically faster than B.? (b) How will you sort following array A of elements using heap sort: A= (23,9, 18, 45, 5, 9. 1, 17, 6). Attempt any one part of the following: 7x1 (a) _ Explain the different conditions of getting union of two existing binomial Heaps. Also write algorithm for union of two Binomial Heaps. What is its complexity? (b) Insert the elements 8, 20, 11, 14, 9, 4, 12 in a Red-Black Tree and delete 12, 4,9, 14 respectively. Attempt any one part of the following: Tx1=7 (a) When do Dijkstra and the Bellman-Ford algorithm both fail to find a shortest path?Can Bellman ford detect all negative weight cycles in a graph? Apply Bellman Ford Algorithm on the following graph (6) Given an integer x and a positive number n, use divide & conquer approach to write @ function that computes x*with time complexity O (logn) Se Attempt any one part of the following: Tx1=7 (a) Solve the Subset sum problem using Backaracking: “where n=4, m=18, w [4] = (5, 10, 8, 13) (b) Give Floyd War shall algorithm to find‘fhe shortest path for all pairs of vertices in a graph. Give the complexity of the alg¢ n. Explain with example. Attempt any one part of the following: Txl=7 (a) | What is the application of Past Fourier Transform (FFT)? Also write the recursive algorithm for FFT. +.» (b) Give a linear time algorithin to determine if a text T is a cycle rotation of another string T° For example, ‘RAJA’ and ‘JARA’ arc cyclic rotations of cach other.
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6129)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
3rd PRESENTATION
PDF
No ratings yet
3rd PRESENTATION
25 pages
Sakshi Result
PDF
No ratings yet
Sakshi Result
2 pages
A.D. Hope
PDF
No ratings yet
A.D. Hope
3 pages
PG II CC-7 The Theory of Rasa by DR Ravi K Sinha
PDF
No ratings yet
PG II CC-7 The Theory of Rasa by DR Ravi K Sinha
3 pages
Study Materials On A. D. Hope's Australia
PDF
No ratings yet
Study Materials On A. D. Hope's Australia
3 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)