Midterm Flashcards
What is the definition of Euer’s constant?
- N2/3
- The error calculated during a summation series.
- 0.57721566
- The sum of all the errors for a Taylor Series
0.57721566
What is proof by Induction?
- A recursive definition that shows the trivial case is true.
- Showing that that something is true for a certain number k, and then showing it is true for k+1.
- That the alternative is false.
- A proof that states that it must be true if no one can find where it is false.
Showing that that something is true for a certain number k, and then showing it is true for k+1.
What is the definition of a recursive function or routine?
A function that calls itself.
A function that cannot call itself.
A function that can be used inside of another function.
A function that returns no values.
A function that calls itself
What is the difference between a class and an object?
A class is a definition while an object is the actual data. The object is the definition and the class is the actual data. There is no difference...they are the same thing. The class is the actual programming source code while the object is the executable.
A class is a definition while an object is the actual data.
Complexity Analysis measures _______ and _____
time and memory
____________ counts the number of operation that we expect to take the most time.
Operation Count
_____________ analysis describe the rate at which execution time increases in relation to the input size.
Asymptotic
The main focus of algorithmic analysis is the relationship between __________ and __________.
Running Time
Input Size
What are the two methods of analyzing algorithms?
Experimental Analysis
Theoretical Analysis
A type of analysis that requires algorithms to be coded and run to determine the results.
Experimental Analysis
f(n) = c
The constant function
Give three examples of operations defined by the constant function.
arithmentic Calculation, comparison operation, variable declaration, assignment statement, invoking a method or function.
Give an example of an algorithm that can be described using the logarithmic function?
binary search
Logorithmic functions grow __________ as the value of n grows?
Slower
The Linear function states that f(n) =
n