should we use linear search or binary search if elements
are placed in random order or mixed?in both cases? i need a
little bit detail ans?thnks
Answer Posted / indira
We have to use Linear Search only when elms r in random or
mixed .
In order to use Binary Search u have to sort these elems
whose order of complexity is n2.
so its better to use linear search whose complexity is of o(n)
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is an advantage of polymorphism?
What is encapsulation oop?
What is oops with example?
What is meant by oops concept?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Can main method override?
How long to learn object oriented programming?
What is the fundamental idea of oop?
Why is encapsulation used?
Templates mean
How oops is better than procedural?
What is a class and object?
What is protected in oop?
How do you answer polymorphism?
Why is object oriented programming so hard?