SHL.
Choose the correct option.
OPTIONS
Item can be the first element of the list
Paul knows that the complexi

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​

About the author
Rylee

1 thought on “SHL.<br />Choose the correct option.<br />OPTIONS<br />Item can be the first element of the list<br />Paul knows that the complexi”

  1. 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)

    Reply

Leave a Comment