Tuesday, October 12, 2010

algorithm questions.

definitions.

algorithm; a precise rule (or set of rules) specifying how to solve some problem
pseudocode; a compact and informal high-level description of a computer programming algorithm that uses the structural conventions of a programming language, but is intended for human reading rather than machine reading
machine language;a system of instructions and data executed directly by a computer's central processing unit
high level computer language; programming language with strong abstraction from the details of the computer
flowchart;a diagram of the sequence of operations in a computer program or an accounting system
sequence; serial arrangement in which things follow in logical order or a recurrent pattern
selection;the act of choosing or selecting
repetition;an event that repeats


traffic lights;

approach lights.
check colour of light.
if the light is green then continue.
if the light is red then stop.
if the light is orange then slow down.

entering room;

approach door.
reach for door knob with hand.
twist door knob open.
push/ pull door open.
enter room.

No comments:

Post a Comment