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
​In a sample of 800 U.S.​ adults, 199 think that most celebrities are good role models. Two Two U.S. adults are selected at rand
mel-nik [20]

Answer:

Step-by-step explanation:

Given that in a sample of 800 U.S.​ adults, 199 think that most celebrities are good role models. Two Two U.S. adults are selected at random from the population of all U.S. adults without replacement.

In 800 adults 199 are favourable and remaining 601 are against.

a) The probability that both adults think most celebrities are good role models is ________= Prob of selecting both from 199

= \frac{199C2}{800C2} \\=0.0616

=0.062

b) The probability that neither adult thinks most celebrities are good role models is _______=P(both selecting from 601)

=  \frac{601C2}{800C2} \\=0.5641

=0.564

c) The probability that at least one of the two adults thinks most celebrities are good role models ______

=1-Prob that neither thinks

= 1- 0.564

= 0.436

6 0
3 years ago
A jewellery shop sells 240 items in a month, 180 was sold online the rest were sold in store. Work out the ratio of online sales
cricket20 [7]

Answer:

3 : 1

Step-by-step explanation:

180 out of 240 sold online so (240 - 18) sold in store

180 : 60

18 : 6

3 : 1

5 0
3 years ago
Find the equation for the parabola that passes through the point (-2,-4), with vertex at (3,1) and a vertical axis
Igoryamba

Answer:

see explanation

Step-by-step explanation:

The equation of a parabola in vertex form is

y = a(x - h)² + k

where (h, k) are the coordinates of the vertex and a is a multiplier

Here (h, k) = (3, 1), hence

y = a(x - 3)² + 1

To find a substitute (- 2, - 4) into the equation

- 4 = a(- 2 - 3)² + 1

- 4 = 25a + 1 ( subtract 1 from both sides )

25a = - 5 ( divide both sides by 25 )

a = - \frac{5}{25} = - \frac{1}{5}

y = - \frac{1}{5} (x - 3)² + 1 ← in vertex form

7 0
3 years ago
Can you please help me solve J/7 = -6
MatroZZZ [7]

Answer:

The answer is J = -42

Step-by-step explanation:

if j/7 = -6

Then J = -6 ×7

J = -42

5 0
3 years ago
The second and 3rd legs of Kiley's journey are both relatively flat and seem to have the same steepness. Why are they flat? Why
ki77a [65]

Answer:I can't find a answer so just type IDK

Step-by-step explanation: IDK

3 0
2 years ago
Other questions:
  • How many bit strings of length 12 are palindromes and contain 10 as sub string
    11·1 answer
  • angelo earns 2080 each month his total deductions are 30% of his pay how much is deducted from his pay each month
    10·1 answer
  • Complete the square to form a perfect square trinomial x^2-14x+
    10·1 answer
  • Can someone help please!!!<br> Pictures below
    6·1 answer
  • What are Factors and Primes?
    10·1 answer
  • To start a boardgame,the player who rolls two sixes gets to go first. What is the probability that a play will roll two number c
    13·1 answer
  • In a class of pupils, 11 play the flute and piano.
    9·1 answer
  • Convert Decimal 98 to Binary<br> Pls help
    5·1 answer
  • The Graph of a function g is shown below. Find the following: g(10)
    14·1 answer
  • A circle has a diameter of 10 inches. Which expression could be used to find the area of the circle?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!