[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Prove the complexity of binary search is O(n^2) No Germans allowed
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 14
Thread images: 1
File: 1699182156.jpg (68 KB, 960x622) Image search: [Google]
1699182156.jpg
68 KB, 960x622
Prove the complexity of binary search is O(n^2)

No Germans allowed
>>
>inb4 a German computer engineer comes and cheats somehow
>>
the complexity of binary search is O(n^2) because the bible said so.
q.e.d.
>>
>>50794166
/g/ is not your algorithms homework tutor
>>
but it's not
>>
>>50794686
Yes it is. Look up the definition of Big-Oh.
>>
>>50794505
wow rude
>>
wtf are you talking about

complexity of bin search is O(log(n))
>>
>>50794166
O(n^2)?
wow anon are you retarded or something? that's so easy.
>>
>>50794166

>so we didn't bother

lol'd
>>
>>50795676
>>50794686
>>50795677
>what is an upper bound
You're thinking about big-theta, not big-oh
>>
>>50795731
do yourself a favor and drop out and switch to IT anon, you're not cut out for cs
>>
>>50795868
http://stackoverflow.com/questions/3230122/big-oh-vs-big-theta
>>
>>50794166
There exists some constants C and n0 such that Cn^2 > log(n) for all n>n0
Thread replies: 14
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.