Algorithmic Thinking and Problem-Solving Flashcards
What is an algorithm?
Algorithm is ordered set of clear, executing steps to accomplish task or solve problem
Give an example of an algorithm.
F = (9/5)C + 32 or as sequence of instructions
What is computational thinking?
Computational thinking is method used by computer scientists and engineers to solve difficult problems
What are the steps of computational thinking?
- Decomposition: breaking down larger problem into several smaller parts
- Pattern Recognition: identifying sequences, regularities or other patterns in the problem
- Abstraction: simplifying the problem by focusing on important details while discarding irrelevant ones
- Algorithm Design: creating step-by-step instructions to solve problem
What is a flowchart?
diagrams that use geometric shapes and arrows to illustrate algorithm’s sequence, process or flow
What does an oval represent in a flowchart?
Start and end points
What does a parallelogram represent in a flowchart?
Input and output
What does a rectangle represent in a flowchart?
A process
What does a rhombus represent in a flowchart?
represents decision that determines next step, yes or no
What is an infinite loop?
A piece of instructions that keeps executing forever as terminating condition is never reached
What is a finite loop?
A piece of instructions executed for a fixed number of times
Give an example of a complex algorithm.
instructions for linear search algorithm to find element x in list
What does an oval represent in a flowchart?
Start and end points
What does a parallelogram represent in a flowchart?
input and output
What does a rectangle represent in a flowchart?
process
What does a rhombus represent in a flowchart?
decision that determines next step, yes or no
What does a flowline represent in a flowchart?
connection between actions
What is an infinite loop?
piece of instructions that keeps executing forever as terminating condition is never reached
What is a finite loop?
Finite loop is piece of instructions executed for a fixed number of times