answersLogoWhite

0


Best Answer

1)in linear search it needs more space and time complexity.

2) in linear search if the key element is the last element and the search is from first element that is a worst case, or if the key element is the first element and the search is from last element then also is the worst case.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

The primary advantage of linear search is its simplicity: conceptually, it's extraordinarily easy to understand, and, implementation-wise, it's also very straight-forward. From an operational standpoint, linear search also is very resource efficient - it does not require copying/partitioning of the array being search, and thus is memory-efficient. It also operates equally well on both unsorted and sorted data.

The primary disadvantage of linear search is that it has a very poor O(n) general efficiency. That is, the performance of the algorithm scales linearly with the size of the input. For the general case, linear search thus is considerably slower than many other search algorithms.

In certain cases where additional information about the current contents of the list being searched are known, linear search can perform as good or better than many other types of search. For instance, if you can assume that the list you have is a FIFO or LIFO, and you know that the item you are looking for is either almost always recently added or almost always at the end of the list, then a tailored linear search can provide very good performance.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

If the size of the array is large then it consumes much time, because as it compares the given element with every element of the array.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

There no advantages to linear search other than searching for the first (or last) nodes. Linear search takes linear time with an average O(n/2) for each search.

This answer is:
User Avatar

User Avatar

coolest_notty _boy

Lvl 2
3y ago

limitation of sequential search

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

The main disadvantage of the linear search is that it is slow to process

lists

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are advantages and disadvantages of linear search?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the Advantages of linear model communication?

advantages and disadvantages of linear model communication


What are the advantage of linear model?

advantages and disadvantages of linear model communication


What are the advantages of communication models?

advantages and disadvantages of linear model communication


What are the advantages and disadvantages of linear navigation design for a website?

basically linear is easier than iterativ


What are the advantages and disadvantages of searching in C programming?

If the data is sorted and every element is directly accessible, then you can perform binary search (see built-in function bsearch), otherwise you have to do linear search (which is slower).


What are advantage of linear searching?

There no advantages to linear search other than searching for the first (or last) nodes. Linear search takes linear time with an average O(n/2) for each search.


Advantages and disadvantages of banking system?

there are many advantages and disadvantages so i do not have time to tell you search anywhere else OHK?


What are the advantages and disadvantages of hybrid search engines?

paul and anj


What are the advantages and disadvantages of DIAGRAMMING?

ADVANTAGES Shows relationship between two variables best method to illustrate a non-linear pattern.


What are the advantages and disadvantages of the babylonian number system?

search it your own self


What are the Advantages and disadvantages of using a Money Order?

search under your bed


What are the advantages and disadvantages of scatter diagram?

ADVANTAGES Shows relationship between two variables best method to illustrate a non-linear pattern.