The Complexity Of Songs
   HOME

TheInfoList



OR:

"The Complexity of Songs" is a
scholarly article Academic publishing is the subfield of publishing which distributes academic research and scholarship. Most academic work is published in academic journal articles, books or theses. The part of academic written output that is not formally publ ...
by
computer scientist A computer scientist is a person who is trained in the academic study of computer science. Computer scientists typically work on the theoretical side of computation, as opposed to the hardware side on which computer engineers mainly focus (al ...
Donald Knuth Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist, mathematician, and professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of computer sc ...
in 1977, as an
in-joke An in-joke, also known as an inside joke or a private joke, is a joke whose humour is understandable only to members of an ingroup; that is, people who are ''in'' a particular social group, occupation, or other community of shared interest. It i ...
about
computational complexity theory In theoretical computer science and mathematics, computational complexity theory focuses on classifying computational problems according to their resource usage, and relating these classes to each other. A computational problem is a task solved by ...
. The article capitalizes on the tendency of popular
song A song is a musical composition intended to be performed by the human voice. This is often done at distinct and fixed pitches (melodies) using patterns of sound and silence. Songs contain various forms, such as those including the repetitio ...
s to devolve from long and content-rich
ballad A ballad is a form of verse, often a narrative set to music. Ballads derive from the medieval French ''chanson balladée'' or ''ballade'', which were originally "dance songs". Ballads were particularly characteristic of the popular poetry and ...
s to highly repetitive texts with little or no meaningful content.Steven Krantz (2005) "Mathematical Apocrypha Redux", , pp.2, 3. The article notes that a song of length ''N'' words may be produced remembering, e.g., only words ("
space complexity The space complexity of an algorithm or a computer program is the amount of memory space required to solve an instance of the computational problem as a function of characteristics of the input. It is the memory required by an algorithm until it ex ...
" of the song).


Article summary

Knuth writes that "our ancient ancestors invented the concept of
refrain A refrain (from Vulgar Latin ''refringere'', "to repeat", and later from Old French ''refraindre'') is the line or lines that are repeated in music or in poetry — the "chorus" of a song. Poetic fixed forms that feature refrains include the vi ...
" to reduce the
space complexity The space complexity of an algorithm or a computer program is the amount of memory space required to solve an instance of the computational problem as a function of characteristics of the input. It is the memory required by an algorithm until it ex ...
of songs, which becomes crucial when a large number of songs is to be committed to one's
memory Memory is the faculty of the mind by which data or information is encoded, stored, and retrieved when needed. It is the retention of information over time for the purpose of influencing future action. If past events could not be remembered, ...
. Knuth's
Lemma Lemma may refer to: Language and linguistics * Lemma (morphology), the canonical, dictionary or citation form of a word * Lemma (psycholinguistics), a mental abstraction of a word about to be uttered Science and mathematics * Lemma (botany), a ...
1 states that if ''N'' is the length of a song, then the refrain decreases the song complexity to ''cN'', where the factor ''c'' < 1. Reprinted in: Knuth further demonstrates a way of producing songs with O(\sqrt N) complexity, an approach "further improved by a Scottish farmer named O. MacDonald". More ingenious approaches yield songs of complexity O(\log N), a class known as " ''m'' bottles of beer on the wall". Finally, the progress during the 20th century—stimulated by the fact that "the advent of modern drugs has led to demands for still less memory"—leads to the ultimate improvement: Arbitrarily long songs with space complexity O(1) exist, e.g. a song defined by the
recurrence relation In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a parameter ...
:S_0=\epsilon, S_k = V_kS_,\, k\ge 1, :V_k = ' That's the way,' U 'I like it,' U, for all k \ge 1 :U= 'uh huh,' 'uh huh'


Further developments

Prof. Kurt Eisemann of
San Diego State University San Diego State University (SDSU) is a public research university in San Diego, California. Founded in 1897 as San Diego Normal School, it is the third-oldest university and southernmost in the 23-member California State University (CSU) system ...
in his letter to the ''
Communications of the ACM ''Communications of the ACM'' is the monthly journal of the Association for Computing Machinery (ACM). It was established in 1958, with Saul Rosen as its first managing editor. It is sent to all ACM members. Articles are intended for readers with ...
'' further improves the latter seemingly unbeatable estimate. He begins with an observation that for practical applications the value of the "hidden constant" ''c'' in the Big Oh notation may be crucial in making the difference between the feasibility and unfeasibility: for example a constant value of 1080 would exceed the capacity of any known device. He further notices that a technique has already been known in
Mediaeval Europe In the history of Europe, the Middle Ages or medieval period lasted approximately from the late 5th to the late 15th centuries, similar to the post-classical period of global history. It began with the fall of the Western Roman Empire a ...
whereby textual content of an arbitrary tune can be recorded basing on the recurrence relation S_k = C_2S_, where C_2 = 'la', yielding the value of the big-Oh constant ''c'' equal to 2. However it turns out that another culture achieved the absolute lower bound of O(0). As Prof. Eisemann puts it:
"When the ''Mayflower'' voyagers first descended on these shores, the native Americans proud of their achievement in the theory of information storage and retrieval, at first welcomed the strangers with the complete silence. This was meant to convey their peak achievement in the complexity of songs, namely the demonstration that a limit as low as ''c'' = 0 is indeed obtainable."
However the Europeans were unprepared to grasp this notion, and the chiefs, in order to establish a common ground to convey their achievements later proceeded to demonstrate an approach described by the recurrent relation S_k = C_1S_, where C_1 = 'i', with a suboptimal complexity given by ''c'' = 1.Kurt Eisemann, "Further Results on the Complexity of Songs", ''Communications of the ACM'', vol 28 (1985), no. 3, p. 235. The O(1) space complexity result was also implemented by
Guy L. Steele, Jr. Guy Lewis Steele Jr. (; born October 2, 1954) is an American computer scientist who has played an important role in designing and documenting several computer programming languages and technical standards. Biography Steele was born in Missouri ...
, perhaps challenged by Knuth's article. Dr. Steele's ''
TELNET Telnet is an application protocol used on the Internet or local area network to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. User data is interspersed in-band with Telnet control i ...
Song'' used a completely different algorithm based on exponential recursion, a parody on some implementations of TELNET. It has been suggested that the complexity analysis of human songs can be a useful pedagogic device for teaching students complexity theory. The article "On Superpolylogarithmic Subexponential Functions" by Prof.
Alan Sherman Alan Theodore Sherman (born February 26, 1957) is a full professor of computer science at UMBC, director of the UMBC Center for Information Security and Assurance (CISA), and director of the UMBC Chess Program. Sherman is an editor for Crypt ...
Alan Sherman
"On Superpolylogarithmic Subexponential Functions" (PostScript)
''ACM SIGACT News'', vol. 22, no. 1, 1991, p. 65
writes that Knuth's article was seminal for analysis of a special class of functions.


References


External links

*
The Complexity of Songs
, Knuth, Donald E. (1984). {{DEFAULTSORT:Complexity Of Songs Computational complexity theory Mathematics of music In-jokes Computer humor Donald Knuth 1977 documents Computer science papers Music and humour