We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS502 Fundamentals of Algorithms Assignment No 01 Spring 2019 Solution & Discussion Due Date: 15-05-2019

CS502 Fundamentals of Algorithms Assignment No 01 Spring 2019 Solution & Discussion Due Date: 15-05-2019

Question No  01:   (Marks:  10)

 

The following algorithm (procedure) is computing the multiplication of two squared matrices. A[][] and B[][] are two squared matrices, Mul[][] is a square matrix which store the multiplication of A[][] and B[][]. As the matrices are squared so, “n” would be the number of columns or rows. You are required to calculate the worst case time complexity {T(n)} of this algorithm.

 

1    Matrix_Multiplication (A[][], B[][],Mul[][], int n)

 

2    Sum  = 0

3    for (int i to n)

4         for (int j to n)

5                     for (int k to n)

6                        Sum =  Sum + A[i][k] * B[k][j];

       

7         Mul[i][j] = Sum;

   

 

Note: Make sure that the alignment of each step/line is important in the algorithm, because it may indicate you that the loops are nested or in sequence.

 

Question No. 02   (Marks   10)

 

Consider the following function f(n) which represent the time complexity of an algorithm.

 

f(n)  = 2n2 + 4n + 7

 

As per the definition of Big O, we have, 0 ≤  f(n)  ≤ cg(n) , where c >0 and n ≥  n0

 

If  g(n) = n2 , find the value of c for which the upper bound cg(n)  holds.

 

 

=====================================Ended=======================================

 

For any query about the assignment, contact at CS502@vu.edu.pk

 

GOOD LUCK

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 5674

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

 

“How to Join Subject Study Groups & Get Helping Material”

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

isk solution bhe discuss krea ga yhn pa please....

*********

Koi tu solution upload kr da

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

This is just an Idea about worst case time

And this is Average case time

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Share below link with friends for solution & Discussion.

http://bit.ly/vucodes

CS502 Assignment#01 Spring 2019 Solution 

No photo description available.

@Tariq Sir ... can we have a clear image as few of the things r not readable. 

moreover i wanted to speak to you for years now. left few msgs in inbox but never get the reply. 

i'll be grateful if can have a quick min of yours.

RSS

Latest Activity

+"Alan Walker"++ liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion 100 Instructions from the Quran
1 minute ago
+ M.Tariq Malik liked + !! "AS" !!'s discussion Ghalti...
1 minute ago
Profile IconZafarullah Khan, minahil sarwar, Momina and 29 more joined Virtual University of Pakistan
4 minutes ago
+"Alan Walker"++ replied to UMER UMER's discussion Ego is the Enemy.
6 minutes ago
+"Alan Walker"++ liked UMER UMER's discussion Ego is the Enemy.
7 minutes ago
+"Alan Walker"++ replied to + !! "AS" !!'s discussion Jis Tarah ..
10 minutes ago
+"Alan Walker"++ liked + !! "AS" !!'s discussion Jis Tarah ..
11 minutes ago
ALEENA liked + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion 100 Instructions from the Quran
25 minutes ago
ALI RAZA joined + M.Tariq Malik's group
30 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion My Quiz CS408 Last Date 21.11.2019 in the group CS408 Human Computer Interaction
43 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion My Quiz CS408 Last Date 21.11.2019 in the group CS408 Human Computer Interaction
45 minutes ago
arooj liked + M.Tariq Malik's discussion EDU402 Final Term Papers Spring 2019 (24 August ~ 04 September 2019) & All Solved Past Papers, Solved MCQs & Helping Material
46 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion My Quiz CS408 Last Date 21.11.2019 in the group CS408 Human Computer Interaction
46 minutes ago
+¢αяєℓєѕѕ gιяℓ added a discussion to the group CS408 Human Computer Interaction
48 minutes ago
+Mr President updated their profile
1 hour ago
A_Q added a discussion to the group ENG513 Language Teaching Methods
1 hour ago
ALEENA replied to + M.Tariq Malik's discussion Site Overview | Assignment Solutions | Past Papers Solutions | VU Students Features
1 hour ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Ghalti...
1 hour ago
ALEENA liked + Iuuoɔǝut +'s discussion MTH401_Mid term Solved (Part I) with refrence
1 hour ago
Shine--Ex-VUStudent liked + !! "AS" !!'s discussion Yaha Har Cheez ..
1 hour ago

Today Top Members 

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

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