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
Does hashset guarantee order?
Is red black tree balanced?
What is the difference between one and two dimensional?
How do you sort a list in reverse order?
Explain binary tree traversals?
Why do we use a multidimensional array in data structure?
Is binary tree balanced?
How do you replace an element in an arraylist?
Explain what is B-tree?
Differentiate between failfast and failsafe.
What is data structures in computer science?
How do you find the second largest element in an array of integers?
Is radix sort stable?
What is weight balanced tree in data structure?
Does hashset allow duplicates?