04_14_2008_Recitation_Guide

# 04_14_2008_Recitation_Guide - Recitation Guide for April...

This preview shows pages 1–2. Sign up to view the full content.

Recitation Guide for April 14th, 2008 I. Housing Keeping a. Quiz 4 in class Friday April 18 th b. Homework 8 due Friday April 25 th c. Will try to have exam 2s graded this week. d. All homeworks HW1 HW5 should be graded. If not, talk to your grading TA. II. State Machines a. A state machine is composed of an initial or starting state, new states, transitions between states and some cases ending states. State machines are usually represented with state diagrams. General state diagram: The start state is indicated by an arrow that does not originate from a state. You cannot switch to a different state without a transition. It is a possible to have a transition back to the current state b. Consider the WolfDeerSimulation: i. Wolf states 1. HUNGRY The wolf is hungry and wants food 2. SATISFIED The wolf is not hungry 3. STARVED The wolf has starved and is now dead ii. Wolf Transitions 1. If in HUNGRY state and hungryTimer reaches 0, the wolf will become STARVED.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern