tylerswanson3861 tylerswanson3861
  • 01-09-2020
  • Mathematics
contestada

Show the steps for the merge sort to sort the following values: {199,16,186,115,158,135,186,14,10}

Respuesta :

Chimara
Chimara Chimara
  • 03-09-2020

Answer:

Step-by-step explanation:

STEP 1: Show the array of values.

The array is {199, 16, 186, 115, 158, 135, 186, 14, 10}

STEP 2: Determine the number of elements/values.

Here, it is 9

STEP 3: Starting from zero, assign number tags to each value.

Since the values are 9 in number, the numerical tags will be 0, 1, 2, ..., 8

mv

STEP 3: Check if the sub-array is a base case.

This sub-array has at least 2 figures or values, hence is not a base case.

STEP 4:

Answer Link

Otras preguntas

how would you classify the relationship between the age of people on the number of books they read
Make a case for the removal of Native Americans from the Western Plains to reservations.
mason is growing tomatoes in his garden this year. every 1.5 ft of stalk yields about 3.4 lbs of tomatoes. he has four plants with a combined stalk lenghth of 1
list five numbers that hav 3,5,and 7 as prime factors
solve each system using substitution x=-2y=1 x=y-5
TRUE OR FALSE? The genetic code is determined by the SIZES of the nitrogen bases.
Why did earlier historians consider the Medieval Period the "Dark Ages"?
a supplier sells 2 1/4 lbs mulch for every 1 1/3 lbs gravel. the supplier sells 172 pounds of them combined. how many pounds of each does the supplier sell
how did cyrus the great hold his growing empire together
The ratio of pens to pencils in Carlo case is 4:5 .He has 16 pens.how many pencils does Carlos have?