Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Views: 715

Replies to This Discussion

#cs502assignmentno2solutionspring2021 #advancescholars
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

 

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service