Question: Question 1 options: Given the following array of numbers: Trace the Binary Search algorithm that follows, to find an item whose value is 10 .

 Question 1 options: Given the following array of numbers: Trace the

Question 1 options:

Given the following array of numbers:

Binary Search algorithm that follows, to find an item whose value is

Trace the Binary Search algorithm that follows, to find an item whose value is 10.

10. Notes: First/Last/Middle refer to indices, not values. Use integer division when

Notes: First/Last/Middle refer to indices, not values. Use integer division when calculating Middle. Fill unused cells with an x.

First

Last Middle

Comparison

1.

2.

3.

Return Value (True/False):

Save

Question 2 (20 points)

calculating Middle. Fill unused cells with an x. First Last Middle Comparison

Question 2 options:

Given the following array of numbers:

1. 2. 3. Return Value (True/False): Save Question 2 (20 points) Question

Trace the Binary Search algorithm that follows, to find an item whose value is 60.

2 options: Given the following array of numbers: Trace the Binary Search

Notes: First/Last/Middle refer to indices, not values. Use integer division when calculating Middle. Fill unused cells with an x.

First

Last Middle

Comparison

1.

2.

3.

4.

Return Value (True/False):

Save

Question 3 (30 points)

algorithm that follows, to find an item whose value is 60. Notes:

Question 3 options:

Given the following array of numbers:

First/Last/Middle refer to indices, not values. Use integer division when calculating Middle.

Sort the list using the Selection Sort algorithm that follows. Show each iteration using the following table.

Fill unused cells with an x. First Last Middle Comparison 1. 2.

Notes: firstUnsorted & indexOfSmallest refer to indices. smallest refers to a value. Fill unused cells with x.

firstUnsorted smallest indexOfSmallest

List (One number per box):

firstUnsorted smallest indexOfSmallest

List (One number per box):

firstUnsorted smallest indexOfSmallest

List (One number per box):

firstUnsorted smallest indexOfSmallest

List (One number per box):

firstUnsorted smallest indexOfSmallest

List (One number per box):

firstUnsorted smallest indexOfSmallest

List (One number per box):

Save

Question 4 (30 points)

3. 4. Return Value (True/False): Save Question 3 (30 points) Question 3

Question 4 options:

Given the following array of numbers:

options: Given the following array of numbers: Sort the list using the

Sort the list using the Optimized Bubble Sort algorithm that follows. Show each iteration using the following table.

Selection Sort algorithm that follows. Show each iteration using the following table.

Note: firstUnsorted refers to an index. Fill unused cells with x.

firstUnsorted swap (T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

firstUnsorted swap(T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

firstUnsorted swap(T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

firstUnsorted swap(T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

firstUnsorted swap(T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

firstUnsorted swap(T/F)

List (Once the smallest item has bubbled-up to firstUnsorted) :

Save

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!