[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
If I apply master theorem to the following recurrence - 2(n/2)
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: 12
Thread images: 1
File: 1456692030868.jpg (955 KB, 1920x1080) Image search: [Google]
1456692030868.jpg
955 KB, 1920x1080
If I apply master theorem to the following recurrence -

2(n/2) + 2

Then I should get (n logn) time complexity correct?

My professor says that the time complexity is theta(n), not theta(n logn).

She says the exponent on the 2 is 0, not 1. Makes no sense.

Should I post my algorithm? It is a divide and conquer that finds the position of the largest element in an array of integers.
>>
2(n/2) + 2 = n + 2
>>
fuck off
do your own homework, Tyrone
>>
>>53504040
I already did my homework bitch. I have a disagreement with my professor and am asking /g/ comp-sci bros who is right.
>>
>>53503955
This isn't algebra. It's a recurrence relation for time complexity of an algorithm. I thought /g/ was filled with computer scientists.
>>
Your professor is right
>>
>>53504564
What are you even trying to say? It's O(n)
>>
>>53503804
>algorithm that finds the largest integer
This shouldn't be anything more than (n) time m8
>>
>>53503804
2^1*2^-1=2^0
>>
>divide and conquer to find the largest int in an array
Pajeet, my son....
>>
>>53503804
Youre wrong, kid
>>
>>53503804
>master theorem
>master
This kind of terminology is oppressive and needs to be changed.
Thread replies: 12
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.