Week 7 Homework - Programming-from-A-to-Z/A2Z-F16 GitHub Wiki

Due Oct 25

Use a markov chain to generate text. It's not required to write new code for this assignment, you can use the examples verbatim but try new source texts and think about the context and design for the output. Here are some approaches you could take:

  • Use one of the existing examples to generate text and pick different inputs. Play with the "order" and "maximum" length variables. Try mixing multiple texts. Copy paste your favorite outputs from the browser and document in a blog post.
  • Use a markov chain on something other than text. Record your own sequence of daily habits. Try musical notes. Could pixel colors be evaluated as a markov chain? What else?
  • Animate the process of the markov chain in action.
  • Visualize n-gram frequencies.
  • Create a bot that generates its output based on a markov chain.

Questions?

  • add your question here

Markov Chain Exercise: