Click here to Skip to main content
15,910,009 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionBeginners question? Where does the exact double value go? Pin
ClockDivider8-Nov-06 6:48
ClockDivider8-Nov-06 6:48 
AnswerRe: Beginners question? Where does the exact double value go? Pin
Rob Graham8-Nov-06 7:09
Rob Graham8-Nov-06 7:09 
GeneralRe: Beginners question? Where does the exact double value go? Pin
Dan Neely8-Nov-06 7:24
Dan Neely8-Nov-06 7:24 
GeneralRe: Beginners question? Where does the exact double value go? Pin
ClockDivider8-Nov-06 8:15
ClockDivider8-Nov-06 8:15 
QuestionScaling - help me Pin
dharani7-Nov-06 0:06
dharani7-Nov-06 0:06 
AnswerRe: Scaling - help me Pin
Jörgen Sigvardsson7-Nov-06 13:02
Jörgen Sigvardsson7-Nov-06 13:02 
GeneralBresenhams algorithm for drawing lines Pin
Jörgen Sigvardsson6-Nov-06 12:59
Jörgen Sigvardsson6-Nov-06 12:59 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Luc Pattyn6-Nov-06 13:43
sitebuilderLuc Pattyn6-Nov-06 13:43 
Hi,

ax+by+c=0 and y=dx+e are both formulas describing (all points belonging to) a straight line.
The former is fully symmetrical in x and y.

For both, you can introduce a new independent variable t, and then express both x and y as
a function of t, e.g.

x(t) = alpha * t + beta
y(t) = gamma * t + delta

this may make it easier to traverse the line: simply let t move from t0 to t1 (t0 and t1
corresponding to the known points (x0,y0) and (x1,y1).

Greetings,


Luc Pattyn

GeneralRe: Bresenhams algorithm for drawing lines Pin
Jörgen Sigvardsson6-Nov-06 14:03
Jörgen Sigvardsson6-Nov-06 14:03 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Bassam Abdul-Baki6-Nov-06 13:45
professionalBassam Abdul-Baki6-Nov-06 13:45 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Jörgen Sigvardsson6-Nov-06 14:09
Jörgen Sigvardsson6-Nov-06 14:09 
GeneralRe: Bresenhams algorithm for drawing lines Pin
Michael Dunn7-Nov-06 15:27
sitebuilderMichael Dunn7-Nov-06 15:27 
QuestionNearest neighbour algorithm Pin
Islam Khalil Saber6-Nov-06 4:33
Islam Khalil Saber6-Nov-06 4:33 
AnswerRe: Nearest neighbour algorithm Pin
ejuanpp6-Nov-06 4:54
ejuanpp6-Nov-06 4:54 
GeneralRe: Nearest neighbour algorithm Pin
Islam Khalil Saber6-Nov-06 13:13
Islam Khalil Saber6-Nov-06 13:13 
QuestionTravelling Salesman Problem Pin
and_reas5-Nov-06 23:11
and_reas5-Nov-06 23:11 
AnswerRe: Travelling Salesman Problem Pin
Just me at will_george...something6-Nov-06 6:01
Just me at will_george...something6-Nov-06 6:01 
GeneralRe: Travelling Salesman Problem Pin
Steve S7-Nov-06 1:03
Steve S7-Nov-06 1:03 
GeneralRe: Travelling Salesman Problem Pin
Just me at will_george...something8-Nov-06 2:22
Just me at will_george...something8-Nov-06 2:22 
AnswerRe: Travelling Salesman Problem Pin
mehata7-Nov-06 16:57
mehata7-Nov-06 16:57 
GeneralRe: Travelling Salesman Problem Pin
Just me at will_george...something8-Nov-06 2:12
Just me at will_george...something8-Nov-06 2:12 
QuestionRe: Travelling Salesman Problem Pin
DHIRAJ SHETI7-Dec-06 18:05
DHIRAJ SHETI7-Dec-06 18:05 
AnswerRe: Travelling Salesman Problem Pin
ednrgc6-Nov-06 6:18
ednrgc6-Nov-06 6:18 
AnswerCross poster not doing their own homework Pin
leckey6-Nov-06 6:45
leckey6-Nov-06 6:45 
GeneralRe: Cross poster not doing their own homework Pin
Paul Conrad7-Nov-06 6:53
professionalPaul Conrad7-Nov-06 6:53 

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.