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

www.vustudents.ning.com

 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

# Fundamentals of Algorithms (CS502), Assignment # 02 Fall 2018, Deadline = 25-01-2019, Total Marks = 20

Lectures Covered: This assignment covers Lectures # 19 to 28.

Instructions:

Please read the following instructions carefully before solving & submitting the assignment:

1. The assignment will not be accepted after due date.
2. Zero marks will be awarded to the assignment that does not open or the file is corrupt.
3. The assignment file must be an MS Word (.doc/.docx) file format; Assignment will not be accepted in any other format.
4. Zero marks will be awarded to the assignment if copied (from other student or copied from handouts or Internet).
5. Zero marks will be awarded to the assignment if the Student ID is not mentioned in the assignment file.

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

Please do not post queries related to assignment on MDB.

Question # 1:                                                                                  10 Marks

Consider the following five matrices A, B, C, D and E along with their dimensions;

A                      B                      C                      D                      E

(6×5)               (5×1)               (1×7)               (7×4)               (4×2)

Determine the Optimal Multiplication Order for above matrices using Dynamic Programming approach and also present the sequence (i.e. optimal order) in Binary Tree.

Note: Show all intermediate steps (i.e. computations)

Question # 2:                                                                        10 (5+5) Marks

1. List down In and Out- Degrees of vertices of the given directed graph.

 Vertex In Degree Out Degree A B C D E

1. How many cycles are there in the given directed graph, list all of them. Further, is there any Hamiltonian cycle in it (yes/no)?

Good Luck

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

Views: 1515

.

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

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

Attachments:

### Replies to This Discussion

any idea about question no 1

## Latest Activity

Noor ijaz and M. Haris are now friends
6 minutes ago
51 minutes ago
Mani Siddiqui BS VIII posted a status
""___زندگی بڑی عجیب ہے کبھی گُلزار سی، کبھی بیزار سی"
55 minutes ago
Hina liked Muhammad Shahid Javed's profile
1 hour ago
مخلص posted a discussion

### Pixel 4A. Excellent Phone but not for Pakistan

1 hour ago
sabir khan posted a discussion

### please stand for unblocking of LMS accounts

1 hour ago
LILY replied to LILY's discussion HAPPY INDEPENDENCE DAY
1 hour ago
LILY replied to LILY's discussion HAPPY INDEPENDENCE DAY
1 hour ago
M. Haris liked Naaz Bajwa's profile
1 hour ago
M. Haris updated their profile
2 hours ago
Bilal joined +M.Tariq Malik's group

### MTH202 Discrete Mathematics

3 hours ago
9 hours ago
10 hours ago
10 hours ago
10 hours ago
zohaib iftikhar posted discussions
10 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* SUNO ...SUNO NA!...*
10 hours ago
10 hours ago
10 hours ago
10 hours ago

1

2

3