Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Drawing a path

  1. Jun 22, 2004 #1
    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 ?
     
  2. jcsd
  3. Jun 22, 2004 #2

    Gokul43201

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    (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.
     
  4. Jun 22, 2004 #3
    Thank Gokul a lot, (smile)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Drawing a path
  1. ArtPad drawings (Replies: 24)

  2. A Drawing In Progress (Replies: 419)

  3. Draw a house (Replies: 171)

  4. Stuck draw (Replies: 14)

  5. Fastest draw (Replies: 5)

Loading...