Fix comparison between sorting and search (#31149)
* Fix comparison between sorting and search * fix: changed much to very
This commit is contained in:
committed by
Randell Dawson
parent
2620693b20
commit
c5e7a9aa78
@ -188,7 +188,7 @@ end
|
||||
|
||||
## Why linear search is not efficient
|
||||
|
||||
There is no doubt that linear search is simple but because it compares each element one by one, it is time consuming and hence not much efficient. If we have to find a number from say, 1000000 numbers and number is at the last location, linear search technique would become quite tedious. So, also learn about bubble sort, quick sort,etc. which are much more efficient than linear search.
|
||||
There is no doubt that linear search is simple but because it compares each element one by one, it is time consuming and hence not very efficient. If we have to find a number from say, 1000000 numbers and number is at the last location, linear search technique would become quite tedious. So, also learn about binary search, exponential search, etc. which are much more efficient than linear search.
|
||||
|
||||
#### Relevant Video:
|
||||
|
||||
|
Reference in New Issue
Block a user