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
jenyasd209 [6]
3 years ago
7

What are the correct intermediate steps of the following data set when it is being sorted with the bubble sort? 15, 20, 10, 18

Mathematics
1 answer:
love history [14]3 years ago
4 0

Answer:

A. 15,10,20,18 -- 15,10,18,20 -- 10,15,18,20

Step-by-step explanation:

Bubble sorting can be defined as a technique or methodology whereby numbers that are not in their proper order are sorted into proper order that is from smallest to highest( increasing to decreasing order).

The method of bubble sorting involves the shuffling or swapping of adjacent numbers until the numbers are well sorted or arranged.

In the above question, we were given, a set of numbers:

15, 20, 10, 18

Step 1

20 is adjacent to 10

20 > 10

hence we swap

= 15,10,20,18

Step 2

From, 15,10, 20,18

20 is adjacent to 18

20 > 18

hence we swap

= 15,10,18,20

Step 3

From step 2, which gave us 15,10,18,20

15 us adjacent to 10

15 > 10

We swap

= 10,15,18,20

Hence,

15, 20, 10, 18 -- 15,10,20,18 -- 15,10,18,20 -- 10,15,18,20

Therefore, Option A is the correct option.

You might be interested in
PLSS WHAT IS THE ANSWER
Ket [755]
It’s negative by the looks of it.

If you solve it you get -2.5

I hope it’s correct!
6 0
2 years ago
Read 2 more answers
courtney has 155 coins in her purse. all of the coins are quarters and dimes, worth a total of $30.20. how many quarters does sh
Assoli18 [71]

Answer: she would have 98 quarters

3 0
3 years ago
Which number is equivalent to the expression 13+23 x 19-7)? A. 677 B. 443 C. 432 D. 289
vagabundo [1.1K]
13 + 23 · (19 - 7)

Do the parentheses first.

13 + 23 · (12)

Now do multiplication.

13 + 276 = 289

The answer is D) 289.
6 0
3 years ago
In which of the following division problems will the quotient be larger than the dividend? 1/2 ÷ 7 10 ÷ 5 1/4 ÷ 2 5 ÷ 1/6
Natasha2012 [34]

Is it all one equation or..? I dont get it


6 0
3 years ago
Read 2 more answers
Ted pay 12% in taxes out of his pay of $800. How much does he pay in taxes
arlik [135]
Pays 96$ in tax

800 x 0.12
5 0
3 years ago
Read 2 more answers
Other questions:
  • Prove that a lie divides two sides of a triangle proportionally is parallel to the third side. Be sure to create and name the ap
    7·1 answer
  • Question 5. We have 5-year statistics of average amount of wheat crop (tons) harvested from 1 km2 per year, the results are as f
    15·1 answer
  • Find the zeros of the function by rewriting in intercept form.
    6·1 answer
  • .<br> What is the y intercept of the line represented by the equation<br> 3x+2y = 6?
    12·1 answer
  • i need help with 3 (along with 3a-c) i am confused on what to do with the numbers that are in degrees...
    13·2 answers
  • Draw the image of triangle ABC after a reflection in the line y = x - 1, given the preimage has vertices at A(3,2), B(0,1) and C
    6·1 answer
  • Ms. Chin asked her students to use the properties of multiplication to rewrite the expression (negative 5) (Negative StartFracti
    14·2 answers
  • If g(x) =− 3x^2 + 5x − 7, determine g(− 3).
    9·1 answer
  • Find the solution to
    10·1 answer
  • Please help asap ! no scam links or scam comments for points or reported.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!