1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kvasek [131]
4 years ago
7

The time delay of a long-distance call can be determined by multiplying a small fixed constant by the number of communication li

nks on the telephone network between the caller and callee. Suppose the telephone network of a company named RT&T is a free tree. The engineers of RT&T want to compute the maximum possible time delay that may be experienced in a long-distance call. Given a free tree T, the diameter of T is the length of a longest path between two nodes of T. Give an efficient algorithm for computing the diameter of T.
Engineering
1 answer:
aliina [53]4 years ago
4 0

Answer:

We can compute the diameter of the tree T by a pruning procedure, starting at the leaves (external nodes).

  • Remove all leaves of T. Let the remaining tree be T1.
  • Remove all leaves of T1. Let the remaining tree be T2.
  • Repeat the "remove" operation as follows: Remove all leaves of Ti. Let remaining tree be Ti+1.
  • When the remaining tree has only one node or two nodes, stop! Suppose now the remaining tree is Tk.
  • If Tk has only one node, that is the center of T. The diameter of T is 2k.
  • If Tk has two nodes, either can be the center of T. The diameter of T is 2k+1.

Explanation:

We can compute the diameter of the tree T by a pruning procedure, starting at the leaves (external nodes).

  • Remove all leaves of T. Let the remaining tree be T1.
  • Remove all leaves of T1. Let the remaining tree be T2.
  • Repeat the "remove" operation as follows: Remove all leaves of Ti. Let remaining tree be Ti+1.
  • When the remaining tree has only one node or two nodes, stop! Suppose now the remaining tree is Tk.
  • If Tk has only one node, that is the center of T. The diameter of T is 2k.
  • If Tk has two nodes, either can be the center of T. The diameter of T is 2k+1.
You might be interested in
Which of the following is not an example of heat generation? a)- Exothermic chemical reaction in a solid b)- Endothermic Chemica
Sav [38]

Answer:

b) Endothermic Chemical Reactions in a solid

Explanation:

Endothermic reactions consume energy, which will result in a cooler solid when the reaction finishes.

8 0
3 years ago
Pine Valley Furniture wants to use Internet systems to provide value to its customers and staff. There are many software technol
qaws [65]

Answer:

In these present generation, every day a new technology is coming. People are adopting these technologies very fast. If we think ," we have learned C language , now why to worry about java " . Then that is called you are bounding yourself to a technology. You are not ready for the growth.

With the invent of new technologies, if we have basic idea of how it works, we can simply implement it. At the end of day , it doesn't really matter how many lines of code you have written , it is just about efficiency. How Efficiently you are writing your code.

So, When Efficiency is the only thing that matters to the organizations , they are ready to take up new technologies and they will try to work-out with them. This is the trend in IT .Every month a new technology comes, respective people will be trained on that and they will implement/migrate the existing projects into new efficient model.

If we really learn and implement things using advance technologies , people will get an exposure to new technologies as well as the organization will get good impact on them , for spending resources on learning new technologies in the market. Apart from that , everyone will be happy for adopting new stack of technologies for them.

If we observe the existing technologies:

Programming languages are :

C, JAVA, PYTHON,R , SCALA

web development technologies:

HTML,CSS , JAVASCRIPT, ANGULAR,REACT , BOOTSTRAP , NODE.JS, MongoDB....etc

databases skills:

SQL, oracle,mySQL, postgres and so many cloud databases also available.

So, there are plenty of opportunities that are available . There are life time courses available to learn new technologies.

LEARN..RELEARN....UNLEARN

this is the motto of many organizations. They simply learn one technology and they'll forget it . If something new comes, they'll learn and implements it.This is the current trend in software industry.

3 0
4 years ago
6. Question
valkas [14]

Answer:

Check  the 2nd, 3rd and 4th statements.

Explanation:

4 0
3 years ago
When cutting a FBD through an axial member, assume that the internal force is tension and draw the force arrow _______ the cut s
shepuryov [24]

Problem-Solving Tip: When cutting an FBD through an axial member, assume that the internal force is tension and draw the force arrow directed away from the cut surface. If the computed internal force value turns out to be a positive number, then the assumption of tension is confirmed.

3 0
2 years ago
How do information systems support the activities in a supply chain?
Degger [83]

Answer:

the no. of activities supply in a cahin like in the figuration wise they supply the chain

6 0
3 years ago
Other questions:
  • Block B starts from rest, block A moves with a constant acceleration, and slider block C moves to the right with a constant acce
    11·1 answer
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • What is compression ratio of an Otto cycle? How does it affect the thermal efficiency of the cycle?
    14·1 answer
  • A subsurface exploration report shows that the average water content of a fine-grained soil in a proposed borrow area is 22% and
    9·1 answer
  • Phân tích phương pháp gia công plasma
    10·1 answer
  • Work to be performed can come from the work package level of the work breakdown structure as well as other sources. Which of the
    11·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
  • In an RL parallel circuit, VT = 240 V, R = 330 Ω, and XL = 420 Ω. What is the Apparent Power (VA)?
    9·1 answer
  • Which of the following might a cement mason or concrete finisher be responsible for? (Select all that apply).
    5·1 answer
  • A 20cm-long rod with a diameter of 0.250 cm is loaded with a 5000 N weight. If the diameter of the bar is 0.490 at this load, de
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!