[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]

I need some known non trivial algorithms that run in O(2^n^2)

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: 15
Thread images: 2

File: 1348764844816.png (2KB, 244x226px) Image search: [Google]
1348764844816.png
2KB, 244x226px
I need some known non trivial algorithms that run in O(2^n^2) or O(2^n^4). tnx
>>
>>8701578
O(2^n) is for example a recursive fibonacci, figure the rest out yourself.
>>
>>8701629

wow so helpful
>>
>>8701654

What an ingrate.
>>
>>8701578
Homework threads go on >>>/hm/
>>
File: 1487447458427.jpg (1MB, 1800x1200px) Image search: [Google]
1487447458427.jpg
1MB, 1800x1200px
>>8701629
What a retard.

1) The shit you proposed is naive as fuck, and OP especially asked for a nontrivial algorithm.
2) You can solve fibonacci in O(n) and even in O(log n).
3) You can create a recursive version out of any algorithm.
>>
>>8701629
Recursive fibonacci is [math]O \left(2^{2^n} \right) [/math].
>>
>>8701703

kill yourself retard, this isn't homework, pls kill yourself and don't forget to kill yourself you fucking subhuman trash
>>
>>8701829
http://stackoverflow.com/questions/360748/computational-complexity-of-fibonacci-sequence
>>
Do the homewo.... oh wait your a CS Major.
>>
Dude, just print everything from 1 to 2^n^2.
>>
>>8703688
kek
>>
>>8703167
He took [math]n[/math] to be the number of bits used to represent the input. Any sane computer scientist would do that when the input is a simple integer.
>>
>>8703688
i was gonna say this

OP, this question is not answerable if you don't say what counts as a "non-trivial" algorithm
>>
>>8703688
Somehow I feel that this is wrong but I don't know why it's wrong.
Thread posts: 15
Thread images: 2


[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.