CS/ACC/PE 360 - Analysis of Algorithms, “Beancounting for Techies”

Accounting - Down to the penny - with “misc”

Algorithms - Asymptotic bounds - O(n)

Algorithm - “a well defined computational procedure that takes … input and produces … output.”

Analysis Issues

  1. WHAT DATA STRUCTURES TO USE! (lists, queues, stacks, heaps, trees, etc.)
  2. IS IT CORRECT! (all or only most of the time?)
  3. HOW EFFICIENT IS IT! (asymptotically fixed or does it depend on the inputs?)
  4. IS THERE AN EFFICIENT ALGORITHM!! - P ≟ NP

Many practical problems can be cast as mathematical ones, i.e. graphs, linear programming, string matching, etc.

Algorithmic analysis is primarily about proving that a procedure is correct and then counting the number of operations required for the procedure to execute, i.e. finding the run-time. In this class we will use mathematical “proofs” to find asymptotic bounds ignoring numerous factors that get lumped into “hidden constants”, but in real situations other overhead would ultimately want to be considered such as:

Pseudocode Conventions

We will be using pseudocode for our algorithm implementations and will follow the conventions described in Chapter 2 of the textbook (CLRS) with the important ones summarized here.