Click here to Skip to main content
15,887,256 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
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 
I understand Big O, but in this case, after the sort, for each item, you do a binary search on the array looking for a value that when added to the initial value equals some X. Anything you do to speed up this process will help more than just removing some instruction from the inner loop. You have just added another (n (n log(n))) timeslice to the inner loop, not just some constant.

Dave.
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 
GeneralRe: Shortest path related Pin
ely_bob27-Oct-09 6:32
professionalely_bob27-Oct-09 6:32 
GeneralRe: Shortest path related Pin
Alan Balkany28-Oct-09 5:06
Alan Balkany28-Oct-09 5:06 
GeneralRe: Shortest path related Pin
Alivemau530-Oct-09 11:20
Alivemau530-Oct-09 11:20 

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.