### Spaghetti in Physics and Math

January 7, 2011 A traditional Italian Christmas Eve dinner is a seafood spectacular. In my own house, we have shrimp cocktail, followed by spaghetti with red clam sauce. Of course, in a scientist's home, spaghetti is not just a food. It's an object for study. In this article, I present one physical phenomenon related to the breaking of dry spaghetti; one mathematics problem that is often posed as a spaghetti problem, although the spaghetti is optional; and one unusual sorting method that uses spaghetti. Spaghetti - It's not just for dinner anymore! Spaghetti is a model material for fracture studies. It's long, it has a uniform cross-section, and it's brittle. It's not surprising that when you bend a strand of spaghetti beyond a critical bend radius, it breaks. The surprising thing, however, is that it doesn't break into two pieces, but three; and sometimes more. Physics Nobelist, Richard Feynman, noticed this effect. He devoted several hours to some simple experiments, he generated a few off-the-cuff theories, but he didn't hit on the correct explanation.[1-2] His naked eye observations didn't discover the extremely subtle cause. The key, of course, is the critical bend radius. The first fracture, into two pieces, is easily seen as a consequence of the bend radius having been exceeded. The subsequent breaks are also a consequence of excessive bending, since the initial breakage sends a flexural wave down the broken pieces.[3-4] High speed photography revealed this cause. It all goes to prove that theory is fueled by experiment as much as the converse. Yogi Berra is supposed to have said,"In theory there is no difference between theory and practice. In practice there is,"although the quotation has been attributed also to Albert Einstein. Solving this spaghetti problem didn't quite command a Nobel Prize, since there was considerable prior art, but it did win a 2006 Ig Nobel Award.[5] The second spaghetti problem is actually a problem in geometry most easily explicated by spaghetti. It has a long history, since it's been traced back at least to 1854.[6-7] The problem is simply stated:[7]

A spaghetti stick, dropped on the floor, breaks at random into three pieces. What is the probability that the three parts obtained are the sides of a triangle?The key to the problem is the so-called triangle inequality, which states that the sum of the lengths of any two sides of a triangle must always exceed the length of the third side. A moment's reflection will reveal that this must be true to build any sort of triangle if you envision the third side to be the base. Ref. 7 gives an analytical solution. As usual, my programming skill exceeds my mathematical skill, so I did a Monte Carlo calculation, the source code of which can be found here. The figure shows a histogram of successful triangle builds for 10,000 trials of 10,000 broken spaghetti sticks. It's not surprising that the analytical calculation in Ref. 7 gives a 25% probability.

*Histogram of 10,000 iterations of 10,000 trials for success in building a triangle from a stick broken into three pieces.*

Our last spaghetti-inspired piece of technology is the spaghetti sort, an analog sorting technique invented by Alexander Dewdney, who succeeded Martin Gardner and Douglas Hofstadter in writing the recreational mathematics column in Scientific American magazine. Note that I wrote analog sort. This is not a computer sort. It's harder to implement (at least with spaghetti), but it runs in O(N), which is faster than the digital O(Nlog N). The spaghetti sort is done as follows when you're sorting real numbers:

1. Scaling so that a full length of spaghetti represents the highest number MAX, prepare a length of spaghetti (n/MAX) for each number n to be sorted. This is done by breaking the spaghetti strand at the proper length and discarding the unneeded piece.Dewdney presented this as an example of how quantum computing might be able to speed some computations.[8]

2. Take all the spaghetti strands loosely in your fist and bring them perpendicularly into contact with a tabletop.

3. Pick the longest strand from the stack, note its value, then the next longest, etc.

4. When the strands have all been removed, the sort is done.

### References:

- Feynman's Interest in Spaghetti
- RWD Nickalls, "The Dynamics Of Linear Spaghetti Structures," June 14, 2006 (PDF File)
- Basile Audoly and Sébastien Neukirch, "Fragmentation of Rods by Cascading Cracks: Why Spaghetti Does Not Break in Half," Phys. Rev. Lett., vol. 95, no. 9 (25 August 25, 2005), Document 95.095505 (4 pages).
- Josh Gladden, Nestor Handzy, Andrew Belmonte and Emmanuel Villermaux, "Dynamic Buckling and Breaking of Thin Rods."
- James Riordon, "Physical Review Letter on Breaking Spaghetti Leads to 2006 Ig Nobel Award," American Physical Society Press Release, October 6, 2006.
- G.S. Goodman, "The problem of the broken stick reconsidered," Math. Intelligencer, vol. 30, no. 3 (2008), pp. 43-49.
- Eugen J. Ionascu and Gabriel Prajitura, "Things to do with a broken stick," arXiv Preprint (September 5, 2010).
- A.K. Dewdney, "On the spaghetti computer and other analog gadgets for problem solving", Scientific American, vol. 250, no. 6 (June, 1984). pp. 19-26.

*Permanent Link to this article*

Linked Keywords: Italian cuisine; Christmas Eve; seafood; shrimp; spaghetti; tomato sauce; clam; scientist; physics; mathematics; sorting algorithm; fracture; brittle; bend radius; Physics Nobelist; Richard Feynman; experiment; flexural modulus; wave; theory; Yogi Berra; Albert Einstein; Nobel Prize; Euler-Bernoulli beam equation; Ig Nobel Award; geometry; probability theory; triangle; triangle inequality; analytical solution; Monte Carlo calculation; histogram; spaghetti sort; analog; Alexander Dewdney; Martin Gardner; Douglas Hofstadter; Scientific American magazine; computer; Big O notation; O(N); O(Nlog N); real numbers; quantum computing.

### Google Search

Latest Books by Dev Gualtieri

Thanks to Cory Doctorow of BoingBoing for his favorable review of Secret Codes!

Other Books

- Magnetocapacitive Tunnel Junctions - August 21, 2017

- Tardigrades - August 14, 2017

- Roman Concrete - August 7, 2017

- Solar Spicules - July 31, 2017

- Schroeder Diffuser - July 24, 2017

- Rough Microparticles - July 17, 2017

- Robot Musicians - July 10, 2017

- Walter Noll (1925-2017) - July 6, 2017

- cosmogony - July 3, 2017

- Crystal Prototypes - June 29, 2017

- Voice Synthesis - June 26, 2017

- Refining Germanium - June 22, 2017

- Granular Capillarity - June 19, 2017

- Kirchhoff–Plateau Problem - June 15, 2017

- Self-Assembly - June 12, 2017

- Physics, Math, and Sociology - June 8, 2017

- Graphene from Ethylene - June 5, 2017

- Crystal Alignment Forces - June 1, 2017

- Martian Brickwork - May 29, 2017

- Carbon Nanotube Textile - May 25, 2017

- The Scent of Books - May 22, 2017

- Patterns from Randomness - May 18, 2017

- Terpene - May 15, 2017

- The Physics of Inequality - May 11, 2017

- Asteroid 2015 BZ509 - May 8, 2017

- Fuzzy Fibers - May 4, 2017

- The Sofa Problem - May 1, 2017

- The Wisdom of Composite Crowds - April 27, 2017

- J. Robert Oppenheimer and Black Holes - April 24, 2017

- Modeling Leaf Mass - April 20, 2017

- Easter, Chicks and Eggs - April 13, 2017

- You, Robot - April 10, 2017

- Collisions - April 6, 2017

- Eugene Garfield (1925-2017) - April 3, 2017

- Old Fossils - March 30, 2017

- Levitation - March 27, 2017

- Soybean Graphene - March 23, 2017

- Income Inequality and Geometrical Frustration - March 20, 2017

- Wireless Power - March 16, 2017

- Trilobite Sex - March 13, 2017

- Freezing, Outside-In - March 9, 2017

- Ammonia Synthesis - March 6, 2017

- High Altitude Radiation - March 2, 2017

- C.N. Yang - February 27, 2017

- VOC Detection with Nanocrystals - February 23, 2017

- Molecular Fountains - February 20, 2017

- Jet Lag - February 16, 2017

- Highly Flexible Conductors - February 13, 2017

- Graphene Friction - February 9, 2017

- Dynamic Range - February 6, 2017

- Robert Boyle's To-Do List for Science - February 2, 2017

- Nanowire Ink - January 30, 2017

- Random Triangles - January 26, 2017

- Torricelli's law - January 23, 2017

- Magnetic Memory - January 19, 2017

- Graphene Putty - January 16, 2017

- Seahorse Genome - January 12, 2017

- Infinite c - January 9, 2017

- 150 Years of Transatlantic Telegraphy - January 5, 2017

- Cold Work on the Nanoscale - January 2, 2017

### Deep Archive

Deep Archive 2006-2008

**Blog Article Directory on a Single Page**