2.1.2 - Designing, creating and refining algos
No description yet. This curated deck is ready for daily study.
Card preview (11)
Advantages of pseudocode
• Doesn’t matter if there are syntax errors as it doesn’t follow programming language syntax • Easily converted into a real programming language as it is generic • Easily understandable even for non-programmers • Easy to make changes to the design
What is an algorithm
A sequence of logical instruction used to solve a problem. Starting point before a program
Use of trace tables
Used to show how variables change during the execution of a program
Two types of algorithms
• Pseudocode • Flow charts
Advantages and disadvantages of flowcharts
• Advantages - international standard, easy to see how it flows • Disadvantages - not easy to make changes at it has to be redrawn, can be massive for big programs
What does an oval represent in a flowchart
Start/End
What does a rectangle represent in a flow chart
Process done by the program - any calculations for example
What does a diamond represent ina flow chart
A decision ( yes or no) has two separate paths coming from it
What does a parallelogram represent in a flow chart
An input or an output
Shape that represents a subroutine in a flowchart
Rectangle with extra short lines inside it
Defenition of pseudocode
English language structured like programming language code - simplified code