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
Sasha goes back through her architectural design books for inspiration and designs the new country club to have a Romanesque fee
vfiekz [6]
She should create a computer animated view of the design to walk the client through it so that client will understand and get the picture of the design.
3 0
3 years ago
Do plastic materials have high or low ductility? Explain why.​
Flura [38]
The impact behavior of plastic materials is strongly dependent upon the temperature. At high temperatures, materials are more ductile and have high impact toughness. At low temperatures, some plastics that would be ductile at room temperature become brittle.
3 0
3 years ago
In plumbing what is a video snake used for
aleksley [76]

Answer:

How to stop toilets  

Explanation:

I think

Hope this helps

7 0
3 years ago
Read 2 more answers
A rod that was originally 100-cm-long experiences a strain of 82%. What is the new length of the rod?
Ierofanga [76]

Answer: (b)

Explanation:

Given

Original length of the rod is L=100\ cm

Strain experienced is \epsilon=82\%=0.82

Strain is the ratio of the change in length to the original length

\Rightarrow \epsilon =\dfrac{\Delta L}{L}\\\\\Rightarrow 0.82=\dfrac{\Delta L}{100}\\\\\Rightarrow \Delta L=82\ cm

Therefore, new length is given by (Considering the load is tensile in nature)

\Rightarrow L'=\Delta L+L\\\Rightarrow L'=82+100=182\ cm

Thus, option (b) is correct.

8 0
3 years ago
Given the following phasors and the information related to the frequency of that phasor, provide the corresponding time-domain r
Evgesh-ka [11]

Answer:

Explanation:

In Engineering and Physics a Phasor That is a portmanteau of phase vector, is a complex number that represents a sinusoidal function whose Amplitude (A), Angular Frequency (ω), and Initial Phase (θ) are Time-invariant.

For the step by step solution to the question you asked, go through the attached documents.

4 0
3 years ago
Other questions:
  • Two metallic terminals protrude from a device. The terminal on the left is the positive reference for a voltage called vx (the o
    8·1 answer
  • a vertical cylindrical container is being cooled in ambient air at 25 °C with no air circulation. if the initial temperature of
    12·2 answers
  • Name one challenge for engineering managers wanting to implement the concurrent engineering concept
    12·1 answer
  • What safty device in a pneumatic system prevents over pressurization of the compressor tank? 1) filter/dryer 2)pop-off valve 3)r
    12·1 answer
  • Steam enters a turbine at 4 MPa, 600°C and 115 m/s. It exits at 10 kPa, with a quality of 92% and the same velocity as the inlet
    13·1 answer
  • Which type of material is known as elastomers to materials scientists and engineers
    14·1 answer
  • Suppose that a one-celled organism can be in one of two states – either A or B. An individual in state A will change to state B
    15·1 answer
  • Which of these is shown in the photo below?
    8·1 answer
  • Use pseudocode. 1) Prompt for and input a saleswoman's sales for the month (in dollars) and her commission rate (percentage). Ou
    6·1 answer
  • What type of brake uses the inside of each rear wheel hub and rotor assembly as a parking brake drum?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!