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 / saurav
i dont think the above answer is correct..it should be (N+1)/2
according to me..if my answer is not correct,can anyone
explain me the reason..
| Is This Answer Correct ? | 54 Yes | 4 No |
Post New Answer View All Answers
What is the height of an empty tree?
How do I start preparing for placement?
Is there any difference between int[] a and int a[]?
Does hashmap maintain insertion order?
Define parent node?
What are the different types of sorting? Explain the difference between them.
What is queue example?
Is pointer a variable?
Define terminal nodes in a tree?
Why quicksort is better than merge sort?
Can a hashmap have duplicate keys?
Is it possible to make an array volatile in java?
What sorting algorithm does arrays sort use?
Is boolean a data type?
What is garbage collection in data structure?