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
Alexus [3.1K]
3 years ago
15

typedef struct bitNode { int data; struct bitNode *left; struct bstNode *right; } bstNode; int solve(bstNode* root) { if (root =

= NULL) return 0; int res = root->data; int left = solve(root→left); int right = solve(root->right); if (left+right > res) res = left+right; printf("%d,", res); return res; }_____ , _____ , _____ , _____ ,_____ , _____ , _____ , _____ , _____ , _____
Engineering
1 answer:
Sergio039 [100]3 years ago
4 0

Answer:

The ten numbers to be filled in the blanks are: 18, 7, 7, 11, 18, 36, 3, 8, 13, 50.

Explanation:

keeps on going to the left node until node->left == NULL;

now at Node 18;

left = right = 0; hence condition is not satisfied

18 is printed first.

the value 18 is returned .

Then we reach at 4;

from there we move to 7;

just like 18, similar things happen with 7 and 7 is printed, the value 7 is returned.

Now coming to Node 4,

left = 0, right = 7 ; hence the condition is satisfied & res = 7; 7 is printed.

For Node 16, left = 7 ; right = 11(but for this we visit 11 first and 11 is printed)

for 16; condition is satisfied; res = 7 + 11 = 18 ; 18 is printed

Now for 5; left = right = 18; the condition is satisfied; so res = 18 + 18 = 36; 36 is printed

Next we visit Node 3; 3 is printed & 3 is returned

Then Node 8 ; 8 is printed & 8 is returned

for Node 13; left = 3, right = 8 ; condition is not satisfied, 13 is printed.

For Node 50; left = 36 right = 13 ; condition is not satisfied hence 50 is printed.

So the order of printing is  18 7 7 11 18 36 3 8 13 50.

You might be interested in
A seawall with an opening is used to dampen the tidal influence in a coastal area (and limit erosion). The seawall is 2.5 m long
raketka [301]

Answer:

The maximum allowable Height of the slot is 11.685mm

Explanation:

The explanation is attached. The approach used is Bernoulli's equation

Download pdf
3 0
3 years ago
A venturi meter is to be installed in a 63 mm bore section of a piping system to measure the flow rate of water in it. From spac
Alex Ar [27]

Answer:

Throat diameter d_2=28.60 mm

Explanation:

 Bore diameter d_1=63mm  ⇒A_1=3.09\times 10^{-3} m^2

Manometric deflection x=235 mm

Flow rate Q=240 Lt/min⇒ Q=.004\frac{m^3}{s}

Coefficient of discharge C_d=0.8

We know that discharge through venturi meter

 Q=C_d\dfrac{A_1A_2\sqrt{2gh}}{\sqrt{A_1^2-A_2^2}}

h=x(\dfrac{S_m}{S_w}-1)

S_m=13.6 for Hg and S_w=1 for water.

h=0.235(\dfrac{13.6}{1}-1)

h=2.961 m

Now by putting the all value in

Q=C_d\dfrac{A_1A_2\sqrt{2gh}}{\sqrt{A_1^2-A_2^2}}

0.004=0.8\times \dfrac{3.09\times 10^{-3} A_2\sqrt{2\times 9.81\times 2.961}}{\sqrt{(3.09\times 10^{-3})^2-A_2^2}}

A_2=6.42\times 10^{-4} m^2

 ⇒d_2=28.60 mm

So throat diameter d_2=28.60 mm

     

4 0
3 years ago
Shear strain can be expressed in units of either degrees or radians. a)True b)- False
ExtremeBDS [4]

Answer:

true

Explanation:

shear strain is define as the ratio of change in deformation to the original length perpendicular to the axes of member due to shear stress.

     ε    = deformation/original length

         

strain is a unit less quantity but shear stain is generally expressed in radians but it can also be expressed in degree.

3 0
3 years ago
Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
Kazeer [188]

The answer for the ideal mechanical advantage and actual mechanical advantage for the different scenarios are;

A) Ideal Mechanical Advantage = 18.67

B) Actual Mechanical Advantage = 4.1067

We are given;

Input distance; The diameter of the wheel; d_w = 14 inches

Output distance; The diameter of the axle that drives the wheel; d_a = 3/4 inches

The force needed to cut a one-inch-thick softwood board; F = 1.75 pounds

The efficiency of the band saw; η = 22% = 0.22

A) Formula for Mechanical advantage is;

M.A = Force output/Force input = (Input distance)/(Output distance)

Thus;

Ideal mechanical advantage = 14/(3/4)

Ideal mechanical advantage = 18.67

B) Now, we are given that efficiency of the band saw is η = 22% = 0.22.

Thus using the mechanical advantage formula above;

Actual mechanical advantage = 0.22 × Expected output

Actual mechanical advantage = 0.22 × 18.67

Actual mechanical advantage ≈ 4.1067

Read more about Mechanical Advantage at; brainly.com/question/18345299

5 0
2 years ago
Which step in the engineering design phase is requiring concussion prevention from blows up to 40 mph an example of?
Charra [1.4K]

Answer:

Target your customers

Explanation:

took the test :)

6 0
3 years ago
Other questions:
  • A 10-ft-long simply supported laminated wood beam consists of eight 1.5-in. by 6-in. planks glued together to form a section 6 i
    5·1 answer
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • Determine F12 and F21 for the following configurations: (a) A long semicircular duct with diameter of 0.1 meters: (b) A hemisphe
    10·1 answer
  • A water tower that is 90 ft high provides water to a residential subdivision. The water main from the tower to the subdivision i
    10·1 answer
  • A 2.5 m wide rough continuous foundation is placed in the ground at 1 m depth. There is bedrock present at 1 m depth below the b
    12·1 answer
  • Pleaseeee help me with this!!
    10·1 answer
  • Multiple Choice
    7·1 answer
  • The hydrofoil boat has an A-36 steel propeller shaft that is 100 ft long. It is connected to an in-line diesel engine that deliv
    8·1 answer
  • Are there any companies that you can get a job at as an air craft engeer after university​
    14·1 answer
  • que sabemos de la revolución industrial y como ese proceso impulso el uso de los controles eléctricos en las industrias
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!