What is the average number of comparisons in a sequential
search?
Answer Posted / bipin from utkal university mc
suppose there are five element 23,56,78,12,90
minimum time require means searching element present at
first so it takes only one comparison
maximum time require means searching element present at
last so it takes n No. of comparison(here 5 )
so avarage comarison=(1+n)/2
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
Can we insert null in hashset?
Which is the parent class of hashmap class?
Explain Array
What is 1d array?
What is a string or array type?
What is example of data?
What are the average and worst time complexity in a sorted binary tree is
what is the difference between dynamic as well as non - dynamic data structures.
Is arraylist fail fast?
What is data type and its types?
What do you mean by data types?
Which is better merge or quick sort?
If we add enum constants to a sorted collection ( treemap , treeset ), what will be the order in which they will be maintained?
List out the advantages of using a linked list?
Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?