CS 1025 01 - Week #1 (Aug 20, 22, 24)

We will be moving to StudioIT 1 (ITTC 134)
2nd floor of the old East Gym.
ITTC 134 is just above the CCC (Computer Consulting Center)


Monday, August 20th


  1. Look at the Forest Fire model in the Earth Science portion of the NetLogo Models Library. Read about it first, then click RUN FIRE IN YOUR BROWSER to try it out.

  2. Check out this NetLogo example of airplanes flying and fish swimming.

  3. Introduce the Monty Hall simulation exercise. MONTY HALL game Playing the Monty Hall game with a model. Your simulation experiement will try to figure out which strategy is best - sticking with your first choice or switching to the other door.

Wednesday, August 22nd


  1. Playing with NetLogo turtle graphics - handout from Wednesday, August 24th, 2011 class. Try out the links too!

  2. VIDEO review: One of the links is this Netlogo basics video tutorial created in fall of 2010. Watch it. Take some notes on it. Its only 12 minutes long.

  3. Netlogo practiced and shown today (and Friday) in class:
          Netlogo shown today:
    
                   Create 16 turtles       Move forward 6 turtle steps
                   -----------------       ---------------------------
                      cro 16                          fd 6
    
                   Put your pen down       Lift your pen (or turtle tail) up
                   -----------------       ---------------------------------
                         pd                           pu
    
    
    
                   Turn right 90 degrees        Clear all (erase everything)
                   ---------------------        ----------------------------
                          rt 90                            ca
    
    
                   Draw a square (if your Pen is Down - PD you will see square)
                   
    ------------------------------------------------------------
                        repeat 4 [ fd 3 rt 90 ]
    
                                        The above square has a side length of 3
    
    
                   Draw a cool pattern of 36 spiralling squares (if PD pen down)
                   
    -------------------------------------------------------------
                      repeat 36 [  rt 10  repeat 4 [ fd 3 rt 90 ]  ]
    
                      What is 36 times 10?  360 degrees.
                                            So you will have a complete
                                               round the world circle of
                                                  squares.
    
                   Observer mode commands:   ca, cro,
                    Turtles mode commands:   fd, rt, pd, pu
    
                    Note:  repeat is used in either mode, depending on what
                           you need to do.
    
                      repeat howManyTimes [ what you want to do ]
    
                      What would the following repeat create, if we assume the
                      pens of the turtles were down (PD or pd) so we could see
                      the trail left by the turtle tails (or pens, aka pens)?
    
                             repeat 8 [ fd 3 rt 45 ]  <----  draws what????
    
                             repeat 4 [ fd 3 rt 90 ]   <---- draws a square
    

  4. Link to download and install NetLogo on your computer (PC or MAC). It is FREE!

    Netlogo is also available at most of the computer labs on the UNI campus, including all CNS labs and all of the SCC (Student Computer Center) labs like the Library, Union, Redeker, Towers, Lawther, etc.


Friday, August 24th


  1. Today's example (and more for Monday) EVEN and ODD turtles, Sliders and Buttons. the ifelse (condition) [EVEN turtles actions] [ODD turtles actions], REMAINDER and WHO numbers.

  2. RETURN to Day #1 example: Review of the NetLogo example of airplanes flying and fish swimming. How is NetLogo able to do CIRCLES??? Be sure to try out the SLIDERS and all 3 BUTTONS. From SQUARES to PENTAGONS to OCTAGONS to CIRCLES.

    Even and Odd turtles become Fish and Airplanes. Also, see all of the default shapes for turtles. FlyFishing.html NetLogo example to play with.

  3. NOT UNTIL NEXT WEEK; Music with Netlogo on Monday (see below).
    The 4 question/task assignment will be due on Wednesday, September 5th, (instead of Friday, Aug 31st), since we did not get the MUSIC and NetLogo covered today. Twinkle Twinkle Little Star song you will have the background to make the turtles play after Monday's class.

    Assignment Two: This is 3 of 4 questions/tasks handed out today in class: Music, Even and Odd Turtles, Chemistry & Physics Maxwell's Demon Gaslab NetLogo model - due on the Wednesday AFTER Labor Day (Due on Sep 03, 2012).


Week #2 (August 27th) and week #3 (September 3rd) preview

Note: We may be continuing with week #1 topics and tasks.
The above schedule is tentative and the pace of the race might need to be SLOW down.


  1. WAIT UNTIL WEEK #2: Music and NetLogo: Happy Birthday - 60 is C, 62 is D, ..., 72 is C and 60 + 12 = 72.


    We did NOT get to MUSIC and NETLOGO. We will start that on Monday.
    60, a deer, a female deer.
    62, a drop of golden sun.
    64, a name I call myself
    65, a long, long way to run
    67, a needle pulling thread
    69, a note to follow 67
    71, I drink with jam and bread
    That will bring us back to 72...oh oh oh
    
    The magificent seven: Do-re-mi-fa-so-la-ti.
    When you read you begin with A-B-C
    When you count you begin with 1-2-3
    When you sing you begin with do-re-mi
    

  2. We will look at the NetLogo Flocking of Birds example in the 3rd class, but get back to it later in the class.

  3. Predator/Prey model and NetLogo basics - Panthers versus Jackrabbits or Lynx versus Hare.

  4. Flash ActionScript and the bouncing ball. Gravity to be simulated using Adobe Flash. A very simple model will be created.

  5. GasLab Maxwells Demon Netlogo Chemistry/Physics model assignment will be discussed briefly so you know how to approach it using NetLogo.

    More examples/explanations Music and NetLogo...

  6. Flocking of birds example: Watch the movie and then play with item #5, the NetLogo model published to the web.

  7. Another forest FIRE model available from SHODOR.

  8. Shodor Data Flyer tool used to Plot Data. We will plot some Forest Fire simulation output again during the first week of class. This tool is much simpler to use than SPSS and Excel!