The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Is there anyone who can help me with this assignment?
Â
COSC 3333HW4Homework 4Due Date: 7/31/16 11:59pm1.Use thedynamic programming techniqueto find an optimal parenthesization ofa matrix-chain product whose sequence of dimensions is <8, 5, 10, 30, 20, 6>.MatrixDimensionA18 * 5A25*10A310*30A430*20A520*6You may do this either by implementing the MATRIX-CHAIN-ORDERalgorithm in the text or by simulating the algorithm by hand. In either case, showthe dynamic programming tables at the end of the computation.2.We have 5 objects, and the weights and values areNo.12345w1020304050v2030666055The knapsack can carry a weight not exceeding 90, find a subset items and give thetotal weight and value for following algorithms:1)By using the algorithm of greedy of value for 0-1 knapsack problem? By selectingthehighestvalue first.2)By using the algorithm of greedy of weight for 0-1 knapsack problem? Byselectinglightestitem first.3)By using the algorithm of greedy of density for 0-1 knapsack problem? Byselecting the highestdensityitem first.4)By using the algorithm of greedy of density forfractional knapsackproblem?By selecting the highest density item first.3.Using Floyd’s algorithm (See Algorithm2 slide 54), calculate the length of theshortest path between each pair of nodes in the graph by constructing a matrix.Give the each step of the adjacency matrix.
Attachments: