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

CS502 Assignment No. 02 Solution & Discussion Due Date: Dec 07, 2015

CS502 - Fundamentals of Algorithms Assignment No. 02 Solution Fall 2015 Due Date Dec 07, 2015

Assignment No. 02
Semester: Fall 2015

CS502: Fundamentals of Algorithms

Due Date:07/12/2015

Instructions

Please read the following instructions carefully before submitting assignment:

 

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment is other than .doc file.
  • The submitted assignment does NOT open or file is corrupted.
  • The assignment is copied (from other student or ditto copy from any other source).

 

Objective

 

The objective of this assignment is to enable students:

 

  • Write and solve recurrence relations of recursive algorithms using iteration method
  • Design algorithm using Divide and conquer approach

 

Submission

 

You are required to submit your solution through LMS as MS Word document.

 

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

                                                             GOOD LUCK

 

Question 1:

 

Consider the following recursive algorithm for computing the sum of the first n squares:

Sum(n) = 12 + 22 + . . . + n2.

 

Algorithm: SUM(n)

if n = 1 return 1

else return SUM(n − 1) + n ∗ n

 

Write recurrence relation for above algorithm and solve it using Iteration Method.

 

Question 2:

 

In Divide and conquer strategy, three main steps are performed:

 

  1. 1.      Divide: Divides the problem into a small number of pieces
  2. 2.      Conquer: Solves each piece by applying divide and conquer to it recursively
  3. 3.      Combine: Combines/merges the pieces together into a global solution.

 

Write an algorithm to find minimum number from a given array of size ‘n’ using divide and conquer approach.

 

 

Lectures Covered:  This assignment covers first 15 Lectures.

Deadline:             Your assignment must be uploaded/submitted at or before 07 Dec, 2015. 

+ 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: 17810

.

+ 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)

Replies to This Discussion

confuse ho gy hyn knse solution theek hy in ma sy???????????????

koi oto Allah ka bnda theek sy guide kr dy...............

FIRST QUESTION THEK HAI.
PLEASE EXPLAIN ANYONE 2ND ONE WHO UNDERSTANDS THE 2ND ONE???/

CONFUSION HI HY BUS

dooor kryn plzzzzzzzzzzzzz jinhyn sahi smjh aai hy

conform answer konsa hai ?

CS502 complete solution 2015

Attachments:

yeh  theeeek ha ? plz tel

Note for All Members: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

CS502 Quiz 1 last date 9 dec-2015 11:59 PM

anyone tell meh please k kon sa solution thk h???

what is the correct solution of this assignmen6t????

RSS

Latest Activity

+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked BIA's discussion Aurat ki Izaat krna......
20 seconds ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to + ! ❤INNOCENT❤'s discussion Akhri Salam Smjh kr
1 minute ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion True.....
2 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked +¢αяєℓєѕѕ gιяℓ's discussion True.....
2 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion تمام خامیاں دفن کر دی جاتی ہیں اور پھر ان پر کتے میں لگاۓ جاتے
2 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked +¢αяєℓєѕѕ gιяℓ's discussion تمام خامیاں دفن کر دی جاتی ہیں اور پھر ان پر کتے میں لگاۓ جاتے
2 minutes ago
+++Mahoo+++ posted discussions
3 minutes ago
Sparkling Pearl joined + M.Tariq Malik's group
4 minutes ago
Sparkling Pearl joined + M.Tariq Malik's group
4 minutes ago
Sparkling Pearl joined + M.Tariq Malik's group
5 minutes ago
+ !ѕιмρℓє ¢н posted a discussion
5 minutes ago
Sparkling Pearl joined + M.Tariq Malik's group
6 minutes ago
Mecato replied to + M.Tariq Malik's discussion ENG501 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group ENG501 History of English Language
6 minutes ago
Mecato joined + M.Tariq Malik's group
6 minutes ago
Sparkling Pearl joined + M.Tariq Malik's group
7 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS311 Introduction to Web Services Development How to Open CS311 Lessons In Your LMS
7 minutes ago
+ M.Tariq Malik's 4 discussions were featured
7 minutes ago
+ M.Tariq Malik added 4 discussions to the group CS311 Introduction to Web Services Development
8 minutes ago
22 October2019 updated their profile
9 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Dedicated to All teachers
19 minutes ago

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

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