3.1 Algorithms Flashcards
What is an algorithm?
A set of instructions to complete a task
What is decomposition?
Breaking down a problem into sub problems until each sub problem can be solved seperately
What is abstraction
Picking out the important details to focus on first
What is Pseudo code and its benefits?
. Pseudo code is a way of writing code in plain english
. Pseudo code is easy to understand
. Pseudo code can easily be translated to real code
What are terminators in a flowchart and what shape does it represent?
. A start or an end
. An oval
What is an input/output in flowcharts and what shape does it represent?
. Where the flowchart is taking or outputting information
. A parallelogram
What is a decision block in flowcharts and what shape represents it?
. A decision is selection and leads to multiple paths
. A diamond
What shape represents a process?
A rectangle
What is this symbol <?
Smaller than
What is this symbol <=?
Smaller than or equal to
What is this symbol >?
Greater than
What is this symbol >=?
Greater than or equal to
What is this symbol =?
Equal to
What is this symbol <>?
Not equal to
What is this symbol +?
Add
What is this symbol -?
Subtract
What is this symbol *?
Asterix
Multiply
What is this symbol /?
Divide