PowerPoint Slide 1

 

PowerPoint Slide 2

 

PowerPoint Slide 3

 

PowerPoint Slide 4

 

PowerPoint Slide 5

 

PowerPoint Slide 6

 

PowerPoint Slide 7

 

PowerPoint Slide 8

 

PowerPoint Slide 9

 

PowerPoint Slide 10

 

PowerPoint Slide 11

 

PowerPoint Slide 12

 

PowerPoint Slide 13

 

PowerPoint Slide 14

 

PowerPoint Slide 15

 

PowerPoint Slide 16

 

PowerPoint Slide 17
Decorative top border for comment

Question: what difference does it make by interchanging x1 and x2? Either way its going to be the same answer right? Or am i wrong?

Answer: It does make a difference in terms of the mechanics of the algorithm. Note at this point in the development of the algorithm only lines with slope between zero and one are being handled. Further, the iteration step increments x by one each time through the loop. There lies the true answer to why it matters. One could develop a count down instead of a count up variant but it would look different, choosing between west and southwest, and decrementing x instead of incrementing x each time. In terms of actual mechanics, the two possible variants are not identical, and hence the easiest thing (and what is done in practice) is to swap endpoints rather than have to write alternative variants of the code. Hope that helps ... Ross (10/13/12)

Decorative bottom border for comment
PowerPoint Slide 18

 

PowerPoint Slide 19
Decorative top border for comment
I believe the first line of the second box is incorrect. It should read: G(x1+1,y1+1/2)=6x1+6-10y1-5+14
Decorative bottom border for comment
PowerPoint Slide 20
Decorative top border for comment
The final sum is incorrect. It should be -6, not -2.
Decorative bottom border for comment
PowerPoint Slide 21

 

PowerPoint Slide 22

 

PowerPoint Slide 23

 

PowerPoint Slide 24

 

PowerPoint Slide 25

 

PowerPoint Slide 26

 

PowerPoint Slide 27

 

PowerPoint Slide 28

 

PowerPoint Slide 29

 

PowerPoint Slide 30

 

PowerPoint Slide 31

 

PowerPoint Slide 32

 

PowerPoint Slide 33

 

PowerPoint Slide 34

 

PowerPoint Slide 35

 

PowerPoint Slide 36