Click here to Skip to main content
15,886,919 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: order of algorithm Pin
harold aptroot6-Nov-09 1:00
harold aptroot6-Nov-09 1:00 
GeneralRe: order of algorithm Pin
RichardM111-Nov-09 11:33
RichardM111-Nov-09 11:33 
AnswerRe: order of algorithm Pin
RichardM111-Nov-09 11:58
RichardM111-Nov-09 11:58 
GeneralRe: order of algorithm Pin
khomeyni12-Nov-09 2:20
khomeyni12-Nov-09 2:20 
GeneralRe: order of algorithm Pin
RichardM113-Nov-09 15:20
RichardM113-Nov-09 15:20 
GeneralRe: order of algorithm Pin
harold aptroot12-Nov-09 2:40
harold aptroot12-Nov-09 2:40 
GeneralRe: order of algorithm Pin
RichardM113-Nov-09 15:19
RichardM113-Nov-09 15:19 
GeneralRe: order of algorithm Pin
RichardM112-Nov-09 12:58
RichardM112-Nov-09 12:58 
I'm answering both of you, so I am just tacking it on to the end.
The problem in what I wrote was with the T(sqrt(n)) part of the function.
The answer hinges on what F(n) = sqrt(n)*F(sqrt(n)) is. I was thinking it approached (n), but I see I was wrong, it may approach(n^1.5), which would mean it dominated.
When you add in the (+ n), with an infinite recursion, I see that this goes to infinity, even for n = 1.
As a matter of fact, I will kick my own but on this and say that, while I don't know which order of infinity this ends up being, but, since there is no stop condition on the recursion, the answer, even for n=1 is infinity, given this analysis:
T(1) = 1*T(1)+1
which shows that you end up adding 1 at each recursion level, with an infinite number of recursions (no stop condition). And it just gets larger from there.
khomeyni - sorry for my flawed analysis, thank you for asking why.
harold aptroot - is that a better analysis? I'm asking, not being snide.

Silver member by constant and unflinching longevity.

GeneralRe: order of algorithm Pin
harold aptroot14-Nov-09 0:34
harold aptroot14-Nov-09 0:34 
GeneralRe: order of algorithm Pin
khomeyni15-Nov-09 8:57
khomeyni15-Nov-09 8:57 
GeneralRe: order of algorithm Pin
RichardM115-Nov-09 13:12
RichardM115-Nov-09 13:12 
Question[Message Deleted] Pin
khomeyni4-Nov-09 6:43
khomeyni4-Nov-09 6:43 
AnswerRe: mergesort Pin
Tim Craig4-Nov-09 18:48
Tim Craig4-Nov-09 18:48 
QuestionBug-1 Algorithm question [modified] Pin
Alivemau53-Nov-09 3:15
Alivemau53-Nov-09 3:15 
AnswerRe: Bug-1 Algorithm question Pin
Nagy Vilmos5-Nov-09 3:26
professionalNagy Vilmos5-Nov-09 3:26 
Questionquestion about divide and conquer algorithm Pin
e_f_w_a1-Nov-09 9:52
e_f_w_a1-Nov-09 9:52 
AnswerRe: question about divide and conquer algorithm Pin
Ian Shlasko2-Nov-09 3:20
Ian Shlasko2-Nov-09 3:20 
GeneralRe: question about divide and conquer algorithm Pin
khomeyni4-Nov-09 20:00
khomeyni4-Nov-09 20:00 
GeneralRe: question about divide and conquer algorithm Pin
Ian Shlasko5-Nov-09 1:56
Ian Shlasko5-Nov-09 1:56 
GeneralRe: question about divide and conquer algorithm Pin
Tim Craig5-Nov-09 18:31
Tim Craig5-Nov-09 18:31 
GeneralRe: question about divide and conquer algorithm Pin
khomeyni5-Nov-09 19:39
khomeyni5-Nov-09 19:39 
GeneralRe: question about divide and conquer algorithm Pin
<<Tash18>>14-Dec-09 19:39
<<Tash18>>14-Dec-09 19:39 
GeneralRe: question about divide and conquer algorithm Pin
Tim Craig14-Dec-09 22:40
Tim Craig14-Dec-09 22:40 
GeneralRe: question about divide and conquer algorithm Pin
<<Tash18>>14-Dec-09 23:05
<<Tash18>>14-Dec-09 23:05 
GeneralRe: question about divide and conquer algorithm Pin
Tim Craig15-Dec-09 9:43
Tim Craig15-Dec-09 9:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.