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 / mohit0749
I think it we can apply binary search which requires only logn comparison becoz elements are ordered (largest to smallest).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between sorting and classifying?
Can arraylist have null values?
Write a program to insert an element and in the specific position in the array?
Is binary tree a bst?
Is treemap thread safe?
What is bubble insertion selection sort?
Which is better than array and linked list?
When new data are to be inserted into a data structure?
Which data structures are used in bfs and dfs algorithm?
How arraylist increase its size?
What is the use of bubble sort?
What is difference between hashmap and linkedhashmap?
Can we insert null in list?
How to find 3rd element from end in a linked list in one pass?
Is array a linked list?