1.

The Worst case occur in linear search algorithm when(a) Item is somewhere in the middle of the array(b) Item is not in the array at all(c) Item is the last element in the array(d) Item is the last element in the array or is not there at allI have been asked this question in class test.My enquiry is from Sorting in chapter Query Processing Techniques of Database Management

Answer» CORRECT ANSWER is (d) ITEM is the last element in the array or is not there at all

Explanation: Algorithmic complexity is concerned about how fast or SLOW particular algorithm performs.


Discussion

No Comment Found

Related InterviewSolutions