A search for an item X in a portion of a sorted array works by repeatedly selecting the middle item and comparing it to X.If X is not found there,the search method selects either the portion of the array to the left of the middle item,or the portion of the array to the right of the middle item,and continues the search.This method is called
A) sequential search
B) binary search
C) selection search
D) None of the above
Correct Answer:
Verified
Q23: A contigous segment of an array is
Q24: The addition of two integers
A) is always
Q25: On the average,performing a sequential search on
Q26: A computational problem is
A) a problem that
Q27: A basic step is
A) an operation that
Q29: The method int getPosition(int array[],int X)is designed
Q30: Let F be an algorithm with complexity
Q31: The two criteria most often used to
Q32: If an array is known to be
Q33: Let F be an algorithm with complexity
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents