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 object in oop?
What are the benefits of oop?
What is abstraction in oops?
Is abstract thinking intelligence?
What is the purpose of enum?
What are constructors in oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Can a varargs method be overloaded?
What makes a language oop?
What is constructor overloading in oop?
What is abstraction example?
Why is abstraction needed?
What are the types of abstraction?
is there any choice in opting subjects like 4 out of 7
How to improve object oriented design skills?