Click here to Skip to main content
15,889,858 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Closest Polygon Pin
Richard Andrew x6419-Feb-10 7:07
professionalRichard Andrew x6419-Feb-10 7:07 
GeneralRe: Closest Polygon Pin
RichardM121-Feb-10 16:17
RichardM121-Feb-10 16:17 
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 14:25
Member 419459315-Apr-10 14:25 
AnswerRe: Closest Polygon Pin
Member 419459315-Apr-10 15:12
Member 419459315-Apr-10 15:12 
QuestionLinear-time suffix array construction Pin
harold aptroot18-Feb-10 7:43
harold aptroot18-Feb-10 7:43 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:01
sitebuilderLuc Pattyn18-Feb-10 8:01 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 8:24
harold aptroot18-Feb-10 8:24 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:43
sitebuilderLuc Pattyn18-Feb-10 8:43 
harold aptroot wrote:
I really prefer understanding it first


for a big article and a small snippet I'm often willing to reverse the order, so run it first, observe and understand it later.


harold aptroot wrote:
pointer magic ... can't easily be removed


I noticed that; however, adding start parameters solves that, like so:
// check s1 <= s2 each starting at a given index
public bool sleq(int[] s1, int[] s2, int start1, int start2) {
    for(int i=0; ; i++) {
        if (s1[start1+i]<s2[start2+i]) return true;
        if (s1[start1+i]>s2[start2+i]) return false;
    }
}


Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 8:56
harold aptroot18-Feb-10 8:56 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 8:59
sitebuilderLuc Pattyn18-Feb-10 8:59 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 9:10
harold aptroot18-Feb-10 9:10 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 9:16
sitebuilderLuc Pattyn18-Feb-10 9:16 
GeneralRe: Linear-time suffix array construction Pin
harold aptroot18-Feb-10 9:23
harold aptroot18-Feb-10 9:23 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 9:47
sitebuilderLuc Pattyn18-Feb-10 9:47 
AnswerRe: Linear-time suffix array construction Pin
Luc Pattyn18-Feb-10 10:07
sitebuilderLuc Pattyn18-Feb-10 10:07 
Questionall pathes with length <bound Pin
Member 268673211-Feb-10 22:29
Member 268673211-Feb-10 22:29 
AnswerRe: all pathes with length <bound Pin
Alan Balkany16-Feb-10 4:09
Alan Balkany16-Feb-10 4:09 
QuestionLooking for address validation algorithm Pin
MichaelChristopher11-Feb-10 5:36
MichaelChristopher11-Feb-10 5:36 
Question2D Self Assemblers - Need an Implementation Guide Pin
Sai Yasodharan2-Feb-10 2:34
Sai Yasodharan2-Feb-10 2:34 
AnswerRe: 2D Self Assemblers - Need an Implementation Guide Pin
Richard MacCutchan2-Feb-10 3:28
mveRichard MacCutchan2-Feb-10 3:28 
JokeRe: 2D Self Assemblers - Need an Implementation Guide Pin
Luc Pattyn2-Feb-10 3:34
sitebuilderLuc Pattyn2-Feb-10 3:34 
GeneralRe: 2D Self Assemblers - Need an Implementation Guide Pin
Sai Yasodharan2-Feb-10 14:29
Sai Yasodharan2-Feb-10 14:29 
GeneralRe: 2D Self Assemblers - Need an Implementation Guide Pin
Richard MacCutchan2-Feb-10 22:27
mveRichard MacCutchan2-Feb-10 22:27 
AnswerRe: 2D Self Assemblers - Need an Implementation Guide Pin
Sai Yasodharan3-Feb-10 14:43
Sai Yasodharan3-Feb-10 14:43 
QuestionFind compression type jpeg image Pin
Game-point27-Jan-10 17:41
Game-point27-Jan-10 17:41 

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.