Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Frogger Math [modified]

Frogger Math [modified]

Scheduled Pinned Locked Moved The Lounge
question
44 Posts 26 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Richard Blythe

    Right on my man! It's amazing how many people don't get it. This was a question that I dug out of an old college math book. (Your hired!) :)

    The mind is like a parachute. It doesn’t work unless it’s open.

    T Offline
    T Offline
    TheyCallMeMrJames
    wrote on last edited by
    #29

    Richard Blythe wrote:

    Your hired

    Hey spelling cop! It's "you're hired". ;) hehehe Don't go writing up a grammar checker, okay? hehe

    They Call me Mister James

    R 1 Reply Last reply
    0
    • S Steven J Jowett

      Frogger is an infinate number of jumps from the wall, because, given enough decimal places, any positive finate number divided by 2 will always produce a value greater that zero.

      Steve Jowett ------------------------- Real Programmers don't need comments -- the code is obvious.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #30

      all he has to do is get close and then lean over a bit. or, get a bit closer and let one of the electrons in one of the cells in his skin bump into one of the electrons in the silica in the wall. you can't get infinitely-close-but-not-touching in the real world.

      image processing toolkits | batch image processing

      1 Reply Last reply
      0
      • T TheyCallMeMrJames

        Richard Blythe wrote:

        Your hired

        Hey spelling cop! It's "you're hired". ;) hehehe Don't go writing up a grammar checker, okay? hehe

        They Call me Mister James

        R Offline
        R Offline
        Richard Blythe
        wrote on last edited by
        #31

        I'm hit! :laugh:

        The mind is like a parachute. It doesn’t work unless it’s open.

        1 Reply Last reply
        0
        • R Robert Rohde

          Well thats a long tongue :laugh:

          S Offline
          S Offline
          Steve Mayfield
          wrote on last edited by
          #32

          Even the fly would stick around for one that long :laugh: especially if it was a female :-O

          Steve _________________ I C(++) therefore I am

          1 Reply Last reply
          0
          • R Richard Blythe

            Right on my man! It's amazing how many people don't get it. This was a question that I dug out of an old college math book. (Your hired!) :)

            The mind is like a parachute. It doesn’t work unless it’s open.

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #33

            Richard Blythe wrote:

            I dug out of an old college math book.

            old... no foolin. like 490 BC[^] old.

            image processing toolkits | batch image processing

            modified on Tuesday, July 20, 2010 1:10 PM

            U 1 Reply Last reply
            0
            • D David Crow

              Richard Blythe wrote:

              Question: How many jumps will it take for Frogger to reach the wall?

              He'll never get there.

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Man who follows car will be exhausted." - Confucius

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #34

              Correct. After his first jump, the fly is out of there and the Frogger is no longer interested in nearing the wall. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

              1 Reply Last reply
              0
              • C Chris Losinger

                Richard Blythe wrote:

                I dug out of an old college math book.

                old... no foolin. like 490 BC[^] old.

                image processing toolkits | batch image processing

                modified on Tuesday, July 20, 2010 1:10 PM

                U Offline
                U Offline
                Uros Calakovic
                wrote on last edited by
                #35

                Zeno's paradoxes[^] ?

                The bearing of a child takes nine months, no matter how many women are assigned.

                C 1 Reply Last reply
                0
                • U Uros Calakovic

                  Zeno's paradoxes[^] ?

                  The bearing of a child takes nine months, no matter how many women are assigned.

                  C Offline
                  C Offline
                  Chris Losinger
                  wrote on last edited by
                  #36

                  that's where my link was supposed to go... yeah :-O

                  image processing toolkits | batch image processing

                  1 Reply Last reply
                  0
                  • R Richard Blythe

                    Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                    The mind is like a parachute. It doesn’t work unless it’s open.

                    modified on Tuesday, July 20, 2010 11:33 AM

                    J Offline
                    J Offline
                    Joan M
                    wrote on last edited by
                    #37

                    Lucky frog that made only one jump and then it started walking...

                    [www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.

                    1 Reply Last reply
                    0
                    • R Richard Blythe

                      Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                      The mind is like a parachute. It doesn’t work unless it’s open.

                      modified on Tuesday, July 20, 2010 11:33 AM

                      A Offline
                      A Offline
                      Andrew Rissing
                      wrote on last edited by
                      #38

                      3 hops. Because the first jump is 10 feet and the last two are 5. You didn't say it was halved each time. ;-) If you did though, you're talking about an age old math teaser. I believe it was an arrow travels half the remaining distance in a second. How long will it take to arrive at its target? Answer: Never. It will always be some faction of distance away from the target.

                      D 1 Reply Last reply
                      0
                      • R Richard Blythe

                        Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                        The mind is like a parachute. It doesn’t work unless it’s open.

                        modified on Tuesday, July 20, 2010 11:33 AM

                        A Offline
                        A Offline
                        AspDotNetDev
                        wrote on last edited by
                        #39

                        Richard Blythe wrote:

                        How many jumps will it take for Frogger to reach the wall?

                        How many licks does it take to get to the center of a tootsie pop (if each lick removes half the remaining tootsie pop)?

                        [Forum Guidelines]

                        1 Reply Last reply
                        0
                        • R Richard Blythe

                          You've never played Frogger?!! I thought everyone grew up playing Frogger. No wonder your warped. http://en.wikipedia.org/wiki/Frogger[^]

                          The mind is like a parachute. It doesn’t work unless it’s open.

                          S Offline
                          S Offline
                          Single Step Debugger
                          wrote on last edited by
                          #40

                          Richard Blythe wrote:

                          You've never played Frogger?!! I thought everyone grew up playing Frogger. No wonder your warped.

                          I knew there should be some reason, but I thought it’s because of the incident with the cat and the TNT stick when I was a child. :sigh:

                          The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word. Advertise here – minimum three posts per day are guaranteed.

                          1 Reply Last reply
                          0
                          • R Richard Blythe

                            Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                            The mind is like a parachute. It doesn’t work unless it’s open.

                            modified on Tuesday, July 20, 2010 11:33 AM

                            A Offline
                            A Offline
                            Abhinav S
                            wrote on last edited by
                            #41

                            Richard Blythe wrote:

                            How many jumps will it take for Frogger to reach the wall

                            Infinite. He is not going to get to the fly.

                            The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files

                            1 Reply Last reply
                            0
                            • R Richard Blythe

                              Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                              The mind is like a parachute. It doesn’t work unless it’s open.

                              modified on Tuesday, July 20, 2010 11:33 AM

                              J Offline
                              J Offline
                              James L Thomson
                              wrote on last edited by
                              #42

                              Frogger lives in a discrete world, not a contiguous one, so the answer to the question depends on the minimal distance resolution and whether the jump algorithm rounds or truncates.

                              1 Reply Last reply
                              0
                              • A Andrew Rissing

                                3 hops. Because the first jump is 10 feet and the last two are 5. You didn't say it was halved each time. ;-) If you did though, you're talking about an age old math teaser. I believe it was an arrow travels half the remaining distance in a second. How long will it take to arrive at its target? Answer: Never. It will always be some faction of distance away from the target.

                                D Offline
                                D Offline
                                Dan Neely
                                wrote on last edited by
                                #43

                                Andrew Rissing wrote:

                                If you did though, you're talking about an age old math teaser. I believe it was an arrow travels half the remaining distance in a second. How long will it take to arrive at its target? Answer: Never. It will always be some faction of distance away from the target.

                                That's incorrect on multiple fronts. First Zeno created it not to try and disprove motion or anything equally silly but to disprove infinitely divisible time/distance. He failed to do so because the problem he setup requires basic calculus to solve: Specifically Limit N->oo (1-(1/N)), or Sigma N=2 to oo (1/N); both of which are equal to 1.

                                3x12=36 2x12=24 1x12=12 0x12=18

                                A 1 Reply Last reply
                                0
                                • D Dan Neely

                                  Andrew Rissing wrote:

                                  If you did though, you're talking about an age old math teaser. I believe it was an arrow travels half the remaining distance in a second. How long will it take to arrive at its target? Answer: Never. It will always be some faction of distance away from the target.

                                  That's incorrect on multiple fronts. First Zeno created it not to try and disprove motion or anything equally silly but to disprove infinitely divisible time/distance. He failed to do so because the problem he setup requires basic calculus to solve: Specifically Limit N->oo (1-(1/N)), or Sigma N=2 to oo (1/N); both of which are equal to 1.

                                  3x12=36 2x12=24 1x12=12 0x12=18

                                  A Offline
                                  A Offline
                                  Andrew Rissing
                                  wrote on last edited by
                                  #44

                                  In the context of when it was presented to me, it was shown as a math problem to say that the arrow would never 'theoretically' reach its target. In the real world, "1 / infinity" is zero, but it was in the context of theory only.

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups