[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference dypss1::brain_bogglers

Title:Brain Bogglers
Notice:BRAIN_BOGGLERS is, like, back in business, totally
Moderator:BUSY::SLAB
Created:Mon Jul 13 1987
Last Modified:Mon Jun 02 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1441
Total number of notes:13981

1430.0. "directions boggler" by 4446::OSMAN (Eric Osman, dtn 226-7122) Mon Jan 27 1997 13:11


I just got out of the subway at the corner of Apple St.  My directions say
this:

	Walk one block on Apple to Baker, then one block on Baker to
	Charles, then one block on Charles to Dale, and the destination
	is right there at the corner of Charles on Dale.

Unfortunately, the directions neglected to tell me which direction to walk
on each of these streets.  How many blocks might I have to walk in order
to find the destination ?

/Eric
T.RTitleUserPersonal
Name
DateLines
1430.1BUSY::SLABAs you wishMon Jan 27 1997 13:545
    
    
    
    	Max is 17 blocks.
    
1430.2Senic route in .1?CHEFS::STRANGEWAYSAndy Strangeways@REO DTN 830-3216Tue Jan 28 1997 04:3516
    Re .1:
    
    Why 17? Another suggestion follows form feed.
    
    I'd say go left on Apple. Walk 1 block. If you've reached Baker, you've
    guessed right. If not, walk back to the subway station and carry on.
    You'll reach Baker after 1 block. Total walked: 3 blocks so far. Now go
    left on Baker, walk 1 block. If you're at Charlie, carry on. Otherwise
    go back, across Apple, and carry on another block. You'll be at
    Charlie. Total walked: 6 blocks so far. Go left on Charlie, walk 1
    block. If you've arrived, good. Otherwise go back, across Baker, and
    carry on another block. You'll be there.
    
    Total walked (worst case): 9 blocks.
    
    Andy.
1430.3BUSY::SLABAs you wishTue Jan 28 1997 11:3521
    
    	RE: .2
    
    	Well, I think you're assuming a bit too much about the layout of
    	the streets.
    
    
    
    	If you're on Apple St., there are 4 different directions that you
    	could walk in order to find Baker.  3 wrong guesses at 2 blocks
    	each [1 block going, 1 block returning] and it could take you 7
    	blocks to find Baker.
    
    	From Baker you only have 3 choices, so 2 wrong guesses at 2 blocks
    	each and 1 right guess is 5 blocks.
    
    	From Charles you only have 3 choices, so 2 wrong guesses at 2 blocks
    	each and 1 right guess is 5 blocks.
    
    	7+5+5 = 17
    
1430.4New York or London?CHEFS::STRANGEWAYSAndy Strangeways@REO DTN 830-3216Wed Jan 29 1997 05:1720
    Re .3:
    
    Shaun,
    
    Right. I see what you're saying.
    
    I am assuming that the streets are labeled at each intersection
    (otherwise how do you know when you've reached Charles and Dale?) and
    that there are at most two directions of a given street from each
    intersection (i.e. each named street is a single line or curve, with no
    branches)
    
    You, on the other hand, are assuming a square grid of streets. If you
    follow your approach and it is possible for (say) six streets to meet
    at an intersection, then the maximum distance is a lot higher!
    
    I guess we have to ask Eric to clarify these assumptions.
    
    Andy.
                                                                
1430.5BUSY::SLABAs you wishWed Jan 29 1997 10:5028
    
    	RE: .4
    
    	Good point about the max number of streets crossing ... I'd ob-
    	viously assumed 2, allowing for 4 possibilities at each corner.
    
    	However, in response to your 1st point, you still might have to
    	explore every possibility in order to find the 1 correct way,
    	since you're not sure where the next street crosses the current
    	1:
    
    	Spoiler:
    
    
    
    		  |
    		  |
    	     -----A-----
    		  |
    		  |
    	     -----B-----
		  |
    		  |
    	     -----C-----
    		  |
    		  |
    		  D
    
1430.6Sticking to my original answerCHEFS::STRANGEWAYSAndy Strangeways@REO DTN 830-3216Thu Jan 30 1997 03:3619
    Spoilers:
    
    Ah! So you're allowing for the possibility that streets change names
    as you go along them in a straight line? e.g.
    
    
          |         |         |            |
    Able  |   Able  |  Baker  |  Charles   | Dale
    ------S---------+---------+------------+--------
          |         |         |            |
          |         |         |            |
    
    
    But (leaving aside the view that "Charles and Dale" implies a
    perpendicular intersection) my algorithm still works just as long as
    the streets are not branched. You still have at most two choices of
    which way to go "on Baker", "on Charles" etc.
    
    Andy.
1430.7maybe quicker22603::BUCHANANthe rolling stone catches the wormThu Jan 30 1997 06:1212
    Simplest set of assumptions:
    	* we're talking about a square grid, 
    	* the streets are all labeled at every junction,
    	* the streets don't change names as you walk along them
    
    Then the answer would be 7, not 9. The reason is that right at the
    beginning, we can see whether we're already on Dale or not. If not,
    then we know that after reaching Cable that there's only one direction
    that Dale could be.
    
    Cheers,
    Andrew.
1430.8BUSY::SLABAs you wishThu Jan 30 1997 13:534
    
    	I was assuming that an intersection could consist of 4 streets
    	meeting at that point, not 2 streets crossing at that point.
    
1430.9BUSY::SLABAs you wishThu Jan 30 1997 18:298
    
    
    
    	Assuming that an intersection is 2 streets crossing and not 4
    	streets meeting, then I agree with .7.
    
    	From BC, you have no choice as to which way to go to get to CD.
    
1430.10tardy getting off the bus22603::BUCHANANthe rolling stone catches the wormFri Jan 31 1997 05:0623
    	Taking the .7 model, imagine that we travel to the starting point
    by bus (but that it's traveling too fast for us to read the street
    signs). If we get out of the bus one block after the official starting 
    point, then we *reduce* the maximum amount of walking that we have to do, no
    matter which direction the bus took us in!
    
    	This non-intuitive result is similar to a cookie-finding puzzle in
    RUSURE::MATH where a cookie has been hidden somewhere on the real line,
    (with normal probability density function). You can start somewhere on
    the real line, and then hunt up and down until you locate the cookie.
    The goal of the (I believe analytically insoluble) puzzle is to
    minimise the expected distance until the cookie is located.
    
    	The point is that it's not optimal to start at the middle, where
    the cookie is most likely to be. It's best to start on one side of the
    bell distribution, and then walk towards the mode.
    
    	Returning to Apple, etc: what's the worst case walking distance if
    we can choose to get off the bus at some location other than the
    official starting point?
    
    Cheers,
    Andrew.
1430.115 - if I get off the bus late after it turns!22603::BUCHANANthe rolling stone catches the wormSat Feb 01 1997 03:5614
    If you get off the bus 1 block from the official start, you need to
    walk a maximum of 6 blocks.
    
    If you get off the bus 2 blocks from the official start (not two blocks
    in a straight line, but diagonally), you need to walk a maximum of 5
    blocks!
    
    [This is with the assumptions as in .7. Also, when you get off the
    bus, assume that you know the position of the official starting point.]
    
    I think 5 is the best possible.
    
    Cheers,
    Andrew.
1430.12More assumptionsCHEFS::STRANGEWAYSAndy Strangeways@REO DTN 830-3216Mon Feb 03 1997 04:3718
    Re .11:
    
    >I think 5 is the best possible.
    
    A rash statement. All we need to do is follow the lead of your earlier
    note and tighten the assumptions: assume the subway is on the corner of
    the (rectangular) city. Then the maximum is 3!
    
    (Note that in this case the directions given are unambiguous, despite
    first appearances. Of course, assuming competence and good will on the
    part of the friend who gave the directions, we can deduce the answer of
    "3" directly without refrence to topography.)
    
    Alternatively, we could seek the maximum across all possible city
    layouts. This is bounded only by the number of streets it is physically
    possible to fit into one junction. 
    
    Andy.
1430.13CSC32::MACGREGORColorado: the TRUE mid-westMon Feb 03 1997 15:1016
    
    Just to throw more wood on the fire...
    
    Who says that a given street name will travel in a straight line.  One
    of the places I lived in Boston resulted in my giving the following
    directions to get to my house.
    
    ... now you are on Tremont street.  When you get to the light, take a
    left onto Tremont street.  After three lights, take a right onto
    Tremont street...
    
    8^)
    
    Marc
    
    
1430.14RHETT::MOOREMon Feb 03 1997 15:3414
    re .13 --
    
    The same thing is true in Atlanta.  Streets change name with
    bewildering frequency, sometimes change back, and turn corners
    at intersections.  For example, near my house you can travel on
    Pleasantdale Rd till you get to a certain red light.  There you
    can turn right on Pleasantdale, left on Tucker-Norcross, or go
    straight on Tucker-Norcross.  If you go straight two more lights,
    you can either turn right on Chamblee-Tucker, or go straight on
    Chamblee-Tucker. 
    
    Of course, with Atlanta traffic, you can't get anywhere anyways. :)
    
    Martin
1430.15DYPSS1::s_coghill.dyo.dec.com::CoghillSSteve Coghill, NSIS Solution ArchitectMon Feb 03 1997 16:0313
It is also common in Ohio to see country roads that do the following:



                   |
                   |
                   |
-----------------------------
               |
               |
               |

Where the jog to the right is about 80 feet.