Compute the shortest path

Assignment Help Basic Computer Science
Reference no: EM1367620

1. Consider the following network example. With the indicated link costs along each link in the figure, use Dijkstra's shortest-path algorithm to compute the shortest path from x to all network nodes. Show how the algorithm works by computing a table.

88_compute the shortest path.png

Answer: Let N' denote the set of nodes whose distance have been known so far, D(s) be the distance to a node s, and p(s) be the parent node of the node s on the shortest path from s to node x. We then construct the following table.

37_compute the shortest path1.png

2. Consider the following network example. Suppose that the distance vector (DV) routing algorithm is used to compute the distance between nodes.

613_compute the shortest path2.png

(a) Show the procedure of nodes X, Y and W computes their Distance Vector for network illustrated by Figure (a), i.e., link costs are C(xw)=1, C(xy)=4, and C(yw)=8.

Answer: In the following, each column shows the node X, Y and Z's table update respectively:

1683_compute the shortest path3.png

(b) Assume that after the DV is computed by all nodes, the link cost of xy changed from 4 to 20. Show the procedure of nodes X, Y and W updates their Distance Vector for network illustrated by Figure (b), i.e., link costs are C(xw)=1, C(xy)=20, and C(yw)=8.

Answer: In the following, each column shows the node X, Y and Z's table update respectively:

119_compute the shortest path4.png

* If not enough, add more tables by yourself

3. We studied Dijkstra's link-state routing algorithm for computing the unicast paths that are individually the shortest paths from the source to all destinations. The union of these paths might be thought of as forming a shortest path tree. If each links has an associated cost and the cost of a tree is the sum of the link costs, then a spanning tree whose cost is the minimum of all of the spanning trees is called a minimum spanning tree. Both shortest path tree and minimum-spanning tree can be used for broadcast routing. By constructing a counterexample, show that the least-cost path tree is not always the same as a minimum spanning tree.

Reference no: EM1367620

Questions Cloud

Write a program that exploit string library functions : Write a program that exploit string library functions to do the following: -prompt the user to enter his name (of four parts) -count the number of characters in his name (excluding the white spaces).
Conclude what factors drive its demand for mba student : Assume MTSU is attempting to conclude what factors drive its demand for MBA student credit hours (dependent variable). Information is available on following independent variables:
Argue that the problem is np complete : Argue that the following prob is NP Complete. Given list of positive integers, u1,u2,...un (in binary representation) and asked if there is partition of this set into 3 subsets, each of which has same sum.
Calculating the forward rate : Corporation A, a low rated company, desires a fixed-rate, long term loan. A currently has access to floating interest rate amount at a margin of 1.5 percent over LIBOR.
Compute the shortest path : Use Dijkstra's shortest-path algorithm to compute the shortest path from x to all network nodes - computes their Distance Vector for network
Estimate cost elasticity of demand for education : Estimate cost elasticity of demand for education at this university. Is cost elasticity of demand for university tuition elastic or inelastic according to answer in part (i) Why.
How much time is necessary for a particle of string : A Carnot engine performs work at the rate of 380 kW when using 730 kcal of heat per second. If the temperature of the heat source is 560 C, at what temperature is the waste heat exhausted.
Which airline has lower costs : If Fly Right were to go out of business, it would be able to rent its plane to another airline for $30,000. Which airline has lower costs.
Where on the y axis is total electric field zero : A model rocket rises with constant acceleration to the height of 3.7, at which point its speed is 25. what was the magnitude of the rocket's acceleration.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Determine companies which specialize in computer forensics

What needs clarified? it's plainly stated use google to find 3 companies which specialize in computer forensics of those 3 companies write 2 or 3 paragraphs comparing what each company does.

  Explain relationship oriented and less transaction oriented

Are geared towards short-term spot purchasing. Are more relationship oriented and less transaction oriented than private industrial networks.

  Government imposes below-equilibrium price ceiling on market

If the government imposes the same below-equilibrium price ceiling on all these markets, which of the following statements will be true?

  Determining line cost for three points

Points T1, T2 ,and T3 are 25 miles apart, and points C1 , C2, and C3 also are 25 miles apart. If telephone lines cost $1 per mile, determine the line cost for three?

  Decreasing risk of malicious attacks in personal systems

Security budgets is devoted to decreasing risk of malicious attacks. What threats are you aware of when it comes to the personal systems and systems at job

  Benefits of measures used to protect operating systems

Describe relative benefits and disadvantages of at least three different measures used to protect operating systems.

  Create an incident-response policy

Create an incident-response policy that covers the development of incident-response team, disaster-recovery processes, and business-continuity planning.

  Minimum-spanning-tree problem for lp formulation

The minimum-spanning-tree problem is to find an acyclic subset T + E that connects all of the vertices and whose total weight c(T ) = ce is minimized. Write down the dual of your LP formulation.

  Explaining open-source software products like linux

Intellectual property as well as increase its support of open-source software products like Linux be a successful growth strategy in the "brutally competitive marketplace" in which it operates? Why or why not?

  Determining most effective it projects

Not sure what will suit their requirements in achieving better organization between branches by updating their information systems. What will you suggest they do to find out most effective IT projects?

  Develop requirements traceability matrix

The GlobalUBid.Com Case Study will be used to develop a requirements traceability matrix describing and following the life of requirements in both the forward and backward direction.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd