Show the distance table entries at each node iteration

Assignment Help Data Structure & Algorithms
Reference no: EM132235173

Question 1. Consider the network shown below, and assume that each node initially knows the costs to each of its neighbors. Consider the distance-vector algorithm and show the distance table entries at each node iteration by iteration until the algorithm converges at all nodes.

2482_figure.jpg

Question 2. Consider the network fragment shown below. Node x has only two attached neighbors, w and y. Node w has a minimum-cost path to destination u (not shown) of 5, and y has a minimum-cost path to u of 6. The complete paths from w and y to u (and between w and y) are not shown. All link costs in the network have strictly positive integer values (i.e. 1, 2, 3, ...).

1316_figure1.jpg

a. Give x's distance vector for destinations w, x, y, and u. Also, give distance vectors x receives from its neighbors w and y.

Dx

U

W

X

Y

W

 

 

 

 

X

 

 

 

 

Y

 

 

 

 

a. Give all valid link-cost changes for either c(x, w) or c(x, y) such that x will inform its neighbors of a new minimum-cost path to u as a result of executing the distance-vector algorithm.

b. Give all valid link-cost changes for either c(x, w) or c(x, y) such that x will not inform its neighbors of a new minimum-cost path to u as a result of executing the distance-vector algorithm.

c. Give all valid updates received by X (with regard to the cost of the least-cost to U, i.e. either Dw(U) or Dy(U)) such that X will inform its neighbors of new least-cost path to U as a result of executing the DV algorithm.

d. Give all valid updates received by X (with regard to the cost of the least-cost to U, i.e. either Dw(U) or Dy(U)) such that X will NOT inform its neighbors of new least-cost path to U as a result of executing the DV algorithm.

Attachment:- Assignment.rar

Reference no: EM132235173

Questions Cloud

Compare low debt ratio to high debt ratio : Compare low debt ratio to high debt ratio, and discuss which is more beneficial to a business. The response must be typed, single spaced.
Difference between cash based and accrual based accounting : Discuss the differences between cash based and accrual based accounting. List examples when each system is used. The response must be typed.
Discuss the application of quality concerns : Choose any manufacturing company and discuss the application of quality concerns at any four functions of the system. Number of students in a group: 3-4.
How your company activities will affect the environment : Discuss how your company's activities will affect the environment and identify the steps you will take to mitigate any negative impacts.
Show the distance table entries at each node iteration : COMP4121: Advanced Algorithms - University of New South Wales - distance-vector algorithm and show the distance table entries at each node iteration
Explain the importance of closing project procurements : Explain the importance of closing project procurements and accounts. Examine external influences on the procurement and risk management process.
Developing a marketing plan for a healthcare facility : Please develop a marketing plan for a healthcare facility that was recently cited by the OIG (Office of Inspector General), or has been investigated.
Estimate the intrinsic value of tapley stock : Tapley Products is a privately held firm whose forecasted earnings per share (EPS) are $10.12, and suppose the average price/earnings (P/E) ratio for a set.
Examine the company by using the four building blocks : Apple is the world's ninth largest company in terms of revenue, so we can certainly say that it is a success! Examine the company by using the four building.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Program to convert this temperature in centigrade degree

Temperature of city in Fahrenheit degree is input through the keyboard Draw a flow chart; write an algorithm and program to convert this temperature in centigrade degree.

  Define the degree of a node in a tree

Define the degree of a node in a tree as the number of its nonempty children. Thus, for a binary tree, the degree of a node is 0, 1 or 2.

  Calculate mccabe''s cyclamate number using three approach

Given the following code section, draw the control ?ow graph and calculate McCabe's cyclamate number using all three approaches

  Write an algorithm that converts a decimal number

Write an algorithm that can be used to calculate the commission earned in a real estate transaction.  The chart below describes the formulas used to calculate the commission.

  Discuss the major steps of the genetic algorithm

Discuss the major steps of the genetic algorithms. Based on your experience and your textbook reading, what are suitable problem areas for the application of genetic algorithms?

  Draw the search tree generated by algorithm a

Draw the search tree generated by Algorithm A*, using the given g and h functions, from the initial state BBWWE (not pictured above!) to a goal state.

  Computing total number of keys needed in symmetric cipher

Determine the total number of keys that are needed for organization if symmetric cipher is used.

  Draw a flowchart of the function realizing insertion sort

Write the corresponding MATLAB code. You should check (just for yourself) how your function works with an arbitrary unsorted array.

  Optimal parenthesization of a matrix-chain product

Use the dynamic programming technique to find an optimal parenthesization of a matrix-chain product whose sequence of dimensions is

  How should we choose k in practice

How should we choose k in practice? What is the largest value of k as a function of n for which modified algorithm has same running time as standard merge sort.

  Write an algorithm that computes the depth-first search

Write an algorithm that computes the depth-first search in­ terval labeling scheme (see Subsection 4.4. 2) for an arbitrary connected net­ work. Can it be done in O(N) time units? Can it be done using O(N) messages?

  Enhance the pseudocode using arrays and loops

Enhance the pseudocode in the attachment by using arrays and loops. Also, instead of hardcoding the product names within the program, ask the user to enter the product names in addition to the prices

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