www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS502 Fundamentals of Algorithms Assignment No 02 Spring 2021 Solution / Discussion

CS502 Fundamentals of Algorithms Assignment No 02 Spring 2021 Solution / Discussion

Views: 795

### Replies to This Discussion

CS502 Assignment no 2 Solution Spring 2021

Cs502 assignment 2 solution spring 2021

Id:    Name:

Question no 1

Q:1 Sort the following using merge sort in ascending order

“K,N,L,D,S,D,Q,R”

D,D,K,L,N,Q,R,S

Solution

Q , R

D ,S

K , N

D , L

D, Q , R, S

D, K, L, N

D, D, K, L, N, Q , R, S

L , D

K , N

S , D

Q , R

K, N, L , D

S, D, Q, R

K, N, L, D, S, D, Q , R

Question No 2

For the given array,draw the final Max-Heap structure.show a final single three only.Steps are not required.

 43 12 23 2 55 11 7 33 60 32

Solution

1

2

3

4

## Latest Activity

Muhammad Bilal liked иαвєєℓ αнмє∂'s discussion Kya hal hain ning awam?
7 hours ago
Technical Guru liked Sana Sunny ツ's discussion we need Chat box at ning
14 hours ago
Technical Guru updated their profile
16 hours ago
Technical Guru is now a member of Virtual University of Pakistan
17 hours ago
yesterday
monaliza and waseem are now friends
yesterday
Zubii joined + M.Tariq Malik's group

### MTH401 Differential Equations

Friday
Zubii joined + M.Tariq Malik's group

Friday