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

easy way to remember separatists were
49.564 expanded form using fraction or decimal
What would Shakespeare have meant in using the word prevent?
Who referred to the domino theory as a reason to support liberation of communist countries?
Who referred to the domino theory as a reason to support liberation of communist countries?
To find an approximate value for a number is called?
who was king Louie the 3rd
Choose the sentence which contains an indirect object. A. They gave me a bonus. B. It is difficult to save money. C. I worked hard each day. D. I spent it
what is 1 64/100 in simplest form? how do I solve it
Which statements about the war in Vietnam are true? Choose all answers that are correct. a. Once South Vietnam surrendered, the rest of Southeast Asia soon fel