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 circle has all three types of symmetry. a. True b. False
Water makes up _____ of the surface of Earth.
Who was te first president of USA?
Adding which terms to 3x2y would result in a monomial? Check all that apply. 3xy –12x2y 2x2y2 7xy2 –10x2 4x2y 3x3
subduction zones are found under which kind of plate?
Children and teenagers should receive vaccinations whenever it is convenient
What is the length of a notebook PLZ TELL ME I NEED TO FINISH MY HOMEWORK.thank you for your understanding
Mendel believed that during the formation of gametes, the pair of genes controlling a trait separate. He called this the principle of _____. a. dominance b. s
how big is the centuries old hurricane on Jupiter?
Which poet, who seems be using iambic pentameter, bends the meter most? A. Emma Lazarus B. Emily Dickinson C. John Donne D. Gerard Manley Hopkins