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

Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
How many miles can you get on one tank of gas if your tank holds 18 gallons and you get 22 miles per gallon?
which explorer sailed for france?
What is the slope of any line parallel to the line 8x + 9y = 3 in the standard (x,y) coordinate plane?
what does etymology study?
Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
Can someone please help me ?
If it takes Mark twice as long to earn $6.00 as it takes Carl to earn $4.00, what is the ratio of Mark’s pay per hour to Carl’s pay per hour?
Why were people from Africa brought to Georgia?
3x+y=4 2x+y=5 solve using linear combination