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

In your opinion, which common algorithm is the most elegant?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 1

File: 1475898625373.jpg (596KB, 1580x2238px) Image search: [Google]
1475898625373.jpg
596KB, 1580x2238px
In your opinion, which common algorithm is the most elegant?
>>
I like heap sort. Only O(log n) tho
>>
>>57033107
how do those last three even work?
>>
>>57033242

The last three do not exist(yet?). Well I guess O(0) can be defined as unused algorithms.
>>
>>57033242
O(0) is done as soon as it's given input, without any computation necessary
O(-1) is done before it's even given input, and would be non-causal
No idea what -O would be
>>
sleep sort
>>
Reproduction
>>
>>57033242
Here is my take on it :

>O(0)
The moment you start the program, the algorithm is already done, before the first bits are even send to your CPU

>O(-1)
Where O(1) would have taken n seconds to run, the algorithm is finished n seconds before you run the program.

>-O
These algorithm are unbound by "When?" or even "Where?". They are running on the fundamental rules of space time, they start and end at any moment.
>>
>>57033321
>O(0) is done as soon as it's given input, without any computation necessary
No that would still be O(1) since it would still return the output in a constant time.
>>
>>57033403
Well yeah, O(0) is still the same complexity class as O(1), just like O(2) would be if it existed
O(-1) is constant time too, it's just constantly negative.
Thread posts: 10
Thread images: 1


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.