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 / punit
(n+1)/2
saurav is right.
| Is This Answer Correct ? | 28 Yes | 1 No |
Post New Answer View All Answers
What is bubble sort technique?
What is sorting and its types?
What is reduction to sorting method?
How do you do binary search?
Can we search the data in a linked list?
Define a linear and non linear data structure.
What are the advantages and disadvantages of copyonwritearraylist?
Does arraylist guarantee insertion order?
What is sorting in data structure?
What is a data structure? What are the types of data structures?
What is copyonwritearraylist?
What are the benefits of using arrays?
What is the difference between collection and collections?
What is difference between hashmap and hashtable?
What is the method to find the complexity of an algorithm?