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

Algorithms

 
AnswerRe: Snake game problem Pin
pewtas23-Feb-10 20:16
pewtas23-Feb-10 20:16 
GeneralRe: Snake game problem Pin
venomation4-Mar-10 1:25
venomation4-Mar-10 1:25 
QuestionGeometry problem Pin
Daniel.Sturza27-Dec-09 3:03
Daniel.Sturza27-Dec-09 3:03 
AnswerRe: Geometry problem Pin
Luc Pattyn27-Dec-09 3:10
sitebuilderLuc Pattyn27-Dec-09 3:10 
GeneralRe: Geometry problem [modified] Pin
Daniel.Sturza27-Dec-09 3:45
Daniel.Sturza27-Dec-09 3:45 
AnswerRe: Geometry problem Pin
harold aptroot27-Dec-09 4:33
harold aptroot27-Dec-09 4:33 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 5:31
Daniel.Sturza27-Dec-09 5:31 
AnswerRe: Geometry problem Pin
Luc Pattyn27-Dec-09 5:28
sitebuilderLuc Pattyn27-Dec-09 5:28 
Hi,

here is another idea:

1. before drawing the segments, create an imaginary grid, where each cell has a certain height and width, say 64 pixels.
2. place the segments, and mark the grid cells that get (partially) covered by them.
3. search an unmarked grid cell, and now look for the largest rectangle of empty grid cells containing it
4. only then enlarge the rectangle using actual coordinates instead of grid indices.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Merry Christmas and a Happy New Year to all.


GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 5:52
Daniel.Sturza27-Dec-09 5:52 
GeneralRe: Geometry problem Pin
Luc Pattyn27-Dec-09 6:10
sitebuilderLuc Pattyn27-Dec-09 6:10 
GeneralRe: Geometry problem Pin
Daniel.Sturza27-Dec-09 7:13
Daniel.Sturza27-Dec-09 7:13 
AnswerRe: Geometry problem Pin
ProtoBytes28-Dec-09 6:21
ProtoBytes28-Dec-09 6:21 
AnswerRe: Geometry problem [modified] Pin
ProtoBytes28-Dec-09 9:05
ProtoBytes28-Dec-09 9:05 
GeneralRe: Geometry problem Pin
Daniel.Sturza28-Dec-09 16:06
Daniel.Sturza28-Dec-09 16:06 
GeneralRe: Geometry problem Pin
belzu29-Dec-09 4:52
belzu29-Dec-09 4:52 
AnswerRe: Geometry problem Pin
belzu29-Dec-09 4:35
belzu29-Dec-09 4:35 
AnswerRe: Geometry problem Pin
Skippums13-Jan-10 11:32
Skippums13-Jan-10 11:32 
QuestionPair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes24-Dec-09 12:11
ProtoBytes24-Dec-09 12:11 
RantRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes29-Dec-09 14:26
ProtoBytes29-Dec-09 14:26 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan29-Dec-09 23:05
mveRichard MacCutchan29-Dec-09 23:05 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
ProtoBytes30-Dec-09 6:27
ProtoBytes30-Dec-09 6:27 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan30-Dec-09 10:52
mveRichard MacCutchan30-Dec-09 10:52 
QuestionGraph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 6:21
harold aptroot23-Dec-09 6:21 
AnswerRe: Graph algorithms on bitgraphs Pin
Luc Pattyn23-Dec-09 7:00
sitebuilderLuc Pattyn23-Dec-09 7:00 
GeneralRe: Graph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 7:13
harold aptroot23-Dec-09 7:13 

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.