C++ big O notation
Not what you're looking for?
What does "n" represent in relation to big O notation? In other words, what does it mean? Like in O(n). I need a definition of what n is in words.
Purchase this Solution
Solution Summary
The solution discusses and defines what the "n" represents in relation to the big O notation.
Solution Preview
Big O notation is used throughout computer science to show how algorithms behave as their inputs grow larger. It is not specific to C++; it is useful in all programming languages and in theoretical computer science.
The idea is to summarize how many steps an algorithm takes to run. But instead of just saying a number like 1,000, big O notation gives the answer as a function, for example O(n^2). Here, "n" is the size of the input to the algorithm and the algorithm takes approximately n^2 steps to run. This is much more useful than just having a single data point, such as "when the input has size 30, the algorithm takes 900 steps to run." We'd much rather have a function giving the number steps of running time for every possible input size.
For example, take ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
Basic Networking Questions
This quiz consists of some basic networking questions.
Javscript Basics
Quiz on basics of javascript programming language.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.