Author Topic: Builderboy's Lobster Puzzle-- A geometric approach  (Read 5660 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Builderboy's Lobster Puzzle-- A geometric approach
« on: September 09, 2011, 06:32:42 pm »
So Builderboy presented a puzzle along these lines on IRC, earlier:

You have a flat surface (for all intents and purposes, 2D)
A lobster is at position x (Builder said frog, Qwerty said turtle)
The lobster moves 1 unit away in a random direction (any angle). It tires out after 3 moves

The question is, what is the chance that Lobztor will be within 1 unit of its starting position?

Here is my approach:
-First draw a circle with center at point x of radius 1. This is the target region as well as all the first move positions
-Choose a point on the circle as the center for a second circle of radius 1.
Note that 1/3 of the circle is in the 1 unit range.
-From here, draw infinitely many circles on this circle

You will notice that this creates a circle of its own with radius of 2 units! Using the powers of geometry, we find the ratio of the area of these two circles and get....1/4. Yay! It is pretty close to magic in my opinion!

EDIT: Just so y'all know, that is 530 circles drawn by Grammer in that screenie at 6MHz. :D

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #1 on: September 09, 2011, 07:38:34 pm »
I love how you illustrated by writing a calculator program ;D

I'm pretty noobish at geometry -- how did you determine that 1/3 of the second circle was in the 1 unit range?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #2 on: September 09, 2011, 08:41:06 pm »
Ah clever work, although I believe that you are lucky that it worked because while it does make a circle, it is not a circle where every point is of an equal probability  ^-^

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #3 on: September 09, 2011, 10:34:49 pm »
Regardless on whether or not it's the "correct" solution, I think it's an awesome program that really showcases Grammar.  Nice work, Xeda. :D

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #4 on: September 09, 2011, 11:09:51 pm »
Ah clever work, although I believe that you are lucky that it worked because while it does make a circle, it is not a circle where every point is of an equal probability  ^-^
Actually, I was worried about that, too, but while every part isn't equal, there is a balance to it.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #5 on: September 10, 2011, 12:06:59 am »
Yeah there is ^^ I wonder if it works for subsequent number of steps though o.O

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #6 on: September 10, 2011, 03:21:42 pm »
In this case, I am pretty sure the answer is yes simply because we are dealing with circles of the same radius. To test it, if the lobster particle could move in three dimensions, we should have a 1/8 chance of it ending up within a unit away. If it could only move in 2 dimensions but took an extra move, we would have a 1/9 chance. If number of steps is n, then in 2 dimensions we have (n-1)-2 and three dimensions has 2-n. Now I want to look at 4 dimensions and higher.

EDIT:... because it would necessitate another class of equation. We have the polynomial solution for 2 dimensions ((n-1)-2), n-powered polynomial solution for three dimensions. I have studied functions and have defined various types in recursive form.

f(x)=a        f(0)=a ; f(x)=f(x-1)
f(x)=ax       f(0)=0 ; f(x)=f(x-1)+a
f(x)=axb      f(0)=0 ; f(x)=f(x-1)+a(xb-(x-1)b)    ;*Needs a better form
f(x)=abx      f(0)=a ; f(x)=f(x-1)b
f(x)=a(x!)    f(0)=a ; f(x)=f(x-1)x


I call this "Dimensional Mathematics" in my notes, by the way, because it allows definitions of many types of equations including equations working with time itself. The latter bit is typically called an algorithm :D

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #7 on: September 10, 2011, 03:55:48 pm »
Actually, I just ran some simulations of this puzzle, and it seems that the distribution of probability does actually factor in.  At N jumps in 2 dimensions, it seems the probability of remaining inside the circle is 1/(N+1).  This equation makes a bit more sense if you consider the case with 2 jumps in 2 dimensions.  Your equation of (n-1)^-2 gives us an answer of 100%, which can be shown to be incorrect via a graphical example.


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #8 on: September 10, 2011, 03:58:00 pm »
Ah, I should have stated n>2

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #9 on: September 10, 2011, 04:05:01 pm »
But even at numbers besides 3 jumps the equation gives significantly different results than experimental D:

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #10 on: September 10, 2011, 04:11:39 pm »
Darn... I don't know then...

Offline Eniripsa96

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +3/-0
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #11 on: September 11, 2011, 01:24:10 am »
has anyone found a solution to this? i think i have an idea

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Builderboy's Lobster Puzzle-- A geometric approach
« Reply #12 on: September 11, 2011, 10:30:51 am »
The solution to the first problem is 1/4 :)