SHL.
Choose the correct option.
OPTIONS
Item can be the first element of the list
Paul knows that the complexity of a Sequential Search algorithm is O(n) where n is the number of
elements in the list. He writes a program implementing the same. While executing the program, in one
case of input-number to be searched combination, he found that the complexity was constant time
taking i.e., O(1). Which of the following options refers to such a combination of list-and-item to be
searched?
Item can be the middle element of the list
Item can be the last element of the list
Both 1 and 3
Both 1 and 2
Answers
Answered by
8
Answer:
He writes a program implementing the same. While executing the program, in one
case of input-number to be searched combination, he found that the complexity was constant time
taking
Explanation:
From next time give space between ur question it is not clear dear (take very long to understnad)
Similar questions
French,
1 month ago
English,
1 month ago
Math,
1 month ago
Social Sciences,
2 months ago
Hindi,
2 months ago
CBSE BOARD X,
9 months ago