Download presentation
Presentation is loading. Please wait.
Published byJasmin Barber Modified over 9 years ago
1
Introduction to Algorithms using Netlogo
2
What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem. www.cctvconsult.com/glossary.htm www.cctvconsult.com/glossary.htm –A set of instructions or procedures for solving a problem. www.davcomuk.co.uk/files/tech/glossary.htm www.davcomuk.co.uk/files/tech/glossary.htm –An unambiguous formula or set of rules for solving a problem in a finite number of steps. Algorithms for encryption are usually called Ciphers. www.modssl.org/docs/2.3/ssl_glossary.html www.modssl.org/docs/2.3/ssl_glossary.html –is a procedure or formula for solving problems www.stallion.com/html/support/glossary.html www.stallion.com/html/support/glossary.html
3
Drawing in Netlogo Start Netlogo (under CSCI programs) and resize the display to make the turtle easier to see Click here
4
Use the command center to create a turtle First define its shape Next create one turtle
5
Now give commands to the turtle Set to T for turtle Give the command pd for pen down
6
Begin to draw a box using the commands fd (forward) and lt (left turn)
7
Make your algorithm into a procedure Commands to create the turtle in a procedure called setup Commands given to the turtle in a procedure called go
8
Create 2 buttons to run your procedures Use the button icon on the interface toolbar. Runs the setup procedure
9
Try out your new buttons
10
Less typing?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.