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. TWCP OTD (The Who Cares Puzzle Of The Day) - 15th of February, 2017

TWCP OTD (The Who Cares Puzzle Of The Day) - 15th of February, 2017

Scheduled Pinned Locked Moved The Lounge
performancehelpquestion
28 Posts 15 Posters 0 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.
  • N Nagy Vilmos

    I say the ant will certainly arrive. Even if we say the ant is moving after the poles, even though they are separating at the same speed the ant is covering at least a part of the gap. As the gap is getting larger at the same rate as the ant is moving, because the ant is not at the end part of the expansion must be on the part already travelled. So if the gap increases uniformly the extra distance still to travel each second will always be less than 1cm.

    veni bibi saltavi

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #11

    Can you explain it magyarul?

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    N 1 Reply Last reply
    0
    • M MarkTJohnson

      The poles are moving away from each other at 500 cm/s?

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #12

      My mistake... I somehow stopped at the 'each other' part and cleared the '500 cm/s'... It is away - yes, but only at 50 cm/s... (but that's probably irrelevant anyway)

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      J 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        1/2 m = 50 cm... And I meant that and not 0.5 cm...

        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

        J Offline
        J Offline
        jeron1
        wrote on last edited by
        #13

        That's why I said 'I think' and not 'I correctly think'. :-O :laugh:

        "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

        1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          WORKS LIKE AN ANT There is a meter long rope tight between two poles. An ant starts running at the speed of 1 cm/s from one end of the rope to the other. At same time the poles are moving back a 1/2 m/s each, stretching the rope (the rope is magical and can be stretched infinitely). Will the ant ever arrive?

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          K Offline
          K Offline
          krg
          wrote on last edited by
          #14

          The ant never makes it to the end of the rope. The waveform set up by the flexing of the rope makes the ant dizzy and so he falls off. On his way to the ground he intercepts the path of an arrow that a tortoise has been struggling to run away from for quite some time.

          Richard DeemingR 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            Or in other words - it will be a very-very old ant when getting off the rope...

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #15

            Approximately 8.547e+35 years if my math is correct :thumbsup:

            R K U 3 Replies Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              Can you explain it magyarul?

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              N Offline
              N Offline
              Nagy Vilmos
              wrote on last edited by
              #16

              Egyszer volt egy kiss hangyat, egyszer nem volt. ;P

              veni bibi saltavi

              Richard DeemingR 1 Reply Last reply
              0
              • N Nagy Vilmos

                Egyszer volt egy kiss hangyat, egyszer nem volt. ;P

                veni bibi saltavi

                Richard DeemingR Offline
                Richard DeemingR Offline
                Richard Deeming
                wrote on last edited by
                #17

                Google Translate[^]:

                Once there was a kiss ants, not once was

                Not sure if it's Google's Hungarian translator that's broken, or your Hungarian. :laugh:


                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                N 1 Reply Last reply
                0
                • K krg

                  The ant never makes it to the end of the rope. The waveform set up by the flexing of the rope makes the ant dizzy and so he falls off. On his way to the ground he intercepts the path of an arrow that a tortoise has been struggling to run away from for quite some time.

                  Richard DeemingR Offline
                  Richard DeemingR Offline
                  Richard Deeming
                  wrote on last edited by
                  #18

                  If the arrow doesn't get him, the bowl of petunias probably will. :-D


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                  1 Reply Last reply
                  0
                  • Richard DeemingR Richard Deeming

                    Google Translate[^]:

                    Once there was a kiss ants, not once was

                    Not sure if it's Google's Hungarian translator that's broken, or your Hungarian. :laugh:


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    N Offline
                    N Offline
                    Nagy Vilmos
                    wrote on last edited by
                    #19

                    I missed an auto correct, kis not kiss. Once there was a little mouse, once there wasn't. Every Hungarian folk tale starts this way.

                    veni bibi saltavi

                    1 Reply Last reply
                    0
                    • J Jon McKee

                      Approximately 8.547e+35 years if my math is correct :thumbsup:

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #20

                      Jon McKee wrote:

                      Approximately 8.547e+35 years if my math is correct

                      So, that's still younger than @OriginalGriff then.

                      OriginalGriffO 1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        WORKS LIKE AN ANT There is a meter long rope tight between two poles. An ant starts running at the speed of 1 cm/s from one end of the rope to the other. At same time the poles are moving back a 1/2 m/s each, stretching the rope (the rope is magical and can be stretched infinitely). Will the ant ever arrive?

                        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                        D Offline
                        D Offline
                        dan sh
                        wrote on last edited by
                        #21

                        Yes. The ant does not even need to move. Just stay there. Eventually, destination pole will touch the origin pole due to stretching and Earth being spherical (almost). At that point, just switch lanes. :cool:

                        "It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

                        1 Reply Last reply
                        0
                        • R Rajesh R Subramanian

                          Jon McKee wrote:

                          Approximately 8.547e+35 years if my math is correct

                          So, that's still younger than @OriginalGriff then.

                          OriginalGriffO Offline
                          OriginalGriffO Offline
                          OriginalGriff
                          wrote on last edited by
                          #22

                          No, I only feel that old...

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                          R 1 Reply Last reply
                          0
                          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                            My mistake... I somehow stopped at the 'each other' part and cleared the '500 cm/s'... It is away - yes, but only at 50 cm/s... (but that's probably irrelevant anyway)

                            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                            J Offline
                            J Offline
                            James Curran
                            wrote on last edited by
                            #23

                            SO, each second the ant moves 1cm closer to his goal, which moves approx 50cm further away from him in the same second.(actually, I think in the first second it move 99.5cm away). So, no, he's never going to reach it.

                            Truth, James

                            1 Reply Last reply
                            0
                            • J Jon McKee

                              Approximately 8.547e+35 years if my math is correct :thumbsup:

                              K Offline
                              K Offline
                              K Collins
                              wrote on last edited by
                              #24

                              The problem did not specify that the ant is immortal. If it would take 8.547e+35 years then the answer is clearly no, the ant will not reach the other end. Ants don't generally live that long. ;P

                              1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                WORKS LIKE AN ANT There is a meter long rope tight between two poles. An ant starts running at the speed of 1 cm/s from one end of the rope to the other. At same time the poles are moving back a 1/2 m/s each, stretching the rope (the rope is magical and can be stretched infinitely). Will the ant ever arrive?

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #25

                                I would have thought by this time that version of the puzzle would have involved nano-bots. The first time it was trains; then cars; then people ...

                                "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

                                1 Reply Last reply
                                0
                                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                  WORKS LIKE AN ANT There is a meter long rope tight between two poles. An ant starts running at the speed of 1 cm/s from one end of the rope to the other. At same time the poles are moving back a 1/2 m/s each, stretching the rope (the rope is magical and can be stretched infinitely). Will the ant ever arrive?

                                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                  U Offline
                                  U Offline
                                  User 11883076
                                  wrote on last edited by
                                  #26

                                  The ant will reach the end -- the part of the whole path he covers in a second is 0.01 / (1 + t), where t is time in seconds (the covered part doesn't decrease since the line extends uniformly). So the total part he has covered up to the time t is 0.01 * ln(1 + t), meaning he crosses whole path in exp(100) - 1 seconds (approx. 10^36 years).

                                  1 Reply Last reply
                                  0
                                  • J Jon McKee

                                    Approximately 8.547e+35 years if my math is correct :thumbsup:

                                    U Offline
                                    U Offline
                                    User 12221786
                                    wrote on last edited by
                                    #27

                                    speed of rope at distance x from centre is x/(t+1) (ant starts at x=-50, t=0) speed of ant is x/(t+1)+1 = dx/dt x=c(t+1)+(t+1)log(t+1) so -50=c ant arrives: 50=-50(t+1)+(t+1)log(t+1) let u=t+1 50(u+1)=u log u if u=exp(50), u log u = 50.u which is near enough

                                    1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      No, I only feel that old...

                                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                      R Offline
                                      R Offline
                                      Rajesh R Subramanian
                                      wrote on last edited by
                                      #28

                                      I could assure you that you act younger than I am now and then. And that's actually a good thing. :-D

                                      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