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]
3 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]3 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
How is air pressure affected by the shape of an aircraft wing
oksano4ka [1.4K]

Answer:

Airplanes' wings are curved on top and flatter on the bottom. That shape makes air flow over the top faster than under the bottom. As a result, less air pressure is on top of the wing. This lower pressure makes the wing, and the airplane it's attached to, move up.

Explanation:

3 0
3 years ago
You set a sensor to transmit the wind speed on top of a mountain. Which of these languages are you most likely to have used?
kifflom [539]

The programming language that is most likely used to transmit the wind speed is: B. SQL.

<h3>What is SQL?</h3>

SQL is an acronym for structured query language and it can be defined as a domain-specific programming language that is designed and developed for the management of various data that are saved in a relational or structured database.

This ultimately implies that, a structured query language (SQL) can be used to communicate with a database in accordance with the American National Standards Institute (ANSI) standards.

In conclusion, the programming language that is most likely used to transmit the wind speed is SQL.

Read more on SQL here:

brainly.com/question/25266787

#SPJ1

8 0
2 years ago
What is an example of a class 2 lever?
9966 [12]

Answer:

A wheelbarrow, a bottle opener, and an oar are examples of second class levers

6 0
3 years ago
Read 2 more answers
Determine an expression in standard form for the voltage gain VoVs. Hv(jω)=Vo(jω)Vi(jω)=R2R111+jωCR2 Hv(jω)=Vo(jω)Vi(jω)=−R2R111
IceJOKER [234]

Answer:

Applying Kirchhoff's current law at inverting terminal

Explanation:

Detailed explanation is given in the attached document.

5 0
3 years ago
The production process of rods from machine "A" yields specimen with the following specs. Mean: µ(LA)=20.00mm, STD: s(LA)=0.50mm
Oxana [17]

Answer: the standard deviation STD of machine B is s (Lb) = 0.4557

Explanation:

from the given data, machine A and machine B produce half of the rods

Lt = 0.5La + 0.5Lb

so

s² (Lt) = 0.5²s²(La) + 0.5²s²(Lb) + 0.5²(2)Cov (La, Lb)

but Cov (La, Lb) = Corr(La, Lb) s(La) s(Lb) = 0.4s (La) s(Lb)

so we substitute

s²(Lt) = 0.25s² (La) + 0.25s² (Lb) + 0.4s (La) s(Lb)

0.4² = 0.25 (0.5²) + 0.25s² (Lb) + (0.5)0.4(0.5) s(Lb)

0.64 = 0.25 + s²(Lb) + 0.4s(Lb)

s²(Lb) + 0.4s(Lb) - 0.39 = 0

s(Lb) = { -0.4 ± √(0.16 + (4*0.39)) } / 2

s (Lb) = 0.4557

therefore the standard deviation STD of machine B is s (Lb) = 0.4557

8 0
3 years ago
Other questions:
  • When removing the balance shaft assembly: Technician A inspects the bearings for unusual wear or damage. Technician B smoothens
    15·1 answer
  • What are the four basic parts of process plan
    11·1 answer
  • A block of mass M rests on a block of mass M1 = 5.00 kg which is on a tabletop. A light string passes over a frictionless peg an
    14·1 answer
  • The convection heat transfer coefficient for a clothed person standing in moving air is expressed as h 5 14.8V0.69 for 0.15 , V
    6·2 answers
  • How to update android 4.4.2 to 5.1 if there isnt any update available​
    15·2 answers
  • Three-dimensional measuring references all of these EXCEPT:
    10·1 answer
  • Technician A states that a scan tool can read
    13·1 answer
  • How do you identify all sensors, functions, and where we can use them?
    12·1 answer
  • A) If a given directional antenna can receive 15 times the power of an isotropic antenna, what is
    11·1 answer
  • One of the key characteristics of ________ sessions is that no idea should be immediately accepted or rejected. prototype alpha
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!