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 polymorphism oop?
Why do we use encapsulation in oops?
What is difference between pop and oop?
is there any choice in opting subjects like 4 out of 7
Why oops is important?
What is the advantage of oop over procedural language?
Prepare me a program for the animation of train
Why polymorphism is used in oops?
What is methods in oop?
What is destructor give example?
What is pointer in oop?
What do you mean by variable?
What are constructors in oop?
write a C++ program for booking using constructor and destructor.
#include