PDA

View Full Version : Drawing a path


TenNen
Jun22-04, 10:39 PM
I have a matrix NxN (N small squares), I start to go from position (0,0) to (N,N) in which each edge passes from a square to either its right neighbor or its lower neighbor, and every square in the path if of the form (i,j)-the same as the position representation where j must be larger than i-1.
Can you draw me the path for me to go now ?

Gokul43201
Jun22-04, 11:36 PM
(0,0) (0,1) (1,1) (1,2) (2,2) (2,3) (3,3) ...(n-1,n-1) (n-1,n) (n,n)

1 step down, 1 step right, 1 step down, 1 step right, 1 step down, 1 step right, ...
with (0,0) at top-left and (n,n) at bottom right.

TenNen
Jun22-04, 11:39 PM
Thank Gokul a lot, (smile)