What is the average number of comparisons needed in a
sequential search to determine the position of an element in
an array of 100 elements, if the elements are ordered from
largest to smallest?
Answer Posted / amit
(n+1)/2
here n= 100
so (100+1)/2
then 50.5 answer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can we add duplicate keys in a hashmap?
Which is more efficient merge sort vs quicksort?
What are types of Collision Resolution Techniques and the methods used in each of the types?
Define Data Structures?
How do you clear a stack?
How will you free the memory that is allocated at run time?
How many types of data structure are there?
How to show internal storage representation of data structure in RDBM?
What are the types of map?
How many types of linked list exist?
How does variable declaration affect memory allocation?
What do you mean by overflow and underflow?
Describe stack operation.
Is hashmap an array?
What is non linear data structure with example?