Click here to Skip to main content
15,914,447 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
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 
The equation for a line that you're probably familiar with is
5) y = mx + b
where m is the slope and b is the Y-intercept. You can get from 1) to 5) with algebra:
ax + by + c = 0
ax/b + y + c/b = 0 [divide both sides by b]
y = -ax/b - c/b    [subtract the same term from both sides] 
y = Mx + B         [substitute M = -a/b, B = -c/b]
You can prove that B = -c/b is the Y-intercept by evaluating 1) for x=0.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

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 
GeneralRe: Cross poster not doing their own homework [modified] Pin
Just me at will_george...something8-Nov-06 2:33
Just me at will_george...something8-Nov-06 2:33 
QuestionDestructing a large data structure Pin
Steve M.5-Nov-06 15:56
Steve M.5-Nov-06 15:56 
AnswerRe: Destructing a large data structure Pin
El Corazon5-Nov-06 20:28
El Corazon5-Nov-06 20:28 
GeneralRe: Destructing a large data structure Pin
Steve S7-Nov-06 1:08
Steve S7-Nov-06 1:08 

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.