4. For a certain directed graph with 4 vertices, Floyd's Algorithm has produced the following arrays...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. For a certain directed graph with 4 vertices, Floyd's Algorithm has produced the following arrays D(3) and P(3). Using these values, compute the missing values in the arrays D(4) and P(4), Show how you computed. D(3) 1 2 3 4 1 0813 2 16 0 7 9 9 17 0 2 6 3 7 0 3 4 a) (3 pts) D4 [1] [2] = b) (3 pts) D(¹4)[2][3] = c) (3 pts) P(4) [2] [3] = d) (3 pts) P(4) [3][2] = P(3) 1 2 3 4 0003 3003 0 1 0 0 00 10 12 3 4 D(4) 1 2 3 1 0 1 2 15 09 3 5 0 8 4 6 3 7 0 00 439 2 p(4) 1 2 3 4 1 0403 2 40 3 3 4 00 4 0 010 e) (5 pts) Using the array P(4), find the path from v, to v₂ that is shortest. Show how. you apply the information in P(4) to arraive at your answer. f) (3 pts) True or False: In general for a directed graph with n vertices, the Floyd's Algorithm guarantees that for all vertices v₁, vj, Vk, D() [i][j] =D() [i][k] + D(n) [k][j] 4. For a certain directed graph with 4 vertices, Floyd's Algorithm has produced the following arrays D(3) and P(3). Using these values, compute the missing values in the arrays D(4) and P(4), Show how you computed. D(3) 1 2 3 4 1 0813 2 16 0 7 9 9 17 0 2 6 3 7 0 3 4 a) (3 pts) D4 [1] [2] = b) (3 pts) D(¹4)[2][3] = c) (3 pts) P(4) [2] [3] = d) (3 pts) P(4) [3][2] = P(3) 1 2 3 4 0003 3003 0 1 0 0 00 10 12 3 4 D(4) 1 2 3 1 0 1 2 15 09 3 5 0 8 4 6 3 7 0 00 439 2 p(4) 1 2 3 4 1 0403 2 40 3 3 4 00 4 0 010 e) (5 pts) Using the array P(4), find the path from v, to v₂ that is shortest. Show how. you apply the information in P(4) to arraive at your answer. f) (3 pts) True or False: In general for a directed graph with n vertices, the Floyd's Algorithm guarantees that for all vertices v₁, vj, Vk, D() [i][j] =D() [i][k] + D(n) [k][j]
Expert Answer:
Related Book For
Statistics For Engineering And The Sciences
ISBN: 9781498728850
6th Edition
Authors: William M. Mendenhall, Terry L. Sincich
Posted Date:
Students also viewed these programming questions
-
What are the primary purposes of criminal law? answer using the following reading. write your own thoughts as well. do not use AI. The Purpose and Function of Criminal Law Denunciation and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
7. Arrange the following nitrogen containing compounds in decreasing order of basicity NH NH -H (P) (a) S>R>Q> P NO (R) (2) (b) P>Q>S>R -H (S) (c) P>Q>R>S (d) R>Q> P > S
-
FirstServer Systems specializes in servers for work-group, e-commerce, and enterprise resource planning (ERP) applications. The company's original job cost system has two direct cost categories:...
-
The decomposition of nitrogen dioxide (NO2) into nitrogen monoxide (NO) and oxygen is a second-order reaction. This means that the concentration C of NO2 at time t is given by 1/C = kt + 1/C0, where...
-
Which account does a merchandiser use that a service company does not use? a. Cost of goods sold b. Inventory C. Sales revenue d. All of the above
-
If a circuit contains 3 automatic switches and we want that, with a probability of 95%, during a given time interval they are all working, what probability of failure per time interval can we admint...
-
Examine three economic scenarios and determine how the Federal Reserve might address each one. You will then compare these monetary policy actions to fiscal policy. Use the template pictures below to...
-
Last winter, Casey shoveled snow from sidewalks to earn extra money. He was paid $250 in cash, and no deductions were made from his pay. Casey did not receive a T4slip. When Casey files his tax...
-
Project management is governed by an enormity of decision making that is influenced by ethics, professionalism and politics. Decisions require intense thought and considerations before execution as...
-
What are some ways to deemphasize information presented on graphs or charts?
-
Robert and Alvin agreed to an income ration of 5 : 3 when they decide to liquidate their partnership. After selling all of the partnership assets for cash, allocating gains or losses and paying off...
-
A block starts at the bottom of a frictionless plane inclined 25.8 degrees above the horizontal. If the block's initial velocity up the inclined plane is 3.72 m/s, How far up the plane does the block...
-
Who are the major stakeholders in Molson Coors, and how is each group affected by the "Making History" corporate communication style that the company has chosen to use.
-
You are the new controller for Moonlight Bay Resorts. The company CFO has asked you to determine the company's interest expense for the year ended December 31, 2021. Your accounting group provided...
-
What is the difference between nematic, smectic and cholesteric liquid crystals? Name two molecules in each category.
-
The Thomas Corporation was organized on Jan. 1, 2020. On Dec. 31, 2021, the corporation lost most of its inventory in a warehouse fire before the year-end count of inventory was to take place. just...
-
The building specifications in a certain city require that the sewer pipe used in residential areas have a mean breaking strength of more than 2,500 pounds per lineal foot. A manufacturer who would...
-
Suppose the life length (in years) of a memory chip in a mainframe computer has a Weibull failure time distribution. To estimate the Weibull parameters, and , 50 chips were placed on test and the...
-
An article in The American Statistician (May 1991) described the use of probability in a reverse cocaine sting. Police in a midsize Florida city seized 496 foil packets in a cocaine bust. To convict...
-
Determine the fundamental frequency of a uniform fixed-fixed beam carrying a mass \(M\) at the middle by applying Rayleigh's method. Use the static deflection curve for \(W(x)\).
-
Applying Rayleigh's method, determine the fundamental frequency of a cantilever beam (fixed at \(x=l\) ) whose cross-sectional area \(A(x)\) and moment of inertia \(I(x)\) vary as \(A(x)=A_{0} x /...
-
Using Rayleigh's method, estimate the fundamental frequency for the lateral vibration of a uniform beam fixed at both the ends. Assume the deflection curve to be \[W(x)=c_{1}\left(1-\cos \frac{2 \pi...
Study smarter with the SolutionInn App