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 this pointer in oop?
What is encapsulation in simple terms?
Where You Can Use Interface in your Project
What are the 3 pillars of oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is encapsulation oop?
Why do we need oop?
Why interface is used?
What is the fundamental idea of oop?
What is super in oop?
How to hide the base class functionality in Inheritance?
How do you explain polymorphism?
What is the real life example of polymorphism?
Is oop better than procedural?
what is difference between class template and template class?