Skip to content

Instantly share code, notes, and snippets.

@Shurlow
Last active August 29, 2017 19:30
Show Gist options
  • Select an option

  • Save Shurlow/3734d2c7bcbe9e59ba3208229b2e677c to your computer and use it in GitHub Desktop.

Select an option

Save Shurlow/3734d2c7bcbe9e59ba3208229b2e677c to your computer and use it in GitHub Desktop.
Intro to algorithms

Intro to Algorithms

  • Explain what an algorithm is
  • Explain why algorithms are useful
  • Write an algorithm for an everyday action
  • Explain how algorithms are measured

Explain what an algorithm is

Turn to your neighbor and explain what an algorithm is in your own words.

Explain why an algorithm is useful

Turn to your neighbor and explain why an algorithm is useful.

Explain what pseudocode is

Spend a few minutes researching pseudocode styles and techniques. Turn to your neighbor and discuss your prefered approach to pseudocoding.

Write an algorithm for an everyday action

Write an algorithm to make pancakes!

  • Mix 1 cup Krusteaz mix with 1 cup water to make delicious pancake batter!
  • Define the inputs and outputs
  • Use pseudocode to describe your algorithm
  • When you're done, compare your algorithm with a neightbor
  • Challenge: Update your algorithm to make N number of pancakes

Explain how algorithms are measured

  • Turn to your neighbor and explain how algorithms are measured following the tree criteria correctness, speed, memory.
  • Using these three measures, analyze your algorithm from above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment