H6
Please answer the following questions.
2 years ago
30
Homework6.pdf
Homework6.pdf
1. Using Warshall’s algorithm, compute the reflexive-transitive closure of the relation below.
Show the matrix after the reflexive closure and then after each pass of the outermost for loop
that computes the transitive closure.
[ 0 1 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 1]
2. Using the matrix in the previous problem show the final result of executing Floyd’s
algorithm on that matrix to produce a matrix containing path lengths.
3. Show the graph that corresponds to the matrix in the first problem assuming the rows and
columns correspond to the vertices a, b, c, d and e. Show its condensation graph, renaming its
vertices. Determine any topological order of that graph and create an adjacency matrix with
the vertices ordered in that topological order. Finally compute the reflexive-transitive closure
of that matrix. What characteristic of that matrix indicates that it defines a total order?
4. Using Floyd’s algorithm, compute the distance matrix for the weight directed graph defined
by the following matrix:
[
0 4 −2 2 3 6 −3 2 0 4 5 0
]
Show the intermediate matrices after each iteration of the outermost loop.
- Hammett, Inc. has sales of $19,570, cost of $9460, depreciation expense of $2,130, and interest expense of $1620. If the tax rate is 35 percent, what is the operating cash flow.
- Is (-2, -7) the solution to the following system?
- Qualitative Evaluation
- healthcare law DQ 4
- Essay for philosophy.
- Applied Managerial Decisions
- Performance Analysis
- FARABD physics
- Visual Media
- Identify at least two (2) industries that are currently using common data exchange and data management trends. Rank the success of each implementation based on the ease of implementation, ease of use, and costs. Speculate the data exchange and data manage