Itcsp 01
Itcsp 01
Faculty of English
Introduction to Computer
Science and Programming
class 01
wa.amu.edu.pl
ORGANIZATIONAL ISSUES
• [email protected]
Syllabus
Start your computers
Stay where you are
Communication (Teams)
WHAT WILL WE DO IN THIS
COURSE ?
• ALGORITHM IS A RECIPE
Getting a dinner
1. Open fridge
2. Take out leftovers
3. Test -> Smell okay ?
4. If yes -> Eat them -> STOP
5. If no - > Put them back in fridge -> Order takeout
FLOWCHARTS
Open fridge
Take out
leftovers
Flow of control
Yes Smell No
OK ?
Order takeout
ALGORITHM
• What is a recipe ?
1. Sequence of simple steps;
2. Flow of control, test to specify when
each step is executed
3. Include tests for deciding when the
process is complete (STOP process |
EXIT process)
BRUTE FORCE ALGORITHMS
11
NUMERICAL EXAMPLE (and
simultaneously iterative algorithm)