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
melamori03 [73]
3 years ago
13

Consider the following list. list = {24, 20, 10, 75, 70, 18, 60, 35} Suppose that list is sorted using the insertion sort algori

thm as discussed in the book. What is the resulting list after two passes of the sorting phase; that is, after three iterations of the for loop?a. list = {10, 18, 20, 24, 75, 70, 60, 35}b. list = {10, 20, 24, 75, 70, 18, 60, 35}c. list = {10, 18, 20, 24, 35, 70, 60, 75}d. list = {10, 20, 20, 18, 35, 70, 60, 75}
Engineering
1 answer:
Greeley [361]3 years ago
8 0

Answer:

Option B

10,20,24,75,70,18,60,35

Explanation:

The first, second and third iteration of the loop will be as follows

insertion sort iteration 1: 20,24,10,75,70,18,60,35

insertion sort iteration 2:10,20,24,75,70,18,60,35

insertion sort iteration 3: 10,20,24,75,70,18,60,35

You might be interested in
What should -7/56 BE DIVIDE TO GET -1/8​
aivan3 [116]

Answer:

7/7

Explanation:

7/56 ÷1

7/56÷ 7/7

7/56 ×7/7

1/8

5 0
3 years ago
Read 2 more answers
The inspector should inspect insulation in unfinished spaces, including attics, _____ and foundation areas.
RoseWind [281]

Answer:

basements

Explanation:

6 0
2 years ago
A body weighs 50 N and hangs from a spring with spring constant of 50 N/m. A dashpot is attached to the body. If the body is rai
lbvjy [14]

Answer:

a) 3.607 m

b) 1.5963 m

Explanation:

See that attached pictures for explanation.

3 0
3 years ago
Two vertical, parallel clean glass plates are spaced a distance of 2mm apart. if the plates are placed in water, how high will t
Ulleksa [173]

Answer with Explanation:

The capillary rise in 2 parallel plates immersed in a liquid is given by the formula

h=\frac{2\sigma cos(\alpha )}{\rho gd}

where

\sigma is the surface tension of the liquid

\alpha is the contact angle of the liquid

\rho is density of liquid

'g' is acceleratioj due to gravity

'd' is seperation between thje plates

Part a) When the liquid is water:

For water and glass we have

\sigma =7.28\times 10^{-2}N/m

\alpha =0

\rho _{w}=1000kg/m^3

Applying the values we get

h=\frac{2\times 7.28\times 10^{-2}cos(0)}{1000\times 9.81\times 2\times 10^{-3}}=7.39mm

Part b) When the liquid is mercury:

For mercury and glass we have

\sigma =485.5\times 10^{-3}N/m

\alpha =138^o

\rho _{w}=13.6\times 10^{3}kg/m^3

Applying the values we get

h=\frac{2\times 485.5\times 10^{-3}cos(138)}{13.6\times 1000\times 9.81\times 2\times 10^{-3}}=-2.704mm

The negative sign indicates that there is depression in mercury in the tube.

4 0
3 years ago
Given the strings s1 and s2, not necessarily of the same length, create a new string consisting of alternating characters of s1
andrew11 [14]

Answer:

THE ANSA IZ A

Explanation:

4 0
4 years ago
Other questions:
  • Mike is involved in developing the model building codes that various states and local authorities in the United States adopt. He
    6·1 answer
  • The two boxcars A and B have a weight of 20000lb and 30000lb respectively. If they coast freely down the incline when the brakes
    11·1 answer
  • The collar A, having a mass of 0.75 kg is attached to a spring having a stiffness of k = 200 N/m . When rod BC rotates about the
    15·1 answer
  • read a file called filled in with a few sentences or a paragraph. Then write a function called typoglycemia, which scrambles the
    13·1 answer
  • The ultimate BOD of a river just below a sewage outfall is 50.0 mg/L, and the oxygen deficit at the outfall D0 is 2.0 mg/L. The
    6·1 answer
  • What quantity measures the effect of change?
    12·2 answers
  • Define;<br>i) Voltage<br>ii) Current<br>iii) Electrical Power<br>iv) Electrical Energy​
    10·1 answer
  • Which lists the order of Energy Career Pathways from the source to the customer?
    9·2 answers
  • How to install a curt 5th wheel hitch in a 2017 chevy silverado
    14·1 answer
  • What is the tolerance of number 4?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!