CSE 551 Assignment 3 Solved

$ 29.99
Category:

Description

Furthermore, please note that the graders will grade 2 out of the 4 questions randomly. Therefore, if the grader decides to check questions 1 and 4, and you haven’t answered question 4, you’ll lose points for question 4. Hence, please answer all the questions.
1. Find the optimal order of multiplying four matrices whose sequence of dimensions is (13, 5, 89, 3, 34), i.e., the First matrixis 13 x 5, the second matrix is 5 x 89 and so on. Furthermore, compute the fewest number of multiplications needed to find the resulting matrix. Show all the steps of your computation. [25]
2. Let A1,A2,…,An be matrices where the dimensions of Ai are di−1 ∗ di for i = 1,…,n. Here is a strategy to compute the best order (i.e., the order that requires the fewest number of multiplications) in which to perform the matrix multiplications to compute A1,A2,…,An. At each step, choose the largest remaining dimension (from among d1,…,dn−1) and multiply two adjacent matrices that share the same dimension. State with reasoning whether the above strategy will always minimize the number of multiplications necessary to multiply the matrix chain A1,…,An (i.e., if you think that this will result in the optimal number of multiplications, then please provide arguments as to why you think so, else, provide a counter example).
[25]
3. Using Dynamic Programming technique, find the optimal solution to the Traveling Salesman Problem for the following dataset (Distance Matrix).

Show all your work. Also show the node ordering in the optimal tour. [25]
4. A subset of nodes in S ⊂ V is a “Special Node Set (SNS)” of a graph G = (V,E), if there are no edges between the nodes in S. The SNS of the largest cardinality is referred to as “Largest Special Node Set (LSNS)”.

Figure 1: Figure for Q4
Design a Dynamic Programming based algorithm to compute the LSNS of a tree. Write down the recurrence relation on which your algorithm is based and show how the recurrence relation is being used by your algorithm to compute the LSNS of the tree. Analyze your algorithm to find it’s complexity. Show all our work. Can your algorithm be used to find the LSNS of a graph which isn’t a tree? If your answer is “yes”, explain how it can be used, otherwise, explain why it can’t be used to compute the LSNS of a graph which isn’t a tree. [25]

Reviews

There are no reviews yet.

Be the first to review “CSE 551 Assignment 3 Solved”

Your email address will not be published. Required fields are marked *