SW StudyWalks

Computer Science  /  CS 0126  ·  Atom · ~20 seconds

Best Case and Worst Case

Video not yet published
to the StudyWalks catalog
State

One algorithm carries several counts: the best case when the input cooperates, the worst case when it resists — each case analyzed on its own.

Show

Hunting a word front-to-back through a dictionary costs one look when the word sits first, and every look when it sits last or nowhere.

Watch for

Honest analysis reports the worst case.

Builds on

Unlocks

  • Nothing yet depends on this.