Big O Notation: What It Is and Why You Should Care
Big O Notation: What It Is and Why You Should Care
Time complexity is a way of discussing how long specific algorithms take. This is useful in streamlining software so it works as fast as possible.
When you're writing code, you should be aware of how long it's going to take to execute. Nobody wants to create a product that users find frustrating due to slow use.
Time complexity is talked about in relation to an algorithm, a collection of one or more functions.
Big O Notation specifically helps you identify when an algorithm wouldn't 'scale' well, or work well with varying amounts of users, information, or other inputs.
This does NOT correspond with Moore's law - no matter how big and fast your computer is, if the algorithm is exponentially inefficient, it's realistically unusable.
Additionally, questions about Big O Notation and time complexity can be used as interview questions. Your employers will want to know that the code you write will not take too long to load on the page for the users, and knowledge of Big O Notation shows that you're cognizant of that while writing your code.
The take-away from this video is that Big O Notation helps you identify where there could be problems (sometimes BIG problems) in speed and memory when your site or app grows.
Other Videos By freeCodeCamp.org
2016-06-23 | Deploy a Dynamic Website in Minutes |
2016-06-23 | Gmail Keyboard Shortcuts |
2016-03-27 | Web Design: Development vs Design |
2016-03-27 | Computer Basics: What does 'Open Source' mean? |
2015-09-23 | Computer Security Tips for Beginners |
2015-09-22 | FCC Computer Basics 11: IP Addresses |
2015-09-20 | Computer Basics 14: Content Delivery Networks |
2015-09-20 | The DOM: What's the Document Object Model? |
2015-09-20 | Big O Notation: A Few Examples |
2015-09-20 | The DOM: Style in the Header, Script in the Footer |
2015-09-20 | Big O Notation: What It Is and Why You Should Care |
2015-08-24 | Chrome Dev Tools: Summary Tab |
2015-08-24 | Chrome Dev Tools: Console Tab |
2015-08-24 | Chrome Dev Tools: Audits Tab |
2015-08-24 | Chrome Dev Tools: Resources Tab |
2015-08-24 | Chrome Dev Tools: Memory Tab |
2015-08-24 | Chrome Dev Tools: Timeline Tab |
2015-08-24 | Chrome Dev Tools: Sources Tab |
2015-08-24 | Chrome Dev Tools: Network Tab |
2015-08-24 | Chrome Dev Tools: Elements Tab |
2015-08-23 | JavaScript Lingo: Regular Expressions |