CS502 - Fundamentals of Algorithms Assignment No. 2 Solution Fall 2018 Due Date: January 25, 2018

Fundamentals of Algorithms (CS502)

Assignment # 02

Fall 2018

Total Marks = 20

Deadline = 25-01-2019

 

 

 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

Tags: -, 2, 2018, 25, Algorithms, Assignment, CS502, Date:, Due, Fall, More…Fundamentals, January, No., Solution, of

Views: 232

Attachments:

SPONSORED LINKS

Latest Activities on Virtialians Social Network

Irfan Khan MSCS and Cinderella are now friends
3 hours ago
aisha and Muhammad Mursleen are now friends
11 hours ago
aisha and Shoaib Khan are now friends
yesterday
Wasi Zawar and Izzah Malik are now friends
yesterday
Sid commented on AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
Sid liked AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
AaBeerα (MBA 2nd sems)admin posted a blog post
Friday
Irfan Khan MSCS liked kashif Rfaique's discussion Admission
Friday
kashif Rfaique added a discussion to the group M.Sc. in Organizational Psychology
Friday
Farwa Sahar is now a member of Virtualians Social Network
Friday
AaBeerα (MBA 2nd sems)admin replied to AaBeerα (MBA 2nd sems)admin's discussion Issuance of First Voucher to continuing students (Spring, 2019)
Thursday
ٹمبکٹو posted a blog post
Thursday
AaBeerα (MBA 2nd sems)admin liked Zain Ali's discussion Allah behtar Tadbir aor chahat krny wala hai
Thursday
AaBeerα (MBA 2nd sems)admin liked Cinderella's blog post ouqt
Thursday
Zain Ali added a discussion to the group Islam
Thursday
Cinderella posted blog posts
Thursday
BSCS *Admin added a discussion to the group Spring 2019 Semester
Thursday
BSCS *Admin posted a discussion
Thursday
Younas Khan (MBA 02 Year) liked Irfan Khan MSCS's discussion Virtual University of Pakistan (VUP) Semester Spring 2019 Mid-Term Exam From Saturday June 22, 2019
Wednesday
Arooj un nisa liked AaBeerα (MBA 2nd sems)admin's discussion Virtual University opening doors to future jobs
Wednesday

SPONSORED LINKS

© 2019   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service