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
4(x+4) + 2x = 52 need answer
Phoenix [80]

Answer:

x=6

Step-by-step explanation:

3 0
3 years ago
Please help marking brainliest if it's correct and explain​
yarga [219]
Imma take a guess maybe C
4 0
3 years ago
Can someone help me with these questions, don’t mind the answers written already
Rina8888 [55]

Answer:

a) x value is -2, min is -3(if thats y)

b) x value is 3, max is 21(if thats y)

Step-by-step explanation:

yes you do quadratic formula and such :)

8 0
1 year ago
Gollum eats fish on alternate days.How often doea he eat fish on a Monday?
VikaD [51]
He eats fish every other Monday
4 0
3 years ago
Read 2 more answers
Please help me with this
Citrus2011 [14]

I don't know the answer because of how zoomed in it is. But, you could make a cordinate grid and plot all of the numbers. Then, you would connect all of the lines and you will see that one line is missing in the parallelogram. You finish off that line yourself and write down the cordanite that you needed to complete the parallelogram. You will lastly put U=answer (the cordanite you got from finishing off the parallelogram).

5 0
3 years ago
Other questions:
  • .....................................
    10·1 answer
  • An item is regularly priced at $25. It is on sale for 80% off the regular price. What is the sale price?
    12·2 answers
  • I really need help with this !
    11·1 answer
  • Whats the definition of a line plot
    15·2 answers
  • Find the measure of angle x in the figure below:
    13·1 answer
  • How many total students have test scores less than 71 or greater than 90?
    15·1 answer
  • Which number line represents x&lt;2<br> -
    6·2 answers
  • Expand to write and equivalent expression: 4/5(5k-12d)
    13·1 answer
  • The EXACT value of 2÷(0.01)2 is
    11·2 answers
  • Bat ampanget ko???????????
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!