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]
4 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]4 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
Triangle (-2,-2) (-6,-8) (-8,-8) over the x-axis. What are the new vertices?
ivanzaharov [21]
(-2,2) (-6,8) (-8,80
5 0
3 years ago
Need help ASAP<br> find the mean,median, range and IQR<br> brainliest
N76 [4]
The mean= 5.5

The median= 6

The range= 10

The IQR= 5

I really hope this helps:)
4 0
3 years ago
Read 2 more answers
Solve for X<br> 1) 5<br> 2) 6<br> 3) 4<br> 4) 3
Molodets [167]

Answer:

x = 4

Step-by-step explanation:

given 2 chords intersecting inside a circle , then

the product of the parts of one chord is equal to the product of the parts of the other chord, that is

9 × 4x = 8(4x + 2)

36x = 32x + 16 ( subtract 32x from both sides )

4x = 16 ( divide both sides by 4 )

x = 4

8 0
2 years ago
2q+4q+3 what do it equal
Leto [7]

Add the similar variables (think apple+apple), in this case, we would add 2q+4q.

Well, what is 4 apples plus 2 apples? 6 apples, simply, 6q

Since 3 is without a variable, we will leave it as is

Therefore, 2q+4q+3= 6q+3

Hope this helped :)

8 0
3 years ago
Read 2 more answers
If Alex has 4 times as many dimes as nickels and they have a combined value of 270 cents, how many of
bija089 [108]

Answer:

Nickel has 54 cents and Alex has 216 cents.

Step-by-step explanation:

Hope it helps u :)

5 0
3 years ago
Other questions:
  • An isosceles triangle has two sides of equal length, a, and a base, b. The perimeter of the triangle is 15.7 inches, so the equa
    8·2 answers
  • In the problem 3 x 5 = 15, the 3 and the 5 are called WHAT IS IT Called
    9·2 answers
  • Which equation represents the line that passes between (-8, 8) and (4, 2)?
    12·1 answer
  • What is this answer???
    13·1 answer
  • The temperature at 8 p.m. was 6 degrees. at 2 p.m. the temperature decreased 13 degrees. What was the temperature at 2 a.m.?
    14·1 answer
  • He length of a rectangle is five times its width.
    5·2 answers
  • How many 3/2s are in 5
    14·2 answers
  • 7x + 15 = 12x + 5 <br> Solve with multiple operations
    11·2 answers
  • (a) Amy pumped 35 gallons of water out of her pool. This was done over a period of 5 minutes at
    12·1 answer
  • 13 Points: 13 points if answered with brainliest.<br><br> please help is always needed!
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!