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

Similar documents
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)

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

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

END-TERM EXAMINATION

INSTITUTE OF AERONAUTICAL ENGINEERING

15CS43: 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)

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

Introduction to Algorithms Third Edition

5105 BHARATHIDASAN ENGINEERING COLLEGE

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

Virtual University of Pakistan

DESIGN AND ANALYSIS OF ALGORITHMS

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

CS6402 DESIGN AND ANALYSIS OF ALGORITHMS QUESTION BANK UNIT I

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

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

ECE250: Algorithms and Data Structures Final Review Course

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

Analysis of Algorithms

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

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

( ). Which of ( ) ( ) " #& ( ) " # g( n) ( ) " # f ( n) Test 1

( ) 1 B. 1. Suppose f x

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

Total No. of Questions :09] [Total No. of Pages : 02

Data Structures and Algorithm Analysis in C++

Overview of Data Structures, Algorithm Analysis

Topic Analysis PART-A

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

9. The expected time for insertion sort for n keys is in which set? (All n! input permutations are equally likely.)

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

Introduction to Algorithms October 12, 2005 Massachusetts Institute of Technology Professors Erik D. Demaine and Charles E. Leiserson Quiz 1.

CS521 \ Notes for the Final Exam

Review of course COMP-251B winter 2010

Algorithm Design Methods. Some Methods Not Covered


) $ f ( n) " %( g( n)

9. Which situation is true regarding a cascading cut that produces c trees for a Fibonacci heap?

( ) n 3. n 2 ( ) D. Ο

Design and Analysis of Algorithms. Comp 271. Mordecai Golin. Department of Computer Science, HKUST

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

Chapter 1 Divide and Conquer Algorithm Theory WS 2013/14 Fabian Kuhn

2. (a) Explain the concept of virtual functions in C++ with suitable examples. (b) Explain the concept of operator overloading in C++.

DATA STRUCTURES AND ALGORITHMS

Introduction to Algorithms May 14, 2003 Massachusetts Institute of Technology Professors Erik Demaine and Shafi Goldwasser.

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

DESIGN AND ANALYSIS OF ALGORITHMS

1. To reduce the probability of having any collisions to < 0.5 when hashing n keys, the table should have at least this number of elements.

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

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

Algorithms and Data Structures, or

Algorithms and Data Structures. Algorithms and Data Structures. Algorithms and Data Structures. Algorithms and Data Structures

AP Computer Science 4325

The Algorithm Design Manual

( D. Θ n. ( ) f n ( ) D. Ο%

Design and Analysis of Algorithms

Algorithm Design Techniques part I

logn D. Θ C. Θ n 2 ( ) ( ) f n B. nlogn Ο n2 n 2 D. Ο & % ( C. Θ # ( D. Θ n ( ) Ω f ( n)

Ph.D. Comprehensive Examination Design and Analysis of Algorithms

Algorithms and Data Structures

University of New Mexico Department of Computer Science. Final Examination. CS 362 Data Structures and Algorithms Spring, 2006

Theorem 2.9: nearest addition algorithm

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of MCA

Subject Index. Journal of Discrete Algorithms 5 (2007)

Chapter 1 Introduction

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

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

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

Test points UTA Student ID #

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

Contents. CS 124 Final Exam Practice Problem 5/6/17. 1 Format and Logistics 2

SUGGESTION : read all the questions and their values before you start.

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

Midterm solutions. n f 3 (n) = 3

CS 303 Design and Analysis of Algorithms

( ) D. Θ ( ) ( ) Ο f ( n) ( ) Ω. C. T n C. Θ. B. n logn Ο

Lecture 3, Review of Algorithms. What is Algorithm?

( ) ( ) C. " 1 n. ( ) $ f n. ( ) B. " log( n! ) ( ) and that you already know ( ) ( ) " % g( n) ( ) " #&

CSci 231 Final Review

IN101: Algorithmic techniques Vladimir-Alexandru Paun ENSTA ParisTech

Encoding/Decoding, Counting graphs

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}.

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

II (Sorting and) Order Statistics

Lecture 18. What we ve done and what s to come

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

CS161 - Final Exam Computer Science Department, Stanford University August 16, 2008

EE/CSCI 451 Spring 2018 Homework 8 Total Points: [10 points] Explain the following terms: EREW PRAM CRCW PRAM. Brent s Theorem.

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

Lecture 18. What we ve done and what s to come

Introduction to Algorithms: Brute-Force Algorithms

Multiple Choice. Write your answer to the LEFT of each problem. 3 points each

COMP Data Structures

D. Θ nlogn ( ) D. Ο. ). Which of the following is not necessarily true? . Which of the following cannot be shown as an improvement? D.

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

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Design and Analysis of Algorithms 演算法設計與分析. Lecture 7 April 15, 2015 洪國寶

COURSE: DATA STRUCTURES USING C & C++ CODE: 05BMCAR17161 CREDITS: 05

Transcription:

INTERNATIONAL INSTITUTE OF MANAGEMENT, ENGINEERING & TECHNOLOGY, JAIPUR (IIMET) UNIT-1 Q.1 What is the significance of using notations in analysis of algorithm? Explain the various notations in brief? Q.2 How much time does insertion sorting take to sort n distinct Item in the best Care? State yours answer in asymptotic Notation? Q.3 Apply Counting sort an The Following 3, 5, 4, 1, 3, 4, 1, 4 Q4 write short note on: radix sort. Q.5 Explain O, & Q notations and find the constants For following Function F (n) =5n2 +3n-7 Q.6 what is master s the Orem? Explain with suitable example. Q.7 What is the divide and conquer method? Sort the following sequence using merge sort. 5, 2, 4, 7, 1, 3, 2, 6, Q.8 Use slrarren s matrix multiplication algorithm to compute the matrix Product of following matrices. Q.9 Explain the minimum spanning tree knapsack problem. Q.10 (a) what do you understand by space and time complexity of an algorithm. (b) Which notation can be used for policing a (i) (ii) (iii) Lower bound Upper bound Tight bound over an algorithm

UNIT-2 Q.1 X=(A, B, C, B,D, A,B) and Y=(B,D,C,A,B,A)find longest common subsequence (LCS) of the given sequences X and Y, Using dynamic programming approach. Q.2 Find the order of parenthesigation for the optimal chain multiplication. A 1 =30 * 35; A 2 =35 * 15; A 3 = 15 * 5 A 4 =5 * 10; A 5 = 10 * 20: A 4 = 20 * 25 Q.3 Write Short note on backtracking algorithm Q.4 Solve the traveling sales man problem having the following cost matrix using branch and bound technique. Q.5 How is stress s matrix multiplication better than simple matrix multination? Q.6 write short note on: i. Divide and conquer starting? ii. Lower Bound theory? Q.7 Sort the Following Sousing quick Sort Method. (a)15,56,62,2,9,16,21,17,23,3,10 (b)find the average and worst case time completing for quick sort using probe recurrence relation. Q.8 Solve the following recurrence using iteration method. T (n) =7 T (n/2) +cn 2 Q.9 Write short note on: (a)strasaen s matrix Multiplication. (b) Huffman code

Q.10 when the worst care of quick sort will occure, analysis the worst care and average case time complexity of quick sort using recurrence relation. Q.11 Explain binary search tree taking suitable example. Unit-3 Q.1 Describe fractional knapsack problem and algorithm for gelding optimal solution. Give an example to show that if we apply this algorithm to solve get optimal solution. Q.2 Write short note on: optimal merge pattern (Huffman code)? Q.3 Write prim s algorithm for finding minimum spanning tree for a graph. Q.4 What is a minimum spanning tree? Write an algorithm to build a minimum spanning tree for a given graph. Q.5 give the krurkal;s and prim s algorithm of minimum spanning tree. Q.6 find minimum spanning tree of the following graph using prim s algorithm. Q.7 Explain naïve method with some suitable example. Also give the algorithm for the same. Q.8 using Knuth- marrie-part algorithm find whether the pattern P=(10100111) Is in text T=(1001010100111) or not. Q.9 explain quadratic arraignment problem. Q.10 solves the following arraignment problem using branch and bound method for which cost matrix is given bellow. 1 2 3 4_ A 11 12 18 40 B 14 15 13 22 C 11 17 19 23 D 17 14 20 28

UNIT-4 Q.1 Explaining the following terms. (i)residual network (ii)augmenting Path (iii) Cuts of flow network Q.2 Find the order of parentherigation for the optimal chain multiplication. A 1 =10 * 5 A 3 =50 * 1 A 2 = 5 * 50 A 4 =1 * 20 Q.3 What is dynamic programming? What is principle of optimality? Explain knapsack problem using dynamic programming. Q.4 Write short note on knapsack and O/1 knapsack problem. Q.5 Write an algorithm for finding LCS. Q.6 writes principle of optimality? Explain knapsack problem using dynamic programming. Q.7 Describe matrix chain multiplication problem. Write algorithm for getting optimal parantherigation of matrix. Chain multiplications compute the complexity of this algorithm. Q.8 write ford Fulkerson algorithm and explain it. Q.9 Explain Monte Carlo algorithm? Q.10 Define flow network and solve the following network for maximum flow.

Unit-V Q.1 Define the terms P, NP, NP-complete, give suitable example of each? Q.2 proves that clique problem is NP-complete? Q.3 What is cook s theorem? Explain it? Q.4 Explain vertex cover and set cover problem prove that vertex cover is NP-complete? Q.5 Write short note on: Traveling sales man problem? Q.6 Pattern=COLAKOLA Find the good suffix function for the about pattern? Q.7 Write short note on: 1. Quadratic and biquadrate assignment problem 2. Bad character heuristic 3. Lower bound theory Q.8 gives the max-flow min cut theorem? Q.9 states the assignment problem and solves the following assignment problem using branch and bound for which cost matrix is given below