Summary

Input → output machines

Factorial

The factorial can be defined as or recursively…

Fibonacci Numbers

These are numbers where the next number in the sequence is the sum of the previous two. This can be defined recursively . There is also a closed form definition called Binet’s formula.

Logarithms

Note

This is an operator I kind of just take for granted but I can’t say I’ve really understood what it meant until now.

According to the definition of the logarithm, exactly when (exponentials negate logarithms). What this means, is that is the number of times we need to divide x by k before we reach the number 1. Logarithms are used in the analysis of algorithms because many efficient algorithms halve something at each step. Hence, we can estimate the efficiency of algorithms using logs.

There are also various log rules that are useful here to manipulate logaithms:

  • Log of product
  • Log of exponents
  • Log of quotient
  • Log of ratios () Using the log of ratios rule, we can effectively calculate logs to any base.

is the natural logarithm whose base is (so these are negative terms).