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." 123HelpMe.com. 21 Nov 2018
    <https://www.123helpme.com/view.asp?id=158405>.

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)

Music Appreciation : Music And Music Essay

- ... It takes the habitual practice of listening to several pieces, to be able to grasp sound, pitch, and tone of musical pieces. I think the “Firebird” by Igor Stravinsky and the “C-Jam Blues” by Duke Ellington were important introductory pieces for a beginning student. Sound is driven by the performance of voice and various instruments and learning to identify them, is crucial. There are so many instruments that produce a lot of different ranges and again practicing with the technique of “listening” becomes important....   [tags: Music, Musical notation, Developing variation]

Research Papers
1411 words (4 pages)

Music Is The Pleasure The Human Soul Essay

- Since I was young, music have always played a major part in my life and to this day it still do. I was always involved in music one way or the other, whether it was playing with my parent’s CDs and tapes as a child, taking chorus classes in middle school, or becoming a professional DJ at the start of high school; music was and forever will be one of the major driving force of my life. I consider music an undying art, that requires a different way of thinking and levels of creativity.. Similar to looking for various possible solutions for a math problem....   [tags: Musical notation, Music, Mensural notation]

Research Papers
772 words (2.2 pages)

Essay on Concert At The Laidlaw Recital Hall

- On Thursday, September 17th at 7:30pm, I attended Daniel G. Driskell’s Alumni Piano Recital called “Around the World in 88 Keys” at the Laidlaw Recital Hall. The concert contained seven different pieces of music. The first piece of music performed was called “Sonata in A Major.” This piece is an Italian piece that was composed by Domenico Scarlatti. The piece required Driskell to do a lot of hand crossing. The piece was upbeat, happy, and dark. Driskell explained the piece as being happy and dark because it would go from major to minor....   [tags: Music, Musical notation]

Research Papers
893 words (2.6 pages)

Review Of ' The Fantasia ' Essay

- The Fantasia experience was the result of students being unable to meet outside of class to attend a concert together. I was eager to attend not only to earn a grade, but also to see how my opinions of the movie have changed over time. I found Fantasia to be intellectually stimulating and more intriguing now than I did when I was a young child. When I was younger, I did not enjoy Fantasia. The lack of visual storyline was unappealing. For example, the visual for “Toccata and Fugue in D Minor” was different colored lights illuminating the band....   [tags: Music, Orchestra, Musical notation]

Research Papers
755 words (2.2 pages)

Analysis Of The Piece ' The French Horns ' Essays

- ... The rest of the instruments are then introduced. The clarinets and oboes continue to play the theme but at a higher pitch. The violins, violas, and cellos then play using an ornamental pattern. Ornaments are meant to decorate the line in music rather than carry the overall melody of the piece. The violins, violas, and cellos play the music making use of the call and response method. The strings then lead into the next section creating a crescendo with the increase in loudness. The tempo quickly gets faster a little at a time....   [tags: Music, Musical notation, Violin, Orchestra]

Research Papers
904 words (2.6 pages)

What Jazz Techniques Did Sidney Bechet Use Essay

- My research question was, what jazz techniques did Sidney Bechet use and how can I use these to compose my own clarinet piece. There were different research processes used to find the answer to my question and they were: the internet, books, an interview, videos and music. These processes were useful to me as the information was accessed easily and effectively. Each process was used to find a different aspect of my research and allowed me to discover different angles and opinions on the topic. Using books, interviews and videos were new research processes for me and I discovered that they are very useful when conducting the research for this topic....   [tags: Music, Musical notation, Jazz, Meter]

Research Papers
1974 words (5.6 pages)

Essay about My Musical Biography : Awnon K Bhowmik

- Paper #1 My Musical Autobiography Awnon K Bhowmik Nothing lasts forever. Everything, whether good or bad has to come to an end. But people do say that sounds and voices do not die. Melodies we hear in our life lives on for generations and ever after. No matter who we are or wherever we come from; in whichever situation we were in, at some point of our lives, we have come across certain melodies that still live in our heart. And I am no different from others. There are certain musical pieces that have not only influenced my life, but have made a significant impact to change me for the better....   [tags: Music, Musical notation, Musical improvisation]

Research Papers
1007 words (2.9 pages)

The Musical Composition I Have Picked Up Essay

- ... The exact melodic shape is altered, having its direction downwards, the same way moonlight falls downwards (Roger, N., Jul, 1967). After listening to the entire the piece I felt it was a very calm and peaceful composition because of its wide range. In the middle of the piece at 1:55, tension starts building up as the chords get louder and faster, range starts becoming a bit narrow and motion at this this point is highly conjunct, this made me a bit restless and this is the place where most of the ornamentation is experienced, this phase ends at 3:03....   [tags: Music, Orchestra, Musical notation, Tonic]

Research Papers
1063 words (3 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

Bibliography

Big-O Notation and Algorithm Analysis
http://www.eecs.harvard.edu/~ellard/Q-97/HTML/root/node8.html
Cprogramming.com Article: Algorithmic Efficiency and Big-O notation
http://www.cprogramming.com/tutorial/computersciencetheory
Sestoft, P (2002). Java Precisely. Cambridge, Mass: Massachusetts
Institute of Technology.
Return to 123HelpMe.com