%. It also builds on the running example from the previous chapter, Euclid's algorithm for the greatest common divisor (GCD).2 min readVideo lecture%). It also builds on the previous chapter's idea that an algorithm is a finite, definite, effective procedure.2 min readVideo lecture%. It also builds on the previous chapter's point that a problem is separate from the algorithm that solves it. Before you can judge whether an algorithm is right, you need a precise statement of what "right" 2 min readVideo lectureif statements and loops in at least one language.2 min readVideo lecturea mod b computes. Tracing means running an algorithm yourself, on paper, one step at a time. It is the quickest way to check that a description says what you meant it to say.3 min read%). It also assumes you remember the finiteness property from earlier: an algorithm must finish after a finite number of steps. Here you will learn how to show that a particular loop actually does finish.2 min readVideo lecture% does, and have seen Euclid's algorithm and the idea of a decreasing measure from earlier chapters.3 min readVideo lecture14 chapters have a video lecture. Each plays at the top of its chapter.
Published YouTube: watch What Is an Algorithm? (opens in a new tab)
Published YouTube: watch The Properties Every Algorithm Must Have (opens in a new tab)
Published YouTube: watch Problems, Algorithms and Programs Are Different Things (opens in a new tab)
Published YouTube: watch Stating the Problem Precisely: Inputs, Outputs and Conditions (opens in a new tab)
Published YouTube: watch Writing Steps in Plain Language (opens in a new tab)
Published YouTube: watch The Three Building Blocks: Sequence, Selection, Iteration (opens in a new tab)
Published YouTube: watch Describing Algorithms with Pseudocode (opens in a new tab)
Published YouTube: watch Drawing Algorithms as Flowcharts (opens in a new tab)
Published YouTube: watch Does It Solve the Problem? Checking Correctness (opens in a new tab)
Published YouTube: watch Does It Stop? Arguing Termination (opens in a new tab)
Published YouTube: watch Loop Invariants as a Correctness Tool (opens in a new tab)
Published YouTube: watch Describing Algorithms Recursively (opens in a new tab)
Published YouTube: watch How Much Work? Counting Steps and Big-O (opens in a new tab)
Published YouTube: watch Choosing the Right Level of Detail (opens in a new tab)