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
Find last​ year's salary​ if, after a 4 % pay​ raise, this​ year's salary is $ 33,280.
son4ous [18]

Answer: 31,948.80

Step-by-step explanation: I thin it his is correct. I multiplied the original amount by .04 then subtracted that from the original number.

6 0
3 years ago
6. Regroup the numbers in the following problems, putting the numbers that add up to 10 or a multiple of 10 in parentheses.
svetoff [14.1K]

Answer:

a) (2+8)+9

b) (3+7)+5+4

c) (4+16)+2

d) (31+9)+4

Step-by-step explanation:

a) 2+9+8

2 and 8 add up to 10, so we regroup them in parentheses

(2+8)+9


b) 3 + 5 + 4 + 7

3 and 7 add up to 10, so we regroup them in parentheses

(3+7)+5+4


c) 4 + 2 + 16

4 and 16 add up to 20 which is a multiple of 10, so we regroup them in parentheses

(4+16)+2


d) 31 + 4 + 9

31 and 9 add up to 40 which is a multiple of 10, so we regroup them in parentheses

(31+9)+4

4 0
3 years ago
Which is true of an adjustable rate mortgage?
stealth61 [152]

Answer:

The rate of interest may vary , totally depends on the market value of that agency or company or the financial agency which is providing the mortgage money at certain rate. So, option (B) the interest rate may change depending on the condition of the economy is true statement regarding adjustable rate mortgage.Step-by-step explanation: hope it helps

5 0
3 years ago
Which figure could be the result of dilating the trapezoid with a scale factor between 0 and 1? On a coordinate plane, a trapezo
Lena [83]

Answer:

On a coordinate plane, a trapezoid has points (0, 0), (0.5, 2), (1, 2), (1.5, 0).

Step-by-step explanation:

If a trapezoid is dilated with a scale factor between 0 and 1, the resulting trapezoid will look smaller than the original trapezoid.

Since the figure is missing, we can examine the coordinates.

By analyzing the coordinates critically, the correct choice is :

On a coordinate plane, a trapezoid has points (0, 0), (0.5, 2), (1, 2), (1.5, 0).

Because when we compare to the original figure with coordinates:

(0, 0), (1, 4), (2, 4), (3, 0), we can see that, the coordinates of the original figure were multiplied by \frac{`1}{2} .

The scale factor is k=\frac{`1}{2} and this is between 0 and 1

5 0
3 years ago
In the triangle shown, determine Angle A to the nearest degree.
g100num [7]

Answer:

  1. 12.............................
3 0
3 years ago
Read 2 more answers
Other questions:
  • Solve the inequality. Write the solution in set-builder notation.
    10·1 answer
  • There are 158 students registered for American History classes. There are twice as many students registered in second period as
    8·1 answer
  • On Monday, Sarah has to meet her friend at the park after school. The distance from her house to school is 2x+5. The distance fr
    11·1 answer
  • Mr. Clark wants to pay for his order with a $20 bill, but Jeremy does not have change. Jeremy tells Mr. Clark he will give him t
    14·1 answer
  • Un alumno multiplica un número por 32 en lugar de multiplicarlo por 23, obteniendo un producto mayor en 54 al producto original.
    14·1 answer
  • 2. The point (0,0) is a solution to which inequality?
    14·1 answer
  • Floyd is an aspiring music artist. He has a record contract that pays him a base
    6·1 answer
  • TWO questions! PLEASE HELP ME!
    14·2 answers
  • Find the value of x.
    15·1 answer
  • EQUILATERAL<br><br> ISOSELES<br><br> SCALENE
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!