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

Are many valuable minerals found in or near areas of volcanic activity and mountain building?
why did president Truman believe that the United States should sign the North Atlantic treaty
please help Evaluate the expression when r = 8.2 and s = –3.7. r – 2s A. –22.94 B. 0.8 C. 4.5 D. 15.6
What is (7/12)/(5/9)? In simplest form..
by what length is is 0.5 m less than 10.05
All real number zeros of the polynomial 2x^4 + 4x^2 + 6x^9 - x + 3x^9 - 5x^9 + 2x^8
what is 140/216 in simplest forms
In a parallelogram, one angle is 9 times the size of another. Find the measures of the angles.
the bases of a softball field are 60 feet apart. How far apart is home plate from second base?
Which of the following 19th-century figures is known for opening Japan to U.S. trade? A)Franklin D. Roosevelt B)Francis Xavier C)Matthew Perry D)Sato Eisaku