The Urinal Sequence

Sharenator.com > The Urinal Sequence
Urinal protocol vulnerability
When a guy goes into the bathroom, which urinal does he pick? Most guys are familiar with the International Choice of Urinal Protocol. It’s discussed at length elsewhere, but the basic premise is that the first guy picks an end urinal, and every subsequent guy chooses the urinal which puts him furthest from anyone else peeing. At least one buffer urinal is required between any two guys or Awkwardness ensues.

Let’s take a look at the efficiency of this protocol at slotting everyone into acceptable urinals. For some numbers of urinals, this protocol leads to efficient placement. If there are five urinals, they fill up like this:

urinals1 - The Urinal Sequence




The first two guys take the end and the third guy takes the middle one. At this point, the urinals are jammed — no further guys can pee without Awkwardness. But it’s pretty efficient; over 50% of the urinals are used.

On the other hand, if there are seven urinals, they don’t fill up so efficiently:

urinals2 - The Urinal Sequence



There should be room for four guys to pee without Awkwardness, but because the third guy followed the protocol and chose the middle urinal, there are no options left for the fourth guy (he presumably pees in a stall or the sink).

For eight urinals, the protocol works better:

urinals3 - The Urinal Sequence



So a row of eight urinals has a better packing efficiency than a row of seven, and a row of five is better than either.

This leads us to a question: what is the general formula for the number of guys who will fill in N urinals if they all come in one at a time and follow the urinal protocol? One could write a simple recursive program to solve it, placing one guy at a time, but there’s also a closed-form expression. If f(n) is the number of guys who can use n urinals, f(n) for n>2 is given by:

urinals4 - The Urinal Sequence



The protocol is vulnerable to producing inefficient results for some urinal counts. Some numbers of urinals encourage efficient packing, and others encourage sparse packing. If you graph the packing efficiency (f(n)/n), you get this:

urinals7 - The Urinal Sequence



This means that some large numbers of urinals will pack efficiently (50%) and some inefficiently (33%). The ‘best’ number of urinals, corresponding to the peaks of the graph, are of the form:

urinals5 - The Urinal Sequence



The worst, on the other hand, are given by:

urinals6 - The Urinal Sequence



So, if you want people to pack efficiently into your urinals, there should be 3, 5, 9, 17, or 33 of them, and if you want to take advantage of the protocol to maximize awkwardness, there should be 4, 7, 13, or 25 of them.

These calculations suggest a few other hacks. Guys: if you enter a bathroom with an awkward number of vacant urinals in a row, rather than taking one of the end ones, you can take one a third of the way down the line. This will break the awkward row into two optimal rows, turning a worst-case scenario into a best-case one. On the other hand, say you want to create awkwardness. If the bathroom has an unawkward number of urinals, you can pick one a third of the way in, transforming an optimal row into two awkward rows.

And, of course, if you want to make things really awkward, I suggest printing out this article and trying to explain it to the guy peeing next to you.


ReportReport this topic to moderators FlagFlag as not safe for work.   Edit  
Views: 2,420
RATE
49
Posted: 2011-03-27 05:17:28
Psst.

Responses (12) / Sorted by points

I mainly use the stall. I use the urinal if no one else is there. there aren't any walls or anything dividing the urinals. So, they're right next to each other.
Posted: 2011-03-27 16:06:28 Report Reply
I stand as close as possible to someone else taking a piss... I'm not gay or anything, I just enjoy putting dudes to shame.
Posted: 2011-03-27 22:23:03 Report Reply
someone has to much time on there hands, and i dont give a shit what urinal i use as long as i can relieve my self
Posted: 2011-03-28 06:34:04 Report Reply
mariofox03
mariofox03
Rank: #89
wow! That was...something...
Posted: 2011-03-27 06:24:14 Report Reply
bufus101
bufus101
Rank: #29
haha
Posted: 2011-03-27 06:29:37 Report Reply
SuperPost
SuperPost
Rank: #96
what if theres two urnials?
Posted: 2011-03-27 10:11:37 Report Reply
then there might as well be one
Posted: 2011-03-27 13:31:36 Report Reply
SuperPost
SuperPost
Rank: #96
XD
Posted: 2011-03-27 14:12:39 Report Reply
casper667
casper667
Rank: #186
I don't see how 4 wouldn't pack efficiently.
x = used urinal
o = open

x o o x = 50% pack rate

So although it wouldn't be as optimal as 3 or 5, it would still produce a pack rate of 50%.
Posted: 2011-03-27 13:38:21 Report Reply
bufus101
bufus101
Rank: #29
thats true. i guess theyre looking for more then 50% to be efficient. its still interesting how we can apply math to things like this haha
Posted: 2011-03-27 15:52:37 Report Reply
I usually go right between to people and stand about 2-3 feet away from urinal and start pissin, awkward for 2 other guys but funny as hell for me xD
Posted: 2011-03-27 15:12:54 Report Reply
bufus101
bufus101
Rank: #29
haha thats the way to do it! espeically if you have the option to pee a space away but you dont anyways haha
Posted: 2011-03-27 15:53:05 Report Reply

Post a response

bufus101Posted by:
bufus101
Rank: #29

Related posts


Chelsea vs BarcelonaChelsea vs Barcelona
+12 points / ask
The Urinal GameThe Urinal Game
+139 points / flash
Urinal RulesUrinal Rules
+57 points / pics
Real arts of woodcarvingReal arts of woodcarving
+79 points / pics
Real BatmanReal Batman
+80 points / pics
Real simpsonsReal simpsons
+93 points / videos