Unit I Flashcards
sequence of unambiguous instructions for solving a problem
Algorithm
algorithms that executes instructions one after another, one operation at a time.
Sequential Algorithm
expressing algorithm by a collection of connected geometric shapes
Flow Chart
Efficiency indicates how fast the algorithm runs.
Time Efficiency
Efficiency indicates how much extra memory the algorithm needs.
Space Efficiency
preserves the relative order of any two equal elements in its input.
Stable Algorithm
Efficiency for which the algorithm runs the longest among all possible inputs of that size.
Worst Case Efficiency
Efficiency for which the algorithm runs fastest among all possible inputs of that size.
Best Case Efficiency
h ϵ O(g); g ϵ θ(n^2) then h ϵ θ(n^2)
Transitivity
t1(n) ϵ Ο(g1(n)) and t2(n) ϵ Ο(g2(n)),
t1.t2 ϵ Ο(g1, g2)
Rule of Product
t1(n) ϵ Ο(g1(n)) and t2(n) ϵ Ο(g2(n)),
t1(n) + t2(n) ϵ Ο(max{g1(n), g1(n)})
Rule of sum
Class name that characterizes efficiency of an algorithms with two embedded loops
Quadratic
Class name that characterizes efficiency of an algorithms with three embedded loops
Cubic
Class name that characterizes algorithms that generate all subsets of an n-element set
exponential
Class name that characterizes algorithms that generate all permutations of an n-element set
Factorial