problem named walk

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rajat

    #1

    problem named walk

    there is a person who is standing in the middle of a square of size
    n*n.he can walk
    sideways or cross,i.e. from a block (i,j ), he can go to
    (i+1,j+1),(i-1,j-1),(i+1,j),(i-1,j)
    (i,j+1),(i,j-1),(i+1,j-1),(i-1,j+1).He cannot go if he reaches the end
    of the block.
    Show a path by which he can cover the whole square.

  • David Paleino

    #2
    Re: problem named walk

    rajat ha scritto:[color=blue]
    >
    > ...
    >[/color]

    Smells like homework.

    --
    Linux Registered User #334216
    Get FireFox! >> http://www.spreadfirefox.com/?q=affiliates&id=48183&t=1
    Staff >> http://www.debianizzati.org <<

    Comment

    • Default User

      #3
      Re: problem named walk

      rajat wrote:
      [color=blue]
      > there is a person who is standing in the middle of a square of size
      > n*n.he can walk
      > sideways or cross,i.e. from a block (i,j ), he can go to
      > (i+1,j+1),(i-1,j-1),(i+1,j),(i-1,j)
      > (i,j+1),(i,j-1),(i+1,j-1),(i-1,j+1).He cannot go if he reaches the end
      > of the block.
      > Show a path by which he can cover the whole square.[/color]

      No. The reason I won't? Because I'm not in school and don't have to do
      homework. You apparently are. Give it your best shot, and post the
      trial here. We will help you with the code.

      If you don't even have an algorithm yet, you'll need to post elsewhere,
      comp.programmin g perhaps.



      Brian

      --
      Please quote enough of the previous message for context. To do so from
      Google, click "show options" and use the Reply shown in the expanded
      header.

      Comment

      • Flash Gordon

        #4
        Re: problem named walk

        rajat wrote:[color=blue]
        > there is a person who is standing in the middle of a square of size
        > n*n.he can walk
        > sideways or cross,i.e. from a block (i,j ), he can go to
        > (i+1,j+1),(i-1,j-1),(i+1,j),(i-1,j)
        > (i,j+1),(i,j-1),(i+1,j-1),(i-1,j+1).He cannot go if he reaches the end
        > of the block.
        > Show a path by which he can cover the whole square.[/color]

        Right, I've drawn a picture. Now, do you have a C question?

        If you want me to do your homework for you then slip a brown envelope
        with 200UKP in used fivers under my door and your instructors email
        address. It's 500UKP if you want me to send the answer to you instead of
        your instructor.

        Alternatively, try to do your homework, read the URL in my sig, and post
        here with any C questions you have.
        --
        Flash Gordon, living in interesting times.
        Web site - http://home.flash-gordon.me.uk/
        comp.lang.c posting guidelines and intro:

        Comment

        • David Paleino

          #5
          Re: problem named walk

          Flash Gordon ha scritto:[color=blue]
          >
          > ...
          >
          > Right, I've drawn a picture. Now, do you have a C question?
          >
          > If you want me to do your homework for you then slip a brown envelope
          > with 200UKP in used fivers under my door and your instructors email
          > address. It's 500UKP if you want me to send the answer to you instead of
          > your instructor.
          >
          > ...
          >[/color]

          Lol, I never thought it could become a business :)

          David

          --
          Linux Registered User #334216
          Get FireFox! >> http://www.spreadfirefox.com/?q=affiliates&id=48183&t=1
          Staff >> http://www.debianizzati.org <<

          Comment

          • Micah Cowan

            #6
            Re: problem named walk

            David Paleino <d.paleino@gmai l.com> writes:
            [color=blue]
            > Flash Gordon ha scritto:[color=green]
            > >
            > > ...
            > >
            > > Right, I've drawn a picture. Now, do you have a C question?
            > >
            > > If you want me to do your homework for you then slip a brown envelope
            > > with 200UKP in used fivers under my door and your instructors email
            > > address. It's 500UKP if you want me to send the answer to you instead of
            > > your instructor.
            > >
            > > ...
            > >[/color]
            >
            > Lol, I never thought it could become a business :)[/color]

            You're kidding, right? I won't post (or bother to rediscover) any URIs
            here, but I've seen several websites dedicated to doing exactly that
            for a business. Specifically for C, in fact.

            I've also seen several free sites with boilerpate essays on various topics.

            --
            Micah J. Cowan
            Programmer, musician, typesetting enthusiast, gamer...

            Comment

            Working...