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

Which of the following rational functions is graphed below?
One part of the space race involved competition to be the first county to?
Pleaseeeeeee help me!!!!!!!
In which sentence is the statement in parentheses capitalized and punctuated correctly? Brownwood’s historical commission (it bought the house two years ago) pl
Please help me out with this
Need Help With This One _-_-_-_-_
What term is used to describe a system that looses energy to objects that are not part of the system A. Raised B. Low C. Open D. Closed
Which source would be most useful for a journalist writing an article on NASA's long-term plans for a manned mission to Mars? (3 points) Science fiction novels
Use the quadratic formula to solve for the roots of the following equation. x ^2 – 4x + 13 = 0
Which one of these is a gas NaNo3 KL KCL NH3