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

a soccer team played 160 games and won 65% of them. how many did they win?
What is a series of events that cells go through as they grow and divide
True or False along a divergent boundary, two plates slip past each other,moving in opposite directions.
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5
What is a group of organisms that look alike and can reproduce among their selfs ?
Rico is making4 batches of mexican rice. each batch needs 2/3cup of corn. He only has a1/3-cup measure.How manytimes must Rico measure 1/3cup of corn to have en
The gases in the air attracted to earth by gravity form layers called the ____
How did Alexander the Great rise to power and how did he spread Greek culture to other lands?
What is a group of organisms that look alike and can reproduce among their selfs ?
Why did president Washington want the United States to remain neutral