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:

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:

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:

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:

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:

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:

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

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.

Discussion question: This is obviously a male-specific issue.  Can you think of any female-specific experiences that could benefit from some mathematical analysis, experiences which — being a dude — I might be unfamiliar with?  Alignments of periods with sequences of holidays? The patterns to those playground clapping rhymes? Whatever it is that goes on at slumber parties? Post your suggestions in the comments!

Edit: The protocol may not be international, but I’m calling it that anyway for acronym reasons.

1,128 thoughts on “Urinal protocol vulnerability

  1. I love it! Maybe you can do one about periods that are supposed to come at regular intervals, but instead always fall on the worst possible dates. Job interview? Enjoy trying to sit comfortably with that going on. Pool party? Hope you like tanning only. Camping trip? There are no sanitary disposal units in the wild, enjoy packing that shit out with you.

  2. However taxation are not measured that way. The first 25K of earnings would have been 2013 tax supports at the reduced 15% segment first, thus producing a much reduced determine than what you display.I am not disagreeing that Shrub does not have reduced taxation. He certainly does. tweeting from Russia

  3. The oyster mixture ($15) contains eight completely fresh-shucked oysters diving in a dish of hot red mixture marinade. great info

  4. I was wanting to know your situation; many of us have developed some nice methods and we are looking to trade methods with others, why not shoot me an e-mail if interested. for another blog

  5. Exhibitors must be more inspired to advertise the Show to their focus on viewers and offer them with rewards for coming to their unit. The display organizer’s job is to get individuals to the Show, not to a particular company’s unit. taking the advice

  6. Property components are a naturally and considerably utilized claim on the value of property solutions because some of the payments for those solutions must be used for devaluation, investing on advanced goods. Susan McGalla

  7. Often it is the amazing deficiency of way of lifestyle of someone near that provides this home; and then the regularity of medical center trips and memorials gradually begins to select up amount, like a drumbeat in the forests. real estate photos

  8. Property components are a naturally and considerably utilized claim on the value of property solutions because some of the payments for those solutions must be used for devaluation, investing on advanced goods. from another one of these sites

  9. 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. Nonton Film Gratis

  10. I also have GeoIP information; if you’d like to do geocorrelation of some kind, I’ll be providing a version of the data with basic region-level lat/long information (limited to protect privacy) sometime in the next few days. Note: The ColorDB data is the main survey. park office

  11. So they get to foul our stuff not the other way around. It’s sort of a version of the George Carlin line: “how come other people’s stuff is shit, and your shit is stuff. try this web-site

  12. We also discovered about Viega’s MegaPress System and each one of us pushed black tube. We also used a tube threads machine, so we could comprehend the different processes available, and how long engaged when an experienced is on a job, threads tube. We were helped by Jerr McKinnon, manager of coaching and tech assistance group, and Andrew Richards, item instructor, when using the tools and operating on set ups. after reading that report

  13. So while we are assured the highly effective company activities that offer actual value are here to stay, the second part of the question is “Why are some reveals like AHR Expo doing so well while others fight.” Here are some of our results based on conversations with a wide range of display managers, members and members. info here

  14. Automobiles can be ballasted with front side and rear loads to distribute 60 percent of the body weight on the returning axle for a 60:40 rate, or the other way around for improved taking power. mary kom movie

  15. Whether you might be building a fresh pool and also want any cooler as compared to concrete, non-slip surface area or remodeling a preexisting pool to be able to freshen the particular image, the Sundek Vintage Texture Overlay System is a superb solution. important link

  16. Di dalam artikel kali ini kita akan mengupas tuntas tentang kanker. Penyebab terkena sakit kanker, gejala-gejala kanker paru-paru serta tahap pengobatan yang paling aman dalam mengobati penyakit yang paling mematikan ini. try this web-site

  17. Hi
    I recently come across a counterexample for this. The problem relays on the International Choice of Urinal Protocol not taking into consideration the distance from the urinals to the toilets (where you poop).
    If the urinals and the toilets are facing each other, people pooping might alter your choice for the urinal. Even more, if someone there’s just one person in the urinal (and he follows the ICUP) and one person pooping (on the oposite corner), the next person that goes into the bathroom to might not choose the most far urinal as he would be closer to the guy pooping.

    I have a fix for this bug but it is too large to fit on this textarea.

  18. I remember a situation… there were 4 urinals. I come in, there’s already a guy. So I take the last possible urinal. Then another guy comes in and goes directly between us. Nobody spoke. sometimes I happen to need to pee at the same time as another male family member. We go to the toilet separately but if there is an awkward situation already, then it is OK to use two urinals next to each other. I wonder what this does to the math.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>