DEV Community

Cover image for Simple search vs Binary search Algorithms.

Simple search vs Binary search Algorithms.

Olasunkanmi Igbasan on August 14, 2022

Hello there ! Welcome and stay with me as I explain Big O Notation to you in the simplest words ever! "Total time needed for an algorithm to run,"...
Collapse
 
jhhornn profile image
Awosise Oluwaseun

Nice write up

Collapse
 
pauldumebi profile image
Paul Dumebi

Interesting. I learnt something

Collapse
 
temijei profile image
Victoria Ajibola

This was super helpful πŸ‘πŸ½

Collapse
 
tobisam2000 profile image
Oluwatobiloba Adesokan

Nice one ☺️

Collapse
 
mavludin profile image
Mavludin

Thanks for the article.

One thing I would like to point out is that to be able to apply the binary search, we must have a sorted array.

Collapse
 
olatisunkanmi profile image
Olasunkanmi Igbasan

Yes.

Collapse
 
modupe_okaseun_0983b25a0f profile image
Modupe Okaseun

This is an amazing write up, nice one!

Collapse
 
olatisunkanmi profile image
Olasunkanmi Igbasan

Thank you πŸ“

Collapse
 
qreamville profile image
Balikis Moromoke Oyeleye

Amazing write-up πŸ‘

Collapse
 
olatisunkanmi profile image
Olasunkanmi Igbasan

Thank you

Collapse
 
realsteveig profile image
STEVE

Good read..πŸ’ͺ

Collapse
 
ayhoung profile image
Allen Houng

shouldn't simple search be O(n)? O(1) is constant time

Collapse
 
olatisunkanmi profile image
Olasunkanmi Igbasan

Thank you so much, totally!