1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hoa [83]
4 years ago
7

When would a linear search be preferable over a binary search?

Computers and Technology
1 answer:
san4es73 [151]4 years ago
6 0

Answer:

linear search be preferable over a binary search because In binary search the input data must be sorted before searching but in linear search input data need not to be sorted .

As input data need not to be sorted in linear searching so the complexity of linear sorting is  O(n)  but in binary search if input data is not sorted then firstly be sorted the data then after that it perform searching so the complexity of binary search if input data is not sorted is O(nlogn+logn)

Their are some important points linear search over binary search

linear searches searches the data linearlly so it perform equality comparison and binary searches the data randomly so  perform ordering  comparison.

You might be interested in
Which installation changes from the old information system to the new one incrementally, starting with one or a few functional c
Wewaii [24]

Answer:

Phased installation

Explanation:

The name of this strategy is phased installation. Phased installation (or phased implementation) occurs when an existing system is replaced by a new one. However, unlike most implementations, this takes place in stages. This has several advantages. First, it allows you to test the system. If there is a problem with it, it is easier to revert back to the old strategy. Moreover, if employees need to adopt this new system, it allows them to get used to it slowly while still being able to access the previous one.

5 0
3 years ago
How can financial planning help you plan for your future education
Andrews [41]
It helps you in future times. For school work,you have to be ready.
6 0
4 years ago
Which of these conclusions supports the fact that Eclipse is categorized as an IDE?
Drupady [299]

Answer:

The user must specify the programming language he or she wants to use.

Explanation:

6 0
3 years ago
Write a few statements that open a file called "greeting", write the message "hey!" to the file -- and then close it. declare an
pshichka [43]
C++:

int main () {

std::ofstream output {"greeting.txt"};
output << "hey!";
output.close();

return 0;
}
6 0
3 years ago
Read 2 more answers
Which of the following keys moves the insertion point to the end of data in a cell?
IgorC [24]
C) End is the key that moves the insertion point to the end of data in a cell. 
5 0
3 years ago
Other questions:
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    12·2 answers
  • 60 POINTS!
    13·1 answer
  • Which of these practices should you follow while creating your resume?
    13·2 answers
  • Write a calculator program that keeps track of a subtotal like real calculators do. Start by asking the user for an initial numb
    12·1 answer
  • Which behavior of the application should the user expect? A user profile has login hour restrictions set to Monday through Frida
    12·1 answer
  • _________function tells the cin object to skip one or more characters in the keyboard buffer.
    11·1 answer
  • What tasks should a laptop accomplish?
    15·1 answer
  • What is this screen called? (I attached a picture)
    11·2 answers
  • Write a program that prompts for a positive integer and prints the factors of all integers from 1 to that input integer. For exa
    8·1 answer
  • What are the characteristics of:<br> Master file<br> Transaction file<br> Reference file
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!