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

solve this math mathematics problem –8z – 14z
The slope-intercept form of the equation of a line that passes through point (–2, –13) is y = 5x – 3. What is the point-slope form of the equation for this line
can you elaborate on the involvement of women in Greek drama?
Find the formula for the compound that contains 72.40% iron and 27.60% oxygen.
70x20=. what is the answer
Please Help Thank You
Which is evidence that scientists use to support the big bang theory? A. Earth is the only planet with permanent liquid water on its surface. B. The outer pla
When m and n are statements m\/ n is called the _____ of m and n A) disjunction B) negation C) conjunction
When Mr. Whymper visited from the outside world, how did Napoleon hide the declining state of Animal Farm from him?
Which sentence does not support the main idea? The greatest gift the Sumerians gave the world was the invention of writing. The Sumerians were a wealthy people