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
PLEASE ANSWER I WILL GIVE YOU BRAINIEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
morpeh [17]

Answer:

C.

Step-by-step explanation:

y = 6x

if x = 1 , y = 6

if x = 2 , y = 12

if x = 3 , y = 18

if x = 4 , y = 24

4 0
2 years ago
1. a motor car race is 500 miles long and consists of completing laps of a circular speedway
Zarrin [17]

The function y = 2.5x + 500 represents the total number of miles if the motor car race is 500 miles long, option (d) is correct.

<h3>What is a function?</h3>

It is defined as a special type of relationship, and they have a predefined domain and range according to the function every value in the domain is related to exactly one value in the range.

We have:

y represents the number of miles a motor car has left to go in the race

x represents the number of laps completed by the motor car

The total number of miles if we consider only circular speedways = 2.5x

The total number of miles:

y = 2.5x + 500  (because 500 is the constant)

Thus, the function y = 2.5x + 500 represents the total number of miles if the motor car race is 500 miles long option (d) is correct.

Learn more about the function here:

brainly.com/question/5245372

#SPJ1

7 0
1 year ago
I WILL GIVE 300 POINTS PLEASE JUST HELPP MEE AND I WILL MARK BRAINLY!!
Anon25 [30]

Answer:

it is equivalent

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Multiply &amp; Simplify.
kipiarov [429]
<span>2a(7a²-3a+9)
=14a^3 - 6a^2 +18a

answer is </span><span>D. 14a³-6a²+18a</span>
3 0
2 years ago
Helppp!!!! please!!!
Ulleksa [173]

Answer:

\boxed{Area = 32.5 mm^2}

Step-by-step explanation:

Area of Triangle = \frac{1}{2} (Base)(Height)

Where base = 13 mm, Height = 5 mm

Area = 1/2 (13)(5)

=> Area = 1/2 (65)

=> Area = 32.5 mm^2

5 0
3 years ago
Read 2 more answers
Other questions:
  • biancas employer matches 25% of her 401(k) contributions u to $1000 biancas salary is $50000 and last year she contributed $6000
    11·2 answers
  • Mike's age is five more than three times his sister's age. Mike is seventeen years old.
    15·2 answers
  • Anybody have the answer?
    15·1 answer
  • Which statement best describes making payments with a debit card?
    13·2 answers
  • Make a conjecture about the next item in the sequence. -2, 3, 8, 13, 18, 
    14·1 answer
  • Mr. pham cuts a cake into 8 equal slices. then, he cuts every slice in half. how many of the smaller slices does he have. use wo
    5·1 answer
  • Add or subtract write the ansewr in simplest form 1/4+1/10
    5·1 answer
  • -6/13 - (-7/15)<br> pls solve it for me !!! :)
    13·2 answers
  • Classify the quadrilateral, and then find the value of the variable for each figure:
    7·1 answer
  • What is an equation of the line that is parallel to y=3x-8 and passes through the point, (4,-5)
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!