Find a node i farthest from node k

Assignment Help Econometrics
Reference no: EM131259428

1. Let T be a depth-first search tree of a graph. Let D (i) denote an ordered set of descendants of the node i ∈ T, arranged in the same order in which the depth-first search method labeled them. Define last(i) as the last element in the set D (i). Modify the depthfirst search algorithm so that while computing the depth-first traversal of the network G, it also computes the last index of every node. Your algorithm should run in O(m) time.

2. Longest path-in a tree (Handler, 1973). A longest path in an undirected tree T is a path containing the maximum number of arcs. The longest path can start and end anywhere. Show that we can determine a longest path in T as follows: Select any node i and use a search algorithm to find a node k farthest from node i. Then use a search algorithm to find a node I farthest from node k. Show that the tree path from node k to node I is a longest path in T.

Reference no: EM131259428

Questions Cloud

Provide examples of unethical behavior : Give three examples of unethical behavior involving location selection and indicate which ethical principal is violated
Reference to herzberg two-factor theory : Explain how a manager motivates employees with reference to Herzberg's two-factor theory. I need a one and a half page paper on this question. Must be: Double spaced, 12 font, and standard essay format (introduction, middle, and conclusion paragr..
Describe an algorithm that decomposes any graph : For an acyclic network G with a specified source node s, outline an algorithm that enumerates all distinct directed paths from the source node to every other node in the network. The running time of your algorithm should be proportional to the tot..
Make a statement about the variability : You want to make a statement about the variability in the costs of personnel shelters -  Given the information provided: Xbar = $47.25K, Summation of (Xi - Xbar)2 = 555.50
Find a node i farthest from node k : Then use a search algorithm to find a node I farthest from node k. Show that the tree path from node k to node I is a longest path in T.
Responsible for multiple suicides of its workers in china : Do you think Fox-conn should be responsible for multiple suicides of its workers in China? Given the relationship between Fox-conn and Apple. Do you think Apple should respond to it? How can such tragedy be prevented?
What is being said nonverbally by each person : What is being said nonverbally by each person? If he is waiting for a job interview, what impression do you think he is going to make? What is the interviewer (the woman on the right) communicating with her nonverbal positioning?
How would you formulate this investment problem : How would you formulate this investment problem as a shortest path problem, assuming that at any point in time, Mr. Jones invests all his funds in a single investment alternative.
Suitable for all kinds of jobs : Person-focused pay programs are not suitable for all kinds of jobs. Based on your understanding of person-focused pay concepts, identify at least three jobs for which this basis for pay is inappropriate. Be sure to provide your rationale, based up..

Reviews

Write a Review

Econometrics Questions & Answers

  What is the logical basis for the conclusion

Suppose that, for a particulra type of firm, the MPL isnot diminishing, but it's also not increasing. What does the MCcurve for this firm look like Why might it make sense to think ofthe firm's capital being, say, a computer network,

  What is the amount of money that will be raised and invested

If XYZ Corp. can undertake the following projects: Project 1: Required investment: $10 million Expected rate of return: 12% Project 2: Required investment: $2 million Expected rate of return: 15% Project 3: Required investment: $5 million Expected ra..

  Zachary has opened a retirement account that will pay 5

zachary has opened a retirement account that will pay 5 interest each year he plans to deposit 10 of his annual salary

  What is the per-unit amount of the externality

What is the per-unit amount of the externality?

  What would be the optimal price of the book

By engaging in the business, the students realized that they would have to give up their summer jobs. Each student made an average of $4,000 per summer. However, they believed they could keep expenses down by doing much of the research for the boo..

  What would determine who produces the good

Consider a situation similar to that in Figure 7-3, in which two countries that can produce a good are subject to forward-falling supply curves. In this case, however, suppose that the two countries have the same costs, so that their supply curves..

  Compute the mean measurement for each method

For which method is the standard deviation the largest? Why should one expect this method to have the largest standard deviation?

  What is the price elasticity of demand

Qx= 1100-30Px-40Py+30Pz+.025M, where M is income and Py and Pz are the prices of related goods. Py=$15, Pz=$50, and M=$40,000. Now assume Px=$60, and income is still $40,000. What is the price elasticity of demand

  Does the ppc illustrate law of increasing additional cost

Does the PPC illustrate the law of increasing additional cost What is the opportunity cost to this student for the additional amount of study time on economics required to mover her grade from 60 to 70 From 90 to 100

  How and why the firms demand curve for labor will compare

Consider a firm with the same production function of $20 output price when 2 units of output are produced but operating under imperfect competition in the product market. Explain how and why the firms demand curve for labor will compare to that of..

  Find what is the irr-internal rate of return

An investor deposits $30,000 annually at the end of each year for the next 15 years. At the end of the 16th year he starts to withdraw a geometric series of 20 annual payments, each 5% larger than the previous one.

  Discuss this distinction from an economic perspective

In contract law, promises are enforceable if supported by consideration-that is, if they are mutual. In contrast, promises to give gifts are not generally enforceable unless the intended recipient incurs some expenses in anticipation that the prom..

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