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

Algorithms

 
GeneralRe: question about divide and conquer algorithm Pin
Tim Craig15-Dec-09 9:43
Tim Craig15-Dec-09 9:43 
GeneralRe: question about divide and conquer algorithm Pin
<<Tash18>>17-Dec-09 1:12
<<Tash18>>17-Dec-09 1:12 
GeneralRe: question about divide and conquer algorithm Pin
Tim Craig17-Dec-09 9:43
Tim Craig17-Dec-09 9:43 
Questioncombinatorics: numbers with successive ones Pin
YaroslavPugach30-Oct-09 22:27
YaroslavPugach30-Oct-09 22:27 
Questionsearching and order of aalgorithm [modified] Pin
khomeyni29-Oct-09 2:48
khomeyni29-Oct-09 2:48 
AnswerRe: searching and order of aalgorithm Pin
Alan Balkany29-Oct-09 7:24
Alan Balkany29-Oct-09 7:24 
GeneralRe: searching and order of aalgorithm Pin
Member 419459329-Oct-09 10:06
Member 419459329-Oct-09 10:06 
GeneralRe: searching and order of aalgorithm Pin
Ian Shlasko29-Oct-09 11:12
Ian Shlasko29-Oct-09 11:12 
Big O notation is a measure of the execution time/complexity relative to the input size.

Hence, O(n log(n)) means that the complexity in whatever unit is equal to C * n * log(n) where C is a constant. If you add an extra statement to your inner loop, you're increasing C without increasing the Big O complexity.

We say it this way, because all we're trying to measure is how much longer it would take if, say, we doubled the input size. For an O(n) algorithm, doubling the input will double the complexity.

So in essence...

O(n log(n)) + O(n log(n)) = O(n log(n))

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

GeneralRe: searching and order of aalgorithm Pin
Luc Pattyn29-Oct-09 11:26
sitebuilderLuc Pattyn29-Oct-09 11:26 
GeneralRe: searching and order of aalgorithm Pin
Ian Shlasko29-Oct-09 11:33
Ian Shlasko29-Oct-09 11:33 
GeneralRe: searching and order of aalgorithm Pin
Member 419459329-Oct-09 12:51
Member 419459329-Oct-09 12:51 
GeneralRe: searching and order of aalgorithm Pin
Ian Shlasko29-Oct-09 13:01
Ian Shlasko29-Oct-09 13:01 
GeneralRe: searching and order of aalgorithm Pin
Member 419459329-Oct-09 13:13
Member 419459329-Oct-09 13:13 
GeneralRe: searching and order of aalgorithm Pin
Ian Shlasko29-Oct-09 13:31
Ian Shlasko29-Oct-09 13:31 
GeneralRe: searching and order of aalgorithm Pin
Alan Balkany29-Oct-09 16:29
Alan Balkany29-Oct-09 16:29 
GeneralRe: searching and order of aalgorithm Pin
Luc Pattyn29-Oct-09 13:17
sitebuilderLuc Pattyn29-Oct-09 13:17 
GeneralRe: searching and order of aalgorithm [modified] Pin
khomeyni29-Oct-09 21:34
khomeyni29-Oct-09 21:34 
QuestionShortest path related Pin
Alivemau526-Oct-09 4:02
Alivemau526-Oct-09 4:02 
AnswerRe: Shortest path related Pin
Alan Balkany26-Oct-09 4:37
Alan Balkany26-Oct-09 4:37 
GeneralRe: Shortest path related Pin
Alivemau526-Oct-09 5:20
Alivemau526-Oct-09 5:20 
GeneralRe: Shortest path related Pin
Alan Balkany26-Oct-09 5:36
Alan Balkany26-Oct-09 5:36 
GeneralRe: Shortest path related Pin
Alivemau526-Oct-09 7:22
Alivemau526-Oct-09 7:22 
GeneralRe: Shortest path related Pin
Alan Balkany26-Oct-09 8:20
Alan Balkany26-Oct-09 8:20 
GeneralRe: Shortest path related Pin
Alan Balkany26-Oct-09 8:23
Alan Balkany26-Oct-09 8:23 
GeneralRe: Shortest path related Pin
Alivemau527-Oct-09 6:19
Alivemau527-Oct-09 6:19 

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.