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
Which expression is equivalent to 30 (1/2x - 2) +40 (3/4y-4)? (will add pic)
bixtya [17]

Answer:

C

Step-by-step explanation:

Given

30( \frac{1}{2} x - 2) + 40( \frac{3}{4} y - 4)

Multiply each of the terms in the first parenthesis by 30 and multiply each of the terms in the second parenthesis by 40.

= 15x - 60 + 30y - 160

= 15x + 30y - 220 → C

7 0
3 years ago
Can someone please help me
mrs_skeptik [129]

Step-by-step explanation:

5x=4x+12(corresponding angle)

5x-4x=12

x=12

if it is correct answer then please follow me

6 0
3 years ago
A plumber charges $25 for a service call plus $50 per hour of service. Write an equation in slope-intercept form for the cost, C
Alex787 [66]

C= 25$ + 50$ * h

8 hours 425$

10 hours 525$

4 0
3 years ago
What are the degree and leading coefficient of the polynomial of 12u3 -8 + 23u
irga5000 [103]

Answer:

Degree: 3

Leading Coefficient: 12

Step-by-step explanation:

Find the highest power to determine the degree, in this case it's 3. Then identify the term with the highest power (12u^3) to find the leading coefficient.

So, because 3 is the largest and only power in this equation, it is the degree. 12u^3 is the leading term (term containing the highest degree) and 12 is the coefficient attatched to the term. Hope that helped!

4 0
3 years ago
My question is in the picture please help. First answer gets brainliest​
Mandarinka [93]
Round 1 player 1 because 12 is the greatest number
5 0
2 years ago
Other questions:
  • Mindie tosses a coin 50 times and gets 32 heads. Adam tosses the same coin 50 times and gets 28 heads. Cam tosses the coin 50 ti
    15·1 answer
  • While driving on a highway Fiona averages 60 miles per hour .in the city she averages 30miles per hour .on a trip to her grandmo
    8·1 answer
  • I need to know How to solve it
    7·1 answer
  • Use a spinner to find the theoretical probability of spinning an even number. What is the theoretical probability of spinning an
    14·2 answers
  • What do experts agree is the best nutrition for a newborn baby?
    13·2 answers
  • For what value of x is the rational expression below when x is equal to 4? X+20/x+4
    7·1 answer
  • When negative five is subtracted from a number the result is 10. Find the number.
    9·2 answers
  • 2x-1=3/4x+9<br> Help Me Brainilist to whoever explains the best
    14·2 answers
  • Suppose that you have ​$4,000 to invest. Which investment yields the greater return over a 10 year​ period: 8.03% compounded dai
    9·1 answer
  • Angelo weighed 5 1/4 pounds when he was born. His sister, Carmen, weighed 7 1/2 pounds when she was born. How much heavier was C
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!