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
lesya [120]
3 years ago
7

Here is an array of ten integers 6 4 0 3 9 8 1 7 2 5

Mathematics
1 answer:
garik1379 [7]3 years ago
6 0

Answer:

[4,0,3,1,2,5] and [6,9,8,7]

Step-by-step explanation:

GIVEN:  an array of ten integers 6,4,0,3,9,8,1,7,2,5.

TO FIND: If we partition this array using Quick sort's partition function and using 5 for the pivot. List the elements of the resulting array after the partition finishes.

SOLUTION:

quick sort is a divide and conquer algorithm in which an array is partitioned into sub-arrays about an pivot element by checking whether elements are greater than pivot or and then sub arrays are sorted recursively.

Here 5 is the pivot element.

two arrays will be created, in first array element less than or equal to pivot element are stored in other elements greater than pivot element are stored.

Starting from first element of array

elements in first array will be =[4,0,3,1,2,5]

elements in second array will be =[6,9,8,7]

Hence the resulting array after the partition finishes are [4,0,3,1,2,5] and [6,9,8,7]

You might be interested in
Help Plz (Emergency)
kompoz [17]

Answer: s = 36

Step-by-step explanation: The key to solving multistep equations is isolating the variable. This is why I first subtracted 14 on each side. This left me with 1/3s=12. Then, to isolate "s" even more, I didvided by 1/3 on each side. This gave me s = 36 as an answer.

To divide by a fraction, use "keep change flip." Keep the first mumber, change division to multiplication, and flip the fraction. I included a picture of me doing this.

If you have any other questions, please feel free to ask :)

3 0
3 years ago
Answer this correct and you are a true legend 9 + 10 = ? ...
S_A_V [24]

Answer:

AcORdinG To MY CaLCulAtIoNS ItS 21

Step-by-step explanation:

Logic :)

5 0
3 years ago
Express the relation {(-3, 4), (-1, 2), (3, -4), (2, -2)} as a table and a graph. What is the domain and range?
LuckyWell [14K]

Answer:

help

Step-by-step explanation:

please help please help please help please help please help first to asnwer gets brainleyist

2. Find the area of the parallelogram.

A.38cm

B.60cm

C.70cm

D.186cm

4 0
3 years ago
Read 2 more answers
Does someone mind helping me with this problem? Thank you!
Jet001 [13]

Answer:

875 ft²

Step-by-step explanation:

Finding area of similar rectangles:

Scale factor = EF : AB

                    = 25 : 5

                    = 5 : 1

\sf \dfrac{Area \ of \ bigger \ rectangle}{Area \ of \ smaller \ rectangle}= (Scale \ factor)^2

\dfrac{Area \ of \ bigger \  rectangle}{35} =\left(\dfrac{5}{1}\right)^2

\text{Area of bigger rectangle = $\dfrac{25}{1}*35$}

Area or rectangle EFGH = 875 ft²

4 0
2 years ago
Read 2 more answers
Bob has some 10 lb weights and some 3 lb weights. Together, all his weights add up to 50 lbs. If x represents the number of 3 lb
RUDIKE [14]
The equation would be 3x+10y=50.
7 0
3 years ago
Other questions:
  • What is an equivalent expression for the quotient? 4²/4⁵
    13·1 answer
  • How much money will you have if you started with $1250 and put it in an account that earned 6.7% every year for 14 years?
    12·1 answer
  • Jermaine did this work to solve an eqution, did he make an error 4x+6-x=2x+3 5x+6=2x+3
    6·1 answer
  • I need to no the answer to this
    9·1 answer
  • Just number 14 please
    10·1 answer
  • Lines p and q are crossed by transversal s. Classify 1 and 5
    6·1 answer
  • Given the following kite find:
    6·1 answer
  • Find the values of x and y.​
    9·1 answer
  • What is a simple way to find 12 mod 7 + 12 mod 7 + 12 mod 7 + 12 mod 7?
    7·1 answer
  • Chris said that a triangle takes up 1/2 the space of a rectangle, so the formula for finding the area of a triangle should be 1/
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!