>
Exams
>
Computer Science & Information Technology
>
Computer Languages and Algorithms
>
what is the best case time complexity for linear s
Question:
What is the best case time complexity for linear search?
Show Hint
Best case for linear search is when the target is first element — only one check needed.
TS PGECET - 2024
TS PGECET
Updated On:
June 02, 2025
\(O(n \log n)\)
\(O(\log n)\)
\(O(n)\)
\(O(1)\)
Hide Solution
Verified By Collegedunia
The Correct Option is
D
Solution and Explanation
In the best case, the element is found at the first index in linear search. So only one comparison is required ⇒ constant time.
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Computer Languages and Algorithms
Which of the following sorting algorithms has the best average-case time complexity?
AP PGECET - 2025
Computer Science & Information Technology
Computer Languages and Algorithms
View Solution
Which among the following is not based on divide and conquer?
TS PGECET - 2024
Computer Science & Information Technology
Computer Languages and Algorithms
View Solution
What is the worst-case time complexity of depth first search of a graph with ‘V’ nodes and ‘E’ edges?
TS PGECET - 2024
Computer Science & Information Technology
Computer Languages and Algorithms
View Solution
Bellman Ford algorithm provides solution for
TS PGECET - 2024
Computer Science & Information Technology
Computer Languages and Algorithms
View Solution
Breadth first search is equivalent to traversal of binary tree
TS PGECET - 2024
Computer Science & Information Technology
Computer Languages and Algorithms
View Solution
View More Questions
Questions Asked in TS PGECET exam
Melting rates of electrodes in manual metal arc welding process is mainly governed by the
TS PGECET - 2024
Manufacturing Processes
View Solution
The maximum area of a rectangle that can be inscribed in a circle of radius $R$ is
TS PGECET - 2024
3D Geometry
View Solution
For the matrix \[ \begin{bmatrix} 2 & 1 & 1 \\ 0 & 2 & 1 \\ 1 & 0 & 1 \end{bmatrix}, \] an Eigen vector among the following vectors is
TS PGECET - 2024
Linear Algebra
View Solution
Which of the following expression is a tautology?
TS PGECET - 2024
Digital Logic
View Solution
The 2’s complement representation of the decimal value $-15$ is
TS PGECET - 2024
Digital Logic
View Solution
View More Questions
TS PGECET Notification
OCT Bhopal Admission 2025
June 02, 2025
OCT Bhopal Admission 2025
Read More