Background: When searching for an item in a list, each item that we examine (compare) is considered to be interrogated. If we search for John, the following names are interrogated: Harry, Larry, John (in that order). If two names tie for the middle position, choose the first of the two names for the middle. If we search this same list for John using the Sequential search we would interrogate all the names from Alice through John. We would start with Alice, move to Bob, move to Carol and so forth until we reached John. Directions: Use the original list of names (Alice - Oliver) to answers questions 1-8. Using a sequential search, what names are interrogated to find Carol? Using a sequential search, what names are interrogated to determine that Sam is not in the list? Using a binary search, what names are interrogated to find Carol? Using a binary search, what names are interrogated to determine that Sam is not in the list? Will a binary search or sequential search find Alice more quickly? Will a binary search or sequential search find a name in the middle of the list more quickly? Will binary search or sequential search find the absence of a name more quickly? In general, will the binary search or sequential search find an item more quickly? Show what the following list would look after it is sorted using Selection sort. 10. Show what the following list would look after sorted using Insertion sort.
Background: When searching for an item in a list, each item that we examine (compare) is considered to be interrogated.
If we search for John, the following names are interrogated: Harry, Larry, John (in that order). If two names tie for the middle position, choose the first of the two names for the middle.
If we search this same list for John using the Sequential search we would interrogate all the names from Alice through John. We would start with Alice, move to Bob, move to Carol and so forth until we reached John.
Directions: Use the original list of names (Alice - Oliver) to answers questions 1-8.
- Using a sequential search, what names are interrogated to find Carol?
- Using a sequential search, what names are interrogated to determine that Sam is not in the list?
- Using a binary search, what names are interrogated to find Carol?
- Using a binary search, what names are interrogated to determine that Sam is not in the list?
- Will a binary search or sequential search find Alice more quickly?
- Will a binary search or sequential search find a name in the middle of the list more quickly?
- Will binary search or sequential search find the absence of a name more quickly?
- In general, will the binary search or sequential search find an item more quickly?
- Show what the following list would look after it is sorted using Selection sort.
10. Show what the following list would look after sorted using Insertion sort.


Trending now
This is a popular solution!
Step by step
Solved in 2 steps









