<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Get on board</title>
	<link>http://bit-player.org/2008/get-on-board</link>
	<description>An amateur's outlook on computation and mathematics.</description>
	<pubDate>Wed, 23 Jul 2008 19:10:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Get on board by: George Bell</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1653</link>
		<pubDate>Fri, 21 Mar 2008 22:08:54 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1653</guid>
					<description>What about the fastest way to deboard, or unload an airplane?  The airlines do not say anything about how this should be done, yet by unwritten custom it always seems to be row by row, front to back.  Why has this custom evolved?  It seems rather inefficient, aisle, center window would probably be faster.  Also, does it follow that reversing the fastest loading scheme is the fastest unloading scheme?  I would think not.</description>
		<content:encoded><![CDATA[	<p>What about the fastest way to deboard, or unload an airplane?  The airlines do not say anything about how this should be done, yet by unwritten custom it always seems to be row by row, front to back.  Why has this custom evolved?  It seems rather inefficient, aisle, center window would probably be faster.  Also, does it follow that reversing the fastest loading scheme is the fastest unloading scheme?  I would think not.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: brian</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1619</link>
		<pubDate>Thu, 14 Feb 2008 20:08:58 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1619</guid>
					<description>@ Jim Ward:

When I patent my boarding buzzer, you should be sure to file for your airline container idea. Brilliant! And what's especially nice is that containers are &quot;intermodal.&quot; We can board our Paris-bound container at the train station; it will be hauled by rail to the airport and then lifted by crane from a siding onto the waiting containerized aircraft.</description>
		<content:encoded><![CDATA[	<p>@ Jim Ward:</p>
	<p>When I patent my boarding buzzer, you should be sure to file for your airline container idea. Brilliant! And what&#8217;s especially nice is that containers are &#8220;intermodal.&#8221; We can board our Paris-bound container at the train station; it will be hauled by rail to the airport and then lifted by crane from a siding onto the waiting containerized aircraft.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: brian</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1618</link>
		<pubDate>Thu, 14 Feb 2008 19:58:52 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1618</guid>
					<description>@ Barry Cipra:

If we're talking about what actually goes on in the classroom, there's no rule requiring that the pupils make only pairwise comparisons of nearest neighbors. On the contrary, I think the process works so well partly because people in this situation tend to employ a hierarchical method. First you look around and decide whether you belong toward the front or toward the back, then within your half of the group you reach a similar judgment, and so on. Thus each child makes on the order of log2 &lt;em&gt;n&lt;/em&gt; decisions.

But I find Barry's approximate-sorting problem interesting, even if it doesn't describe the &quot;Line up alphabetically according to height&quot; process. Surely someone has studied this? 

I've written some very hasty code to play with the idea. The results seem to depend sensitively on the details of the sorting algorithm. 

I define a predicate, 'close-enough,' which returns &lt;em&gt;true&lt;/em&gt; iff two numbers differ by no more than 1.0. If I plug this predicate into the standard Lisp 'sort' function, I get results that are &lt;em&gt;not&lt;/em&gt; well sorted, to say the least:

9 11 10 15 1 13 17 4 19 8 3 2 12 14 18 20 6 5 7 16
15 7 8 18 16 17 13 12 20 19 1 11 10 9 6 4 5 3 2 14
12 11 9 4 2 16 15 18 17 20 13 14 19 6 5 7 8 10 3 1

It appears there's not even an upper limit on the difference between adjacent elements. I don't know offhand what algorithm the Lisp 'sort' procedure uses, but I'd guess it's some variant of quicksort. 

Doing an insertion sort with the same 'close-enough' predicate gives results that look like this:

2 1 4 3 6 5 7 8 11 10 9 13 12 14 15 18 17 16 20 19
4 3 2 1 6 5 9 8 7 10 14 13 12 11 16 15 17 20 19 18
2 1 3 5 4 7 6 8 10 9 11 14 13 12 18 17 16 15 19 20

A version of the exchange-sort Barry recommends gives similar-looking results:

2 1 3 4 6 5 9 8 7 12 11 10 14 13 17 16 15 18 20 19
1 2 3 5 4 7 6 8 11 10 9 17 16 15 14 13 12 19 18 20
2 1 4 3 6 5 8 7 10 9 11 14 13 12 16 15 18 17 20 19

Next question: What's a good measure of out-of-sortedness? Ordinarily I'd say the sum of &lt;em&gt;(a&lt;sub&gt;j&lt;/sub&gt; – j)&lt;sup&gt;2&lt;/sup&gt;&lt;/em&gt;, where the index &lt;em&gt;j&lt;/em&gt; runs from 1 through N. But here we seem to be looking for a more local measure—maybe simply the count of out-of-order pairs, or else something like the sum of &lt;em&gt;(a&lt;sub&gt;j&lt;/sub&gt; – a&lt;sub&gt;j+1&lt;/sub&gt;)&lt;sup&gt;2&lt;/sup&gt;&lt;/em&gt;.

I suspect there's more to say about this idea of sorting with errors or approximations. Maybe a subject for an item of its own.</description>
		<content:encoded><![CDATA[	<p>@ Barry Cipra:</p>
	<p>If we&#8217;re talking about what actually goes on in the classroom, there&#8217;s no rule requiring that the pupils make only pairwise comparisons of nearest neighbors. On the contrary, I think the process works so well partly because people in this situation tend to employ a hierarchical method. First you look around and decide whether you belong toward the front or toward the back, then within your half of the group you reach a similar judgment, and so on. Thus each child makes on the order of log2 <em>n</em> decisions.</p>
	<p>But I find Barry&#8217;s approximate-sorting problem interesting, even if it doesn&#8217;t describe the &#8220;Line up alphabetically according to height&#8221; process. Surely someone has studied this? </p>
	<p>I&#8217;ve written some very hasty code to play with the idea. The results seem to depend sensitively on the details of the sorting algorithm. </p>
	<p>I define a predicate, &#8216;close-enough,&#8217; which returns <em>true</em> iff two numbers differ by no more than 1.0. If I plug this predicate into the standard Lisp &#8217;sort&#8217; function, I get results that are <em>not</em> well sorted, to say the least:</p>
	<p>9 11 10 15 1 13 17 4 19 8 3 2 12 14 18 20 6 5 7 16<br />
15 7 8 18 16 17 13 12 20 19 1 11 10 9 6 4 5 3 2 14<br />
12 11 9 4 2 16 15 18 17 20 13 14 19 6 5 7 8 10 3 1</p>
	<p>It appears there&#8217;s not even an upper limit on the difference between adjacent elements. I don&#8217;t know offhand what algorithm the Lisp &#8217;sort&#8217; procedure uses, but I&#8217;d guess it&#8217;s some variant of quicksort. </p>
	<p>Doing an insertion sort with the same &#8216;close-enough&#8217; predicate gives results that look like this:</p>
	<p>2 1 4 3 6 5 7 8 11 10 9 13 12 14 15 18 17 16 20 19<br />
4 3 2 1 6 5 9 8 7 10 14 13 12 11 16 15 17 20 19 18<br />
2 1 3 5 4 7 6 8 10 9 11 14 13 12 18 17 16 15 19 20</p>
	<p>A version of the exchange-sort Barry recommends gives similar-looking results:</p>
	<p>2 1 3 4 6 5 9 8 7 12 11 10 14 13 17 16 15 18 20 19<br />
1 2 3 5 4 7 6 8 11 10 9 17 16 15 14 13 12 19 18 20<br />
2 1 4 3 6 5 8 7 10 9 11 14 13 12 16 15 18 17 20 19</p>
	<p>Next question: What&#8217;s a good measure of out-of-sortedness? Ordinarily I&#8217;d say the sum of <em>(a<sub>j</sub> – j)<sup>2</sup></em>, where the index <em>j</em> runs from 1 through N. But here we seem to be looking for a more local measure—maybe simply the count of out-of-order pairs, or else something like the sum of <em>(a<sub>j</sub> – a<sub>j+1</sub>)<sup>2</sup></em>.</p>
	<p>I suspect there&#8217;s more to say about this idea of sorting with errors or approximations. Maybe a subject for an item of its own.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: Carl Witty</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1617</link>
		<pubDate>Thu, 14 Feb 2008 17:15:49 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1617</guid>
					<description>I first saw the sections of 5 within the Southwest A-B-C groups in January, 2008 (in Boise, ID).</description>
		<content:encoded><![CDATA[	<p>I first saw the sections of 5 within the Southwest A-B-C groups in January, 2008 (in Boise, ID).
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: brian</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1616</link>
		<pubDate>Thu, 14 Feb 2008 14:42:37 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1616</guid>
					<description>@ Caleb Eggensperger

I fly Southwest often, and I know the A-B-C drill, but not the numerical sequence within those groups. Perhaps it's something added in recent months, or used only at certain airports?</description>
		<content:encoded><![CDATA[	<p>@ Caleb Eggensperger</p>
	<p>I fly Southwest often, and I know the A-B-C drill, but not the numerical sequence within those groups. Perhaps it&#8217;s something added in recent months, or used only at certain airports?
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: Jim Ward</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1614</link>
		<pubDate>Thu, 14 Feb 2008 13:12:34 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1614</guid>
					<description>The shipping industry solved this years ago - containerization. Instead of boarding, a block of fliers would arrange themselves into a seating container, which would then be sealed and placed in the aircraft.

I wonder why carry-on luggage is always above the seats? Why not have the bins below the seats? Would require less lifting.

There's also the possibility of an auction, where passengers bid on their boarding order. Would solve the problem of who gets the bin and the window seat.</description>
		<content:encoded><![CDATA[	<p>The shipping industry solved this years ago - containerization. Instead of boarding, a block of fliers would arrange themselves into a seating container, which would then be sealed and placed in the aircraft.</p>
	<p>I wonder why carry-on luggage is always above the seats? Why not have the bins below the seats? Would require less lifting.</p>
	<p>There&#8217;s also the possibility of an auction, where passengers bid on their boarding order. Would solve the problem of who gets the bin and the window seat.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: Barry Cipra</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1613</link>
		<pubDate>Thu, 14 Feb 2008 00:39:26 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1613</guid>
					<description>&quot;When I was a schoolboy, my classmates and I could quickly line ourselves up in order of height, relying on an efficient parallel sorting algorithm. But that method works so well mainly because height is a visible trait....&quot;

I wonder, what is the comparison threshold for judging relative height?  I can imagine a scenario in which a large class, with a shortest-to-tallest difference of several inches, is unable to sort itself because nobody rates himself taller or shorter than the people on either side of him -- one could conceivably even have the students lined up in exactly the wrong order!

To make the problem somewhat more mathematical, suppose you start with a permutation of the integers from 1 to N (say N=100), and then start transposing adjacent elements into &quot;correct&quot; relative order if they differ by more than 1.  After all possible transpositions are made, you can take some measure of how far off from 1...N you are.  One might ask for the &quot;average error&quot;, or some such statistic.</description>
		<content:encoded><![CDATA[	<p>&#8220;When I was a schoolboy, my classmates and I could quickly line ourselves up in order of height, relying on an efficient parallel sorting algorithm. But that method works so well mainly because height is a visible trait&#8230;.&#8221;</p>
	<p>I wonder, what is the comparison threshold for judging relative height?  I can imagine a scenario in which a large class, with a shortest-to-tallest difference of several inches, is unable to sort itself because nobody rates himself taller or shorter than the people on either side of him &#8212; one could conceivably even have the students lined up in exactly the wrong order!</p>
	<p>To make the problem somewhat more mathematical, suppose you start with a permutation of the integers from 1 to N (say N=100), and then start transposing adjacent elements into &#8220;correct&#8221; relative order if they differ by more than 1.  After all possible transpositions are made, you can take some measure of how far off from 1&#8230;N you are.  One might ask for the &#8220;average error&#8221;, or some such statistic.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Get on board by: Caleb Eggensperger</title>
		<link>http://bit-player.org/2008/get-on-board#comment-1612</link>
		<pubDate>Wed, 13 Feb 2008 06:49:56 +0000</pubDate>
		<guid>http://bit-player.org/2008/get-on-board#comment-1612</guid>
					<description>You dismiss the first come, first served model rather quickly. I assume, therefore, that you're not familiar with Southwest's method. When you check in with Southwest, you are assigned a boarding group (A, B, or C) and a number (1-60). So your order is based on when you check in, not how long you've been standing in line (see below, however)

When boarding begins, the boarding group and either 1-30 or 31-60 is asked to line up. There are signs breaking the line into sections of 5 and rotatable signs indicating the letter. Everyone lines up in their appropriate group of 5, usually not bothering to be exactly precise (they don't check when they scan your boarding pass)

In my experience, the technique works very well. People tend to spread out, alleviating the baggage problem. The bottleneck tends to be when all the window and aisle seats are full and people have to choose a middle seat (all Southwest flights are on 737s). Everyone is reluctant to spring for a middle seat, so they tend to move slow, looking for an aisle or window seat.

Another interesting aspect of Southwest's system is the passengers who stay on the plane when it stops to take on new passengers. Because Southwest flights don't just fly from one place to another and back repeatedly, some of the passengers don't have to change planes. This means that occasionally, even if you have an &quot;A&quot; group boarding pass, you'll still end up in a middle seat.

Southwest's system is definitely the fastest I've used. I much prefer it to the others.

About the checking in: Check in online starts 24 hours before the flight leaves, so if you actually wait until you get to the airport to check in, you're pretty much guaranteed a late B pass and a middle seat. There are a few websites which will allow you to check in automatically exactly 24 hours before your departure time.</description>
		<content:encoded><![CDATA[	<p>You dismiss the first come, first served model rather quickly. I assume, therefore, that you&#8217;re not familiar with Southwest&#8217;s method. When you check in with Southwest, you are assigned a boarding group (A, B, or C) and a number (1-60). So your order is based on when you check in, not how long you&#8217;ve been standing in line (see below, however)</p>
	<p>When boarding begins, the boarding group and either 1-30 or 31-60 is asked to line up. There are signs breaking the line into sections of 5 and rotatable signs indicating the letter. Everyone lines up in their appropriate group of 5, usually not bothering to be exactly precise (they don&#8217;t check when they scan your boarding pass)</p>
	<p>In my experience, the technique works very well. People tend to spread out, alleviating the baggage problem. The bottleneck tends to be when all the window and aisle seats are full and people have to choose a middle seat (all Southwest flights are on 737s). Everyone is reluctant to spring for a middle seat, so they tend to move slow, looking for an aisle or window seat.</p>
	<p>Another interesting aspect of Southwest&#8217;s system is the passengers who stay on the plane when it stops to take on new passengers. Because Southwest flights don&#8217;t just fly from one place to another and back repeatedly, some of the passengers don&#8217;t have to change planes. This means that occasionally, even if you have an &#8220;A&#8221; group boarding pass, you&#8217;ll still end up in a middle seat.</p>
	<p>Southwest&#8217;s system is definitely the fastest I&#8217;ve used. I much prefer it to the others.</p>
	<p>About the checking in: Check in online starts 24 hours before the flight leaves, so if you actually wait until you get to the airport to check in, you&#8217;re pretty much guaranteed a late B pass and a middle seat. There are a few websites which will allow you to check in automatically exactly 24 hours before your departure time.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
