<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xkcdrw</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xkcdrw"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/Xkcdrw"/>
		<updated>2026-04-15T15:19:07Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=2821:_Path_Minimization&amp;diff=322645</id>
		<title>2821: Path Minimization</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=2821:_Path_Minimization&amp;diff=322645"/>
				<updated>2023-08-29T12:13:20Z</updated>
		
		<summary type="html">&lt;p&gt;Xkcdrw: Added a refractive index reference&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 2821&lt;br /&gt;
| date      = August 28, 2023&lt;br /&gt;
| title     = Path Minimization&lt;br /&gt;
| image     = path_minimization_2x.png&lt;br /&gt;
| imagesize = 562x559px&lt;br /&gt;
| noexpand  = true&lt;br /&gt;
| titletext = Of course you get an ice cream cone for the swimmer too! You're not a monster.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{incomplete|Created by WAITING AN HOUR BEFORE SWIMMING - Please change this comment when editing this page. Do NOT delete this tag too soon.}}&lt;br /&gt;
&lt;br /&gt;
In this comic, it appears that Cueball, standing on shore, is observing a swimmer who is possibly (but not obviously) in distress. The comic illustrates five potential paths that can be taken to reach the swimmer, each with a different reason to make them viable, in the manner of demonstrating different optimal strategies that can be chosen. The described paths are indicative of the path light takes between materials with different refractive indices.&lt;br /&gt;
&lt;br /&gt;
The first path is an angle away from Cueball, straight to the swimmer, which allows for the minimum possible distance to be traveled, some on land and the remainder in the water.&lt;br /&gt;
&lt;br /&gt;
The second path travels more obliquely from Cueball to the water and then at a sharper angle to the swimmer. This path would take the shortest amount of time, presuming that Cueball would move faster on land (covering more of the distance) and slower through the water (but less distance). The exact angles would depend on how much faster Cueball is on land than in the water.  Note that this is the path light will take through mediums with different refractive indices.&lt;br /&gt;
&lt;br /&gt;
The third path travels at a far more oblique angle to the water such that the subsequent swimming path is entirely perpendicular to the shoreline, adding to the amount of time spent on land in order to minimize the time spent swimming. Depending on one's swimming ability versus running ability, this could be the safest path to take.&lt;br /&gt;
&lt;br /&gt;
The fourth path travels nearly parallel to the beach. In fact moving slightly ''away'' from the swimmer but towards an intermediate goal: an ice cream stand. After that, the path turns and aims straight towards the swimmer, as all the others eventually do (although it is not made clear at this point if Cueball will be eating, or just carrying, an ice cream even whilst swimming).&lt;br /&gt;
&lt;br /&gt;
The fifth and final path, barely visible directly above Cueball, is labeled as the path that ''maximizes'' time. This path, presumably, travels around the entire world, likely stopping for many, ''many'' rest breaks. It should be noted that, by the definition given, it is theoretically possible to stretch the maximum time taken out forever by simply walking away and never returning.&lt;br /&gt;
&lt;br /&gt;
You could also fulfil the criteria of reaching the target in finite, but arbitrarily long, time by following a {{w|random walk}}(+swim) or even follow a {{w|space-filling curve}} carefully chosen to be the maximally finite scenario. Or you could simply choose any path, and stop for an arbitrarily long time, or travel at a speed approaching zero. In the comic, however, a requirement for simplicity of path may dictate the use of the opposing {{w|great-circle distance}}, or a variation with maximum swim-time without ''undue'' time-wasting detours, and assume equal speeds of travel on all routes.&lt;br /&gt;
&lt;br /&gt;
The title text adds the stipulation, to the ice-cream path, that you also carry an ice-cream to the target swimmer to 'justify' that choice of route. But how this squares with the reason to rendezvous with the swimmer, or the manner in which this would further complicate the swimming stage, goes unsaid. But it makes it clear that ''not'' doing this isn't considered socially permissable, whether or not he had stopped to eat an ice-cream of his own beforehand.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
{{incomplete transcript|Do NOT delete this tag too soon.}}&lt;br /&gt;
:Path that minimizes distance [A straight line from beach cueball to ocean cueball, bearing about 135]&lt;br /&gt;
:Path that minimizes time [A line from beach cueball to the waterline closer to horizontal, bearing about 120, then angling towards ocean cueball, bearing about 150]&lt;br /&gt;
:Path that minimizes swimming [A line from beach cueball to the waterline closest to ocean cueball, bearing about 115, then angling toward ocean cueball, bearing 180]&lt;br /&gt;
:Path that minimizes time until you get ice cream [A line from beach cueball to an ice cream stand manned by Ponytail, bearing about 90, then angling toward ocean cueball, bearing about 190]&lt;br /&gt;
:Path that maximizes time [A line from beach cueball away from the shore, bearing 0, fading and disappearing at the top of the panel, and reappearing at the bottom of the panel directly below ocean cueball]&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Food]]&lt;br /&gt;
[[Category:Comics featuring Cueball]]&lt;br /&gt;
[[Category:Comics featuring Ponytail]]&lt;br /&gt;
[[Category:Multiple Cueballs]]&lt;/div&gt;</summary>
		<author><name>Xkcdrw</name></author>	</entry>

	</feed>