Click here to Skip to main content
15,888,340 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Image circle counting Pin
Alan Balkany16-Sep-09 3:31
Alan Balkany16-Sep-09 3:31 
AnswerRe: Image circle counting Pin
Fatbuddha 116-Sep-09 5:03
Fatbuddha 116-Sep-09 5:03 
QuestionNeed cut optimization algorith Pin
xx77abs14-Sep-09 1:42
xx77abs14-Sep-09 1:42 
QuestionRe: Need cut optimization algorith Pin
harold aptroot14-Sep-09 1:49
harold aptroot14-Sep-09 1:49 
AnswerRe: Need cut optimization algorith Pin
xx77abs14-Sep-09 1:54
xx77abs14-Sep-09 1:54 
GeneralRe: Need cut optimization algorith Pin
harold aptroot14-Sep-09 2:22
harold aptroot14-Sep-09 2:22 
GeneralRe: Need cut optimization algorith Pin
xx77abs14-Sep-09 2:40
xx77abs14-Sep-09 2:40 
GeneralRe: Need cut optimization algorith Pin
harold aptroot14-Sep-09 2:57
harold aptroot14-Sep-09 2:57 
xx77abs wrote:
And one more thought ... Should I try placing every rectangle two times(normal and 90 degrees rotated) in the big rectangle and use memoization? Then I can determine how must small rectangles can there be for that algorithm to be executing in about 10 seconds ?

I don't really know what you mean by that - could you explain it in more detail?

xx77abs wrote:
And I also have one more problem ... What's the best way to remember what parts of big rectangle I've already used ? I don't know how to do it ... Should I try with some custom class or ?? Please tell me if you have any ideas

I have a couple of idea, but none of them are really good:
1) directly use the positions of the rectangles to calculate intersections (slow)
2) use a bitarray (too much memory)
3) hybrid: store big rectangles as rectangles, but use bitarrays to store the small rectangles (justification: in general the small rectangles will end up close to each other since using small rectangles leaves small gaps) Very complex though, and it may not be worth the effort

You're welcome, but I have the nagging feeling that there is a better solution - I just don't know what it is.



GeneralRe: Need cut optimization algorith Pin
xx77abs14-Sep-09 3:21
xx77abs14-Sep-09 3:21 
GeneralRe: Need cut optimization algorith Pin
harold aptroot14-Sep-09 3:39
harold aptroot14-Sep-09 3:39 
AnswerRe: Need cut optimization algorith Pin
IdUnknown14-Sep-09 5:46
IdUnknown14-Sep-09 5:46 
GeneralRe: Need cut optimization algorith Pin
xx77abs14-Sep-09 6:50
xx77abs14-Sep-09 6:50 
QuestionSearch for repeated character combinations algorithm Pin
khalidelmeknesi9-Sep-09 2:31
khalidelmeknesi9-Sep-09 2:31 
AnswerRe: Search for repeated character combinations algorithm Pin
Richard MacCutchan9-Sep-09 3:01
mveRichard MacCutchan9-Sep-09 3:01 
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 
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 

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.