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

Answers

Answer 1

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.

Answer 2

The correct intermediate steps of data 15, 20, 10, 18 set when it is being sorted with the bubble sort is; Choice A: 15,10,20,18 -- 15,10,18,20 -- 10,15,18,20.

Definition;

Bubble sort, otherwise termed the sinking sort, is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.

With emphasis on the word adjacent, it is evident Choice A is the correct intermediate steps of the data set 15, 20, 10, 18 when it is being sorted with the bubble sort.

Read more:

https://brainly.com/question/15148294


Related Questions

A 6- foot roll of waxed paper costs $3.60. What is the price per inch?

Answers

Step-by-step explanation:

hope this helps

20 cent per inch

!Need help!

Solve using Substitution Method

2x + 5y = 7
x = 2 - 4y ​

Answers

Answer:

x = 6y = - 1

Step-by-step explanation:

2x + 5y = 7 ......... Equation 1

x = 2 - 4y .......... Equation 2

Substitute x that's equation 2 into equation 1 and solve for y

That's

2( 2 - 4y ) + 5y = 7

4 - 8y + 5y = 7

- 3y + 4 = 7

- 3y = 7 - 4

- 3y = 3

Divide both sides by - 3

y = - 1

Substitute the value of y into equation 1

That's

x = 2 - 4(-1)

x = 2 + 4

x = 6

Therefore the solutions are

x = 6y = - 1

Hope this helps you

ILL GIVE YOU BRAINLIST !!! Evaluate

4x – 2m

Answers

Answer:

m = 2x

Step-by-step explanation:

Simplifying

4x + -2m = 0

Reorder the terms:

-2m + 4x = 0

Solving

-2m + 4x = 0

Solving for variable 'm'.

Move all terms containing m to the left, all other terms to the right.

Add '-4x' to each side of the equation.

-2m + 4x + -4x = 0 + -4x

Combine like terms: 4x + -4x = 0

-2m + 0 = 0 + -4x

-2m = 0 + -4x

Remove the zero:

-2m = -4x

Divide each side by '-2'.

m = 2x

Simplifying

m = 2x

Answer:

Step-by-step explanation:

4x - 2m  = 4*8 - 2*3 = 32 - 6 = 26

Write an equation in slope intercept form that is parallel to y = 3x + 4 and goes through the point (-1,5)

Answers

Answer:

Step-by-step explanation:

y - 5 = 3(x + 1)

y - 5 = 3x + 3

y = 3x + 8

answer is C

2. What fractional part of the quadrilateral is not shaded? ​

Answers

Answer:

plz show the pic so I can understand

Can u please put a picture or more specific

Negotiating in trade means you are ________

A. coming to an agreement on an item's value
B. discussing how to get to market
C. calculating your total cost
D. exchanging a damaged good

Answers

Quizlet said the answer was A

Negotiating in trade means you are coming to an agreement on an item's value option (A) is correct.

What is negotiation?

The goal of negotiation is to obtain an agreement on one or more contentious issues between two or more parties.

As we know,

On the other hand, trade negotiation is a procedure whereby countries come together to talk about the potential for trade with the aim of arriving at a trade agreement.

When you bargain in trade, you're settling on a price for a product.

Thus, negotiating in trade means you are coming to an agreement on an item's value option (A) is correct.

Learn more about the negotiations here:

https://brainly.com/question/28461798

#SPJ2

which statement correctly describes the expression

Answers

Answer:

c

Step-by-step explanation:

choice A means

[tex]11 - 2 {m}^{3} [/tex]

choice B means

[tex]2m - 11[/tex]

choice C means which is the answer

[tex] {2m}^{3} - 11[/tex]

choice D means

[tex] {(2m)}^{3} - 11[/tex]

hope it helps ❤❤❤

For any question comment me

Sin(x)=x- x3/3!+x5/5!-x7/7!+....The percentage relative approximate error in using three terms to find sin(4.1) is ______percent.

Answers

Answer:

The answer is "239.62%".

Step-by-step explanation:

Given value:

[tex]\bold{\sin(x)=x- \frac{x^3}{3!}+\frac{x^5}{5!} - \frac{x^7}{7!}+....}[/tex]

Solve the first three values:

[tex]\sin(x)=x- \frac{x^3}{3!}+\frac{x^5}{5!}[/tex]

put the value of sin(4.1):

[tex]\to \sin(4.1)=(4.1)- \frac{(4.1)^3}{3!}+\frac{(4.1)^5}{5!} \\\\[/tex]

                 [tex]=(4.1)- \frac{(4.1)^3}{3!}+\frac{(4.1)^5}{5!} \\\\=(4.1)- \frac{68.92}{3 \times 2\times 1}+\frac{1158.56}{5\times 4 \times 3 \times 2 \times 1}\\\\[/tex]

                 [tex]=(4.1)- 11.48+9.65\\\\= 2.27[/tex]

The actual value of [tex]\sin(4.1) = -1.59[/tex]

Calculating the percentage relative approximate error value:

Formula:

[tex]=\frac{actual \ value - \ approx \ value }{actual \ value} \times 100\\\\[/tex]

[tex]=\frac{-1.59 - 2.27 }{-1.59} \times 100\\\\= \frac{-3.81}{-1.59} \times 100\\\\= \frac{3.81}{1.59} \times 100\\\\=239.62 \ \%[/tex]

Use the given data to find the minimum sample size required to estimate the population proportion. Margin of error: 0.028; confidence level: 99%; p and q unknownA) 1116B) 2115C) 1939D) 2223

Answers

I think the answer is c or d but I’m not sure tho

An angle measuring 32 degrees has a complement that measures (2x - 16)degrees. What is the value of x? (and the steps)

Answers

Answer:

37°

Step-by-step explanation:

32+2x-16=90

2x+16=90

2x=90-16

2x=74

x=37

Multiply the polynomial expressions below.
(7x + 5)(2x^3 - 4x^2 + 9x - 3)

Answers

Answer:

14x^8-18x^3+43x^2+24x-15

For the function f(x)=-1/3x-2, find the value of x for which f(x)=x.

Answers

Step-by-step explanation:

f(x)=-1/3x-2=x

3x²-2x-1=o

(3x-1)(x+1)=o

x=1/3(or)x=-1

I’m stuck please help?

Answers

Answer:

1,3,5,7,9...

Step-by-step explanation:

All of the answers go up by +2

Point Tis on line segment SU. Given TU = 4x + 1, SU = 8, and ST = 3x,

determine the numerical length of TU.

Answers

Answer:

5 units

Step-by-step explanation:

If point T is on the line segment SU, then ST + TU = SU.

Given

TU = 4x + 1

SU = 8

ST =  3x

To get TU, we need to get the value of x first. To get x, we will substitute the given parameters into the formula;

3x+4x+1 = 8

7x+1 = 8

subtract 1 from both sides

7x+1-1 = 8-1

7x = 7

divide both sides by 7

7x/7 = 7/7

x = 1

Substitute x = 1 into the length TU

Since TU = 4x+1

TU = 4(1)+1

TU = 5

Hence the numerical length of TU is 5 units

SoIve: -20 = -4x - 6x


x = 3.5
x = 2
x = 10
x = 4

Answers

Answer:

2

Step-by-step explanation:

-4x - 6x = -10x

Divide both sides by -10

what is 3.825 as a fraction with a guide?

Answers

Answer:

3 33/40 or 153/40

Step-by-step explanation:

For first answer change the decimal .825 into fraction by making it over 1000. Then Simplify. For the second answer, take the first answer, multiply 3 with 40 and add 33. In the end both answers are equivanlent.

If it is an addition problem with different signs what do you do

Answers

Answer:

To add integers with different signs, keep the sign of the number with the largest absolute value and subtract the smallest absolute value from the largest. Subtract an integer by adding its opposite.

plz give brainlist

hope this helped

Sonia wants to sew ribbon along each side of a square pillow if the pillow has an area of 144 in² how much ribbon must she by to have the exact amount that she needs

Answers

Answer:

12 in

Step-by-step explanation:

she has square pillow, so 12*12=144 sq in

If you parents made $4.00 an hour in 1980 and you make $12.00 an hour as a fryer technologist at Zippy burger today ,then you make three times as much as they did . yes ?NO?explain

Answers

If it is a strictly math question, then yes you theoretically make three times as much as your parents. Realistically, inflation and scarcity plays a large role in the actual monetary value of the dollar making it an unfair comparison. Depends on the framework of the question. Hope this helps!

Write the equation of a line that is parallel to y = 1/2 x + 5
that passes through the point (2,6).

Answers

Answer:

y = 1/2x + 5

Step-by-step explanation:

Slope-Intercept Form: y = mx + b

When 2 lines are parallel, they have the same slope.

Step 1: Define variables

Random point (2, 6)

m = 1/2

y = 1/2x + b

Step 2: Find b

6 = 1/2(2) + b

6 = 1 + b

5 = b

Step 3: Rewrite parallel linear equation

y = 1/2x + 5

Give two points with integer coordinates that have a slope of 5/7 between them.

Answers

Answer:

(2,3) and (7,10)

Step-by-step explanation:

Use the slope 5/7 to get to a new point by moving up 5 units and moving to the right 7 units.

If the coordinate point is (x, y) then the coordinate of the other point will be (x + 5, y + 7).

What is coordinate geometry?

Coordinate geometry is the study of geometry using the points in space. Using this, it is possible to find the distance between the points, the dividing line is m:n ratio, finding the mid-point of the line, etc.

The slope is the ratio of the rise or fall and run.

The slope is 5/7. The rise is 5 and the run is 7.

If the coordinate point is (x, y) then the coordinate of the other point will be (x + 5, y + 7).

More about the coordinate geometry link is given below.

https://brainly.com/question/1601567

#SPJ2

A teacher raised a total of $135 for school supplies. He divides the money evenly among his 10 students.

Answers

Answer:

Each gets $13.5

Step-by-step explanation:

135/10= 13.5  

Write with a single exponent 1/10*1/10*1/10


Please help

Answers

Answer:

[tex] {10}^{3} [/tex]

which statement most accurately describes what can happen to jobs in a bad economy​

Answers

What are the statements?

Ansewern

I think you forgot the stament and please add it so i can helpyou out with it.

Step-by-step explanation:

What is the volume of the figure?

Answers

It’s going to be the area of the triangle on the side times the length, so 0.5 x 36 x 15 x 48 = 12960

!!!URGENT!!! Read Image Below.

Answers

Answer:

[tex] x = \frac{6 \pm \sqrt{(-6)^2 - 4(3)(8)}}{2(3)} [/tex]

Step-by-step explanation:

Given the equation, [tex] 3x^2 - 6x + 8 = 0 [/tex], the quadratic formula for solving this equation is given as:

[tex] x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} [/tex]

Where,

a = 3

b = -6

c = 8

Plug in the above values into the quadratic formula.

[tex] x = \frac{-(-6) \pm \sqrt{(-6)^2 - 4(3)(8)}}{2(3)} [/tex]

[tex] x = \frac{6 \pm \sqrt{(-6)^2 - 4(3)(8)}}{2(3)} [/tex]

6 cousins inherited a total of 58 of their great aunt's assets which they divided evenly what fraction of their great aunt's assets to each cousin inherit

Answers

Answer:

9 1/9 per cousin

Step-by-step explanation:

if the aunt has 58 items to be distributed to 6 cousins, we would set a fraction of 58/6. performing that is 9 with 4/6 left over.

since there is 6 cousins, there will be 2/3 divided by 6 = 2/18, or 1/9

Answer:

the answer on eduguinty is 5/48 of the inherrit .

Step-by-step explanation:

:)

The scale of a map is 1 in = 11.9 miles. How many inches will be drawn on the map to represent 30.9 miles?​

Answers

Answer:

  2.60 inches

Step-by-step explanation:

Map and actual distances are proportional. So the map distance m for 30.9 miles will be related to the actual distance in the same way the scale is:

  m/30.9 = 1/11.9

  m = 30.9/11.9 ≈ 2.5967

The length on the map is about 2.60 inches.

write the number 3/100 as a decimal.

Answers

Answer:

Step-by-step explanation

0.03.

Give EG = 5x+7 EF =5x and FG=2x-7

Answers

Answer:

x = 7

42, 35, 7

Step-by-step explanation:

EG = 5x+7 EF = 5x  FG = 2x-7

Point F is on line segment of EG, therefore EG = EF + FG

5x + 7 = 5x + 2x - 72x = 14x = 7

Then

EG = 5*7 + 7 = 42EF = 5*7 = 35FG = 2*7 - 7 = 7
Other Questions
Read the sentence from the article.Even by day, armed men threaten travelers from makeshift roadblocks.What does "makeshift" suggest about the roadblocks?(A)The roadblocks are thrown together and permanent.(B)The roadblocks are manufactured and improvised.(C)The roadblocks are thrown together and temporary.(D)The roadblocks are manufactured and stopgap. Can anyone explain on how to answer this? 4. Reducing waste benefits your shop by cutting down on pollution and A) O Keeping employees healthy B) O Reducing tripping hazards C) O Lowering costs DO Improving employee efficiency what was the recoquista Cynthia, requested a two-week leave from her employer to go on a religious pilgrimage. The pilgrimage was not a requirement of her religion, but Cynthia felt it was a calling from God." Will it violate Title VII if Cynthia's employer does not grant her the leave? Explain. (Tiano V. Dillard Department Mores, Inc, 1998 WL 117864 (9th Cir. 1998)). HELPPP PLEASEE pleasee Suppose you know the number of protons in an atom. What other information would you need in order to determine the mass of the atom? Explain your reasoning. Help Plz Which of these rules is best applied before participating in a group discussion?Look at the person who is speaking.Pay atention to what others are sayingRead about the topic of the discussionWeat for your tum to speak Given f(x)5x + 12 , solve for f-1(8). How did rakesh and his grandfather spend the the wither evening Need help please and thank you! Concept formation is the ability to categorize information that aids in cognitive development. Please select the best answer from the choices provided T F Performing an action that directly causes someone to die-what most people think of as "mercy killing"-is called The change in allele frequencies that occur due to the colonization of a new location by a small group of individuals is called The pilot of a helicopter drops a lead brick from a height of 500 m. (assume no air resistance and g~10 m/s2) roles Evalu How long does it take to reach the ground? think about an inflated balloon and a small bag of marbles that is half its size . which one has more volume explain Order the set of numbers from least to greatest: 2.71 repeating 71, 2 and 3 over 4, square root 5, 5 over 2 Group of answer choices 2.71 repeating 71, 2 and 3 over 4, square root 5, 5 over 2. 5 over 2, square root 5, 2.71 repeating 71, 2 3 over 4 square root 5, 5 over 2, 2.71 repeating 71, 2 3 over 4 2 3 over 4, 2.71 repeating 71, 5 over 2, square root 5 Reposted this Bc idk if ppl saw it The essential element of geography called physical systems focuses on the study of What is the value of ( -3.8)+0+( -0.6)+6.4 ?