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 balance factor?
What is the main feature of oop?
What is pointer in oop?
Can we create object of interface?
How to use CMutex, CSemaphore in VC++ MFC
What are the 3 principles of oop?
What is destructor give example?
What is a function in oop?
Can you inherit a private class?
What does <> mean pseudocode?
What is object in oop with example?
Advantage and disadvantage of routing in telecom sector
Why do we use class in oops?
What is oops concept with example?
Who invented oop?