What is the best case performance of a sequential search?
A. On
B. linear
C. quadratic
D. O(1)
Answer: D
You might also like to view...
When a presentation is open in Normal view, the current slide is displayed _____ of the PowerPoint window.
A. on the left B. in the center C. on the right D. on the top
This describes the process of the network administrator looking at the daily log of network activity.
What will be an ideal response?
(Bubble Sort) In the bubble sort algorithm, smaller values gradually “bubble” their way up- ward to the top of the array like air bubbles rising in water, while the larger values sink to the bot- tom. The bubble sort makes several passes through the array. On each pass, successive pairs of elements are compared. If a pair is in increasing order (or the values are identical), we leave the
values as they are. If a pair is in decreasing order, their values are swapped in the array. Write a program that sorts an array of 10 integers using bubble sort. What will be an ideal response?
Sorting alphabetically from Z to A or ordering numerically from largest to smallest is known as ________ order
A) Ascending B) alphabetical C) numerical D) Descending