Big O Notation

Big O Notation

Length: 903 words (2.6 double-spaced pages)

Rating: Excellent

Open Document

Essay Preview

More ↓
Big O notation or Big Oh notation, and also Landau notation or asymptotic notation, is a mathematical notation used to describe the asymptotic behavior of functions. (Sestoft, p. 40) Its purpose is to characterize a function's behavior for very large (or very small) inputs in a simple but rigorous way that enables comparison to other functions. More precisely, the symbol O is used to describe an asymptotic upper bound for the magnitude of a function in terms of another, usually simpler, function. It has two main areas of application in mathematics, it is usually used to characterize the residual term of a truncated infinite series, especially an asymptotic series, and in computer science, it is useful in the analysis of the complexity of algorithms.
Big-O Notation is short for order of growth notation. It is defined as given two function t(n) and g(n), we say that t(n) = O(g(n)) if there exist a positive constant A and some number N such that t(n) <= A g(n) for all n > n T(n) means the running time of the algorithm on a problem of size N. (Sestoft, p. 105) Big-O basically means that t(n) asymptotically (only for large n) grows not faster than g(n) (give or take a constant factor). The order of growth of t(n) is not larger than g(n).
When put in terms of order of growth, f = O(g) is like "f <= g." When two searching algorithms are compared, both the worst and average time is O(n) for a sequential search and O(log2 n) for the binary search. (Sestoft, p. 110)
Big-O notation is concerned with what happens for very large values of N, therefore only the largest term in a polynomial is needed. All smaller terms are dropped.
For example, the number of operations in some sorts is N2 - N. For large values of N, the single N term is insignificant compared to N2, therefore one of these sorts would be described as an O(N2) algorithm. (Sestoft, p. 80)
Similarly, constant multipliers are ignored. So a O(4*N) algorithm is equivalent to O(N), which is how it should be written. Ultimately you want to pay attention to these multipliers in determining the performance, but for the first round of analysis using Big-O, you simply ignore constant factors.
Complexity analysis can be very useful, but there are problems with it too. Many algorithms are simply too hard to analyze mathematically.

How to Cite this Page

MLA Citation:
"Big O Notation." 20 Oct 2019

Need Writing Help?

Get feedback on grammar, clarity, concision and logic instantly.

Check your paper »

Big O Notation Essays

- Big O notation or Big Oh notation, and also Landau notation or asymptotic notation, is a mathematical notation used to describe the asymptotic behavior of functions. (Sestoft, p. 40) Its purpose is to characterize a function's behavior for very large (or very small) inputs in a simple but rigorous way that enables comparison to other functions. More precisely, the symbol O is used to describe an asymptotic upper bound for the magnitude of a function in terms of another, usually simpler, function....   [tags: Mathematics Programming]

Free Essays
903 words (2.6 pages)

Essay about The North Indian Percussion Instruments

- Table of Contents 1.0 Introduction 1 2.0 History of the Instrument 2 3.0 Instrument Overview and Nomenclature 3 4.0 How it is Played 5 5.0 Styles and Traditions 17 6.0 Social Aspects and the Future of the Instrument 18 7.0 Glossary 20 8.0 Bibliography 22 1.0 Introduction This essay seeks to address a variety of aspects pertaining to the North Indian percussion instrument the Tabla with a primary focus on the nomenclature, notation, and styles used by Hindustani musicians throughout history....   [tags: nomenclature, notation, and styles]

Research Papers
2969 words (8.5 pages)

A Short Note On D ( 2016 ) Essay example

- Sonata in D (2016) This piece was originally composed by the talented Italian composer, Nino Rota around the 20th century. Rota was a well-renowned music composer and an enthusiast of the viola. He dedicated most of his compositions to his fellow music composers. Notably, Rota composed the second Sonata to Piero Farulli. This particular piece contained three different movements under C major: Allegretto scorrevole, Andante quasi Adagio, and Allegro scorrevole. In the “A Little Bit of this, a Little Bit of that” concert, Julia Heinen and Francoise Regnet tried to bring out the calming effect of the different pieces....   [tags: Music, Tempo, Musical notation]

Research Papers
1011 words (2.9 pages)

Analysis Of The Book ' Psalter Page ' Essay

- In a far corner of Schumacher Gallery, a medium sized sheet of old paper hangs on the wall. Strange words and symbols decorate the paper, mostly in black and white but with the occasional splash of color. If one looks closer it begins to resemble something most people have seen, a sheet of music. The “Psalter Page” may not be classified as art to some people, but after some time looking at it a greater appreciation can be had. While it does not look like much at first glance, after a little bit of research the hard work and effort that was put into the “Psalter Page” makes one look at it in a different light....   [tags: Music, Musical notation, Musical composition]

Research Papers
867 words (2.5 pages)

Music : Music And Learning Disabilities Essay

- Music and Learning Disabilities While watching the assigned videos I noticed that a common topic was the application of music in the context of teaching children with learning disabilities. In the presentation by Glenn Schellenberg, I was interested by the research he introduced regarding the benefits of reading skills facilitated through music. The first article I read on this topic was one by Katie Overy, published in a 2015 edition of PNAS. The article discussed that there is extensive research evidence indicating that the foundational issues that result in dyslexia result from timing issues throughout various sensory, cognitive and motor processes....   [tags: Music, Musical notation, Reading, Dyslexia]

Research Papers
973 words (2.8 pages)

Technological Advancements Through The Field Of Music Education Essay

- Technological Advancements in the Field of Music Education Music education is a field, like many others, where technology is a highly important and valuable tool. From music notation software to music videos to instructional videos, technology can be utilized to greatly enhance a student’s educational experience within the field of music. Many forms of technology exist of which music educators may not be fully aware. Music notation software, such as Finale, makes writing sheet music tremendously easier and less challenging to read....   [tags: Music, Musical notation, Sheet music]

Research Papers
715 words (2 pages)

The Advent Of Sound Recording And Reproduction Essay

- Starting in the late nineteenth century, an explosive growth in technological advances have created a massive impact on music. Particularly the ways in which we create music, experience music, and learn music have changed extraordinarily in such a relatively short period of time in its history. It’s interesting to see how the rapid expansion of technological achievement that so greatly influenced every other aspect of our lives also changed the art form of music so drastically. First and foremost, the advent of sound recording and reproduction expanded the creative grounds for musicians, giving them an entirely new power over their music and more ways to reach an audience....   [tags: Music, Musical notation, Musical composition]

Research Papers
911 words (2.6 pages)

The Effects Of Music On Our Brain Essay

- It is my opinion that music is strictly a human phenomenon that can be largely inspired by animal calls and other sounds of nature. Animals can also be taught to respond to music, such as a parrot responding to rhythm; however, I do not believe animals have the ability to create and develop music on purpose with specific common structures developed and implemented for music by humans. As Dr. Such has stated in Lecture 2: When Does Sound Become Music, our culture has aided in influencing our brains to decide that a sound is music when we detect the presence of “rhythm, melody, harmony, and form.” The instinct to apply structure or form to sound in order to create music has derived from a nat...   [tags: Music, Sound, Bird, Musical notation]

Research Papers
1342 words (3.8 pages)

Music Appreciation : Music And Music Essay

- For me personally, music appreciation is defined as looking at different pieces of music and musical forms, and learning to find appreciation for them. This appreciation is formed not only by listening to several pieces of music, but by learning to understand what you may be listening too. This involves introducing yourself to many pieces of music and learning to interpret, what makes each piece different and unique. Understanding the historical background and societal changes that have taken place during the creation of the musical piece, is also an important factor to consider....   [tags: Music, Musical notation, Developing variation]

Research Papers
1411 words (4 pages)

An Artist With A Background Essay

- Halifax-based William Robinson, an artist with a background in both music and sculpture, combines sound, image and object in durational works that explore both the fluidity and the constitutive resistance of matter. These often grand, theatrical events are the result of a lengthy, painstaking process of research into the way things are reshaped, both physically and through cultural intervention, how they acquire or lose significance through use and experience. In Robinson’s work, materials – which most definitely include sound, especially in the form of noise - are broken-down, rearranged, composed, and decomposed again, subjected to the linear trajectory of the musical score, the narrative...   [tags: Musical notation, Music, Musical composition]

Research Papers
733 words (2.1 pages)

Related Searches

There may not be sufficient information to know what the most important "average" case really is, therefore analysis is impossible. Also there may be unknown constants. For example, both walking and traveling at the speed of light have a time as function of distance big oh complexity of O(N). Although they have the same big-oh characteristics, one is rather faster than the other. Big-oh analysis only tells you how it grows with the size of the problem, not how efficient it is. Last but not least there may be small data sets. If there are no large amounts of data, algorithm efficiency may not be important.
In an asymptotic analysis, we care more about the order of magnitude of a function rather than the actual value of a function itself. In terms of the abstract time of an algorithm, this should make some sense. “After all, we call it "abstract time" because we use "abstract" operations such as "number of math operations" in f (n), or "number of comparisons" in f (n). In addition, we don't know exactly how long each operation might actually take on a certain computer.” (Sestoft, p. 95) The order of magnitude appeals to our sense that n2 is a faster-growing function than a linear function like n. To describe the order of magnitude of a function, we use Big-O notation. If we had an algorithm that did 7n4 +35n3 - 19n2 + 3 operations, its big-O notation would be O(n4). (Sestoft, p. 89) If we had an algorithm that did 2n + 5 operations, the big-O notation would be O(n). A function g(n) is in the class of functions of the order f (n) if, and only if, we can multiply f (n) by some constant c, and ignore all the n below some constant n0, and have the function c*f (n) be greater (for each n > n0) than g(n). There are a few basic big-Os that are used frequently such as:
1. O(1) - constant time
2. O(logn) - logarithmic time
3. O(n) - linear time
4. O(nlogn)
5. O(nc) - polynomial
6. O(cn) - exponential
7. O(n!) - factorial
When discussing the efficiency of an algorithm, there are three cases that need to be considered, the best case, the worst case, and the average case. The best case is how the algorithm will work on the best possible input. The worst case is how the algorithm runs on the worst possible input. And the average case is how it runs on most inputs. When comparing algorithms we very rarely use the best case, often use the average case and sometimes use the worst case.
This is how we measure the efficiency of an algorithm


Big-O Notation and Algorithm Analysis Article: Algorithmic Efficiency and Big-O notation
Sestoft, P (2002). Java Precisely. Cambridge, Mass: Massachusetts
Institute of Technology.
Return to