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

Algorithms

 
GeneralRe: Search for repeated character combinations algorithm Pin
khalidelmeknesi9-Sep-09 20:50
khalidelmeknesi9-Sep-09 20:50 
AnswerRe: Search for repeated character combinations algorithm Pin
Luc Pattyn9-Sep-09 12:23
sitebuilderLuc Pattyn9-Sep-09 12:23 
GeneralRe: Search for repeated character combinations algorithm Pin
khalidelmeknesi11-Sep-09 0:38
khalidelmeknesi11-Sep-09 0:38 
GeneralRe: Search for repeated character combinations algorithm Pin
Luc Pattyn11-Sep-09 1:14
sitebuilderLuc Pattyn11-Sep-09 1:14 
GeneralRe: Search for repeated character combinations algorithm [modified] Pin
khalidelmeknesi16-Sep-09 22:46
khalidelmeknesi16-Sep-09 22:46 
GeneralRe: Search for repeated character combinations algorithm Pin
Luc Pattyn17-Sep-09 2:05
sitebuilderLuc Pattyn17-Sep-09 2:05 
GeneralRe: Search for repeated character combinations algorithm Pin
khalidelmeknesi17-Sep-09 2:18
khalidelmeknesi17-Sep-09 2:18 
GeneralRe: Search for repeated character combinations algorithm Pin
Luc Pattyn17-Sep-09 3:31
sitebuilderLuc Pattyn17-Sep-09 3:31 
khalidelmeknesi wrote:
is not 100 % good


that is quite a diagnosis. Take some white pills every day for the next couple of weeks or months.


I haven't studied the code in detail as I don't like it from first sight. I see three nested loops, so its performance will scale terribly. I see one dictionary that probably ends up containing all substrings of all starting points and all lengths, so it is quadratic. This is a brute force approach, nowhere near what I suggested initially.

Hmmm | :|

Luc Pattyn

Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

Local announcement (Antwerp region): Lange Wapper? Neen!


AnswerRe: Search for repeated character combinations algorithm [modified] Pin
Moreno Airoldi12-Sep-09 4:40
Moreno Airoldi12-Sep-09 4:40 
AnswerRe: Search for repeated character combinations algorithm Pin
Member 419459314-Sep-09 7:04
Member 419459314-Sep-09 7:04 
Question[Message Deleted] Pin
kabirbdboy8-Sep-09 23:35
kabirbdboy8-Sep-09 23:35 
AnswerRe: help me to select my project Pin
CPallini9-Sep-09 1:53
mveCPallini9-Sep-09 1:53 
AnswerRe: help me to select my project Pin
Richard MacCutchan9-Sep-09 3:02
mveRichard MacCutchan9-Sep-09 3:02 
General[Message Deleted] Pin
kabirbdboy9-Sep-09 15:25
kabirbdboy9-Sep-09 15:25 
GeneralRe: help me to select my project Pin
Tim Craig9-Sep-09 17:56
Tim Craig9-Sep-09 17:56 
GeneralRe: help me to select my project Pin
kabirbdboy10-Sep-09 1:38
kabirbdboy10-Sep-09 1:38 
GeneralRe: help me to select my project Pin
Richard MacCutchan9-Sep-09 21:37
mveRichard MacCutchan9-Sep-09 21:37 
AnswerRe: help me to select my project Pin
Nagy Vilmos10-Sep-09 9:41
professionalNagy Vilmos10-Sep-09 9:41 
GeneralRe: help me to select my project Pin
kabirbdboy10-Sep-09 15:08
kabirbdboy10-Sep-09 15:08 
GeneralRe: help me to select my project Pin
Tim Craig10-Sep-09 19:30
Tim Craig10-Sep-09 19:30 
QuestionGradient map Pin
Sauce!8-Sep-09 6:21
Sauce!8-Sep-09 6:21 
AnswerRe: Gradient map Pin
Eddy Vluggen8-Sep-09 11:13
professionalEddy Vluggen8-Sep-09 11:13 
AnswerRe: Gradient map Pin
Alan Balkany9-Sep-09 5:12
Alan Balkany9-Sep-09 5:12 
Questioncomipler construction Pin
rizwana rashid7-Sep-09 8:23
rizwana rashid7-Sep-09 8:23 
AnswerRe: comipler construction Pin
Christian Graus7-Sep-09 15:55
protectorChristian Graus7-Sep-09 15:55 

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.