Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
479 views
in Information Technology by (98.5k points)
closed by
The average successful search time for sequential search on ‘n’ items is
1. \(\frac{{\left( {n + 1} \right)}}{2}\)
2. \(\frac{n}{2}\)
3. \(\frac{{\left( {n - 1} \right)}}{2}\)
4. log(n) + 1

1 Answer

0 votes
by (95.6k points)
selected by
 
Best answer
Correct Answer - Option 1 : \(\frac{{\left( {n + 1} \right)}}{2}\)

Consider items in an array

1

2

3

4

5

……

n

 

Assume 1 unit time is needed for 1 item comparison

Best case:

search 1 in a sequential manner:

Element is found for a single comparison

time take = 1

Worst case: 

search n+1 in a sequential manner:

Element is not found for n comparison

time take = n

Average time = \(\frac{best\;case\; time + worst \;case \;time}{2} = \frac{n+1}{2}\)

Therefore option 1 is correct

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...