wisconsin
Chapter 7: Computation

Chapter 7: Computation

Content locked

The catalog is public. Reading this content requires approved access.

Sign in to read
Chapter 7: Computation
7.1 An introduction to algorithms
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
Check
Show answer
Check
Show answer
The if statement and the if-else statement
Animation content:
Animation captions:
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
Check Show answer
Check Show answer
The for loop
Animation content:
Animation captions:
The while loop
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
CHALLENGE ACTIVITY
Start
Additional exercises
EXERCISE
7.2 Asymptotic growth of functions
O notation
Definition 7.2.1: O notation.
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
Proving that f is O(g)
Proof.
PARTICIPATION ACTIVITY
Proving that f is not O(g)
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
Ω notation
Definition 7.2.2: Ω Notation.
Proving that f is \Omega(g)
\Theta notation and polynomials
PARTICIPATION ACTIVITY
Asymptotic growth of logarithm functions with different bases
PARTICIPATION ACTIVITY
The growth rate of common functions in analysis of algorithms
PARTICIPATION ACTIVITY
Rules about asymptotic growth
Figure 7.2.3: Rules for the asymptotic growth of functions.
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
CHALLENGE ACTIVITY
Start
EXERCISE
EXERCISE
EXERCISE
EXERCISE
7.3 Analysis of algorithms
PARTICIPATION ACTIVITY
ComputeSum
Animation content:
ComputeSum.
Animation captions:
PARTICIPATION ACTIVITY
7.3.2: Number of atomic operations performed by ComputeSum.
Asymptotic complexity
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
FindSmallest
Animation content:
FindSmallest.
Animation captions:
PARTICIPATION ACTIVITY
SequenceProduct
AverageOfEnds
Worst-case complexity
SearchSequence
PARTICIPATION ACTIVITY
Check
Show answer
Check
Show answer
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
CountDuplicatePairs
CountDuplicatePairs
Animation content:
Animation captions:
Proof.
FindDuplicate
Additional information: 7.3.1: Efficient algorithms.
CHALLENGE ACTIVITY
Start
Additional exercises
EXERCISE
CountValuesLessThanT
EXERCISE
EXERCISE
EXERCISE
EXERCISE
MysteryAlgorithm
7.4 Finite state machines
COIN, COIN, PUSH, COIN, PUSH.
Animation content:
INPUT: COIN, COIN, PUSH, PUSH.
Animation captions:
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
Check Show answer
Check Show answer
BUY/GUMBALL
Animation content:
MESSAGE”.
NONE”.
Animation captions:
PARTICIPATION ACTIVITY
Check Show answer
Check Show answer
Finite state machines that recognize properties
Animation content:
Animation captions:
Recognizing valid passwords
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
Additional exercises
EXERCISE
EXERCISE
FSM 1
FSM 2
EXERCISE
7.5 Turing machines
The definition of a Turing machine
Animation content:
Animation captions:
PARTICIPATION ACTIVITY
3:
Check
Show answer
Check
Show answer
Check
Show answer
A simple Turing machine
PARTICIPATION ACTIVITY
Animation content:
Animation captions:
A more complex Turing machine
PARTICIPATION ACTIVITY
CHALLENGE ACTIVITY
Additional exercises
EXERCISE
EXERCISE
EXERCISE
7.6 Decision problems and languages
PARTICIPATION ACTIVITY
PARTICIPATION ACTIVITY
Additional information 7.6.1: Uncomputable problems.
Additional exercises
EXERCISE
EXERCISE
Source