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
How many human genes are polymorphic?
Can main method override?
what type of questions
What is polymorphism explain?
Which language is pure oop?
Why polymorphism is used in oops?
why reinterpret cast is considered dangerous?
Can you inherit a private class?
Can you name some types of inheritance?
What is advantage of inheritance?
Why is oop useful?
Why is static class not inherited?
What is object in oop?
What is destructor in 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.