• Tidak ada hasil yang ditemukan

Advanced Algorithm (March-2023)

N/A
N/A
Protected

Academic year: 2025

Membagikan "Advanced Algorithm (March-2023)"

Copied!
3
0
0

Teks penuh

(1)

Maulana Azad National Urdu University M.Tech I Semester Examination, March 2023 Paper - MTCS111PCT : Advanced Algorithm

6 , p :

Time : 3 hrs Marks : 70

@ c Z

* ] :

» V ß Z Î Ð V ” x Ó X ì è S g  á Z Š Z ® Å V / n Æ [ Z Ž C Ù X x Î z Ô zx Š z Ô w Zz z : ì Œ 6 , V ” & ] Ñ Z Î p ! 6 , t

Ž Z

Š [ b i Ñ ì ò X ì

C X Ù Z Î

Æ w ò i Ñ [ Z Ž » w Z Î C Ù X  ] Ñ Z Î á zZ [ Z Ž ¿ & * * ™ %æFN ( à { & ] Ñ Z Î è z c ž Ž  ] Ñ Z Î ò i Ñ

10

~ w Zz z

.1

(10 x 1 = 10 Marks)

X ì – 

1

a

V / 6 , ì Œ

X

(200)

Î z Š ã ½ [ Z Ž » w Z Î C Ù X  ¶ Š [ Z Ž Æ V ß Z Î õ 0 * ð à à D ¨ ( ¤ Ð ~ k ÔZ  ] Ñ Z Î

8

~ zx Š z

.2

(5 x 6 = 30 Marks)

X  – ] Z 

6

a Æ w Z Î C Ù

V / 6 ,

ì Œ

(500)

Î õ 0 * ã ½ [ Z Ž » w Z Î C Ù X  ¶ Š [ Z Ž Æ V ß Z Î & ð à à D ¨ ( ¤ Ð ~ k XZ  ] Ñ Z Î

5

~ x Î z

.3

(3 x 10 = 30 Marks)

X  – ] Z 

10

a Æ w Z Î C Ù

Zz z w

(1)

w Z Î '

' ì '

X

Best-case Time Complexity

Å

Quick Sort (i)

O (nlogn) (d) O (n) (c) O(logn) (b) O(n2) (a)

ã Å

Š C 6 ì ,

?

Method

¾

Prim's Algorithm (ii) Dynamic Programming (d) Greedy (c) Branch and Bond (b) Divide and Conquer (a)

H Y Y ì

?

Solve

= fg Æ

Dynamic Programming

Ã

Problems

Рy à Р~ y Z

(iii)

Binary Search (b) Merge Sort (a)

Quck Sort (d) Longest Common Subsequence (c)

ß

(

/

9 ) X ì @ * ™ w E Z »

Elementary Number Theoritical Notation

H

Rabin-Karp Algorithm (iv)

… » gx à ' ' ' ì '

X

PRAM

~

Parallel Computing (v)

Z

~ y Ð ð Ã

7

(d) Pre-RAM (c) Processing RAM (b) Parallel RAM (a)

' ' Æ ' a E Z

ƒ w

@ ì *

?

Master's Theorem (vi)

Solving Iterative Relations (b) Solving Recurrency(a) Calculating time complexity of any code (d) Analysis Loops (c)

' ' ì '

X

Worst Case Complexity

Å

KMP Algorithm (vii)

Z

~ y Ð ð Ã

7

(d) O (n+m) (c) O(nm) (b) O(n) (a)

1/3

(2)

Å zg ¢

ƒ ] C ì

?

Arrays

Ä a Æ ä ™

Implement

Ã

Boyer-Moore Algorithm

z{ ´ Æ

Text

g Zz

Pattern (viii)

Z

~ y Ð ð Ã

7

(d) 3 (c) 2 (b) 1 (a)

 Û ë Z

™

@ ì *

X

Solutions

Æ

Problems

' ' '

Bellman Ford Algorithm (ix)

Sorting (b) All Pur Shortest path (a)

Network Flow (d) Single Source Shortest Path (c)

Comparision

Ä a Æ ä ™

Sort

Ã

Array arr{1, 5, 6, 8, 2}

‰ b Š ñ ƒ D ™ w E Z Ã

Counting Sort (x)

™ ä

ƒ Ð V

?

0 (d) 9 (c) 7 (b) 5 (a)

z

Š zx

Å

Worst Case

g Zz

Averge Case, Best Case

X z ™

Sort

Ã

Array

‰ b Š ñ ƒ D ™ w E Z »

Cocktail Sort (2)

¥

™ x z

X

Time Complexity

5 1 4 2 8 0 7 6

ƒ D

 T ?

»

Match

Ä

Valid Hits

g Zz

Spurious Hits

Ð = fg Æ

Rabin-karp Algorithm (3)

n

Š c

*

Š ì H

X

Pattern

ó

Text

g Zz ì

q=11 "string matching modula' Text = T = < 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3>

Pattern = P = < 2 6>

Z » E

™ w D

ƒ ñ i

™ z

X

Master's Method (4)

Recurrence :

¥ Ù x

X

Order of Paranthesization

»

Optimal Chain Multiplication

»

Matrices

g e ‰ b Š

(5)

Æ

! g *

~ } ,

Œ Ð N

X

NP Complete

g Zz

P, NP, NP-hard (6)

à w V fg Æ

=

Œ



X

Cook's Theorem (7)

Longest Common

» k Z  

Input Strings

V â z Š

X=<a,a,ab,a,b>

g Zz

Y=<b,a,a,b,>,

‰ b Š

(8)

¥ Ù x

X

Susbsequence

Time Complexity

Å

Worst Case

g Zz

Average Case, Best Case

» k gZ Zz K

Algorithm

»

Quick-sort (9)

™ ,

X

Sort

Ã

Data

‰ b Š n X N C

42 34 75 23 21 18 90 67 78

2/3

(3)

z x Î

¥

™ x ,

X

Johnson's All Pair Shortest Path

»

Graph

‰ b Š n ? ì @ * ™ x » £

Johnson's Algorithms (10)

Z Ã q - w V Æ

B ‚

Parallel Merge Sorting Algorithm

X ì

(Best) Sorting Algorithm

‚ y à a Æ

Parallel (11)

Ò

™ y , X

¥

™ x ,

X

Best Complements

Å k gZ Zz N Œ

Step-by-Step

Ã

Knuth-Moris Pratt Algorithm (12)

¯ N

X

Spanning Tree

g Zz , ™ Ý q

Minimum cost

»

Graph

= fg Æ

Krushkal's Algorithm (a) (13)

fg Æ

=

Œ



X

Problem

q - Z Ã

PRAM Model (b)

Shortest Path

»

Graph

‰ b Š ñ ƒ D ™ w E Z Ã

Dijkstra Algorithm

X /õG Ÿ ÉÀ

Algorithm

»

Bellman's Ford (14)

¥

™ x , X

/ /

2/3 /

Referensi

Dokumen terkait

CALL FOR PARTICIPATION International Conference on Systems and Processes in Physics, Chemistry and Biology ICSPPCB-23 02nd – 04th March, 2023 Website:

Fund information as follows: Fund start date: 29 October 2014 Unit price at subtraction: 10 SAR Fund size: 4,110,808 SAR Fund type: Open Ended Fund currency: SAR - Saudi Riyals Level

Last Updated March 2023 CURRICULUM VITAE Fariza Rahman Email: [email protected] https://www.linkedin.com/in/fariza-aurunova-rahman/ EDUCATION AND QUALIFICATIONS Master

[r]

[r]