2.1.2 - Designing, creating and refining algorithms

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

What is an algorithm?

An algorithm is a logical step-by-step process fro solving a problem

2
New cards

What are structure diagrams?

Structure diagrams show the smaller tasks of a larger program

They are made by decomposing the program into manageable modules - which are then decomposed even further until you get modules that perform individual tasks

3
New cards

What are the advantages of using a structure diagram?

  • coding is easier as you’re only writing code to carry out very simple tasks

  • Lots of programmers can work on one program as each module can be written indepentabley

  • Easier to test your program as each module can be tested individually

  • Individual sub programs and modules can be fixed and updated without affecting the rest of the program

  • Able to reuse the sub programs and modules in programs you write in the future

4
New cards
<p>What is this symbol in flow diagrams? </p>

What is this symbol in flow diagrams?

A line - represents the flow from one components to the next

5
New cards
<p>What is this symbol in flow diagrams? </p>

What is this symbol in flow diagrams?

Process - an action

6
New cards
<p>What is this symbol in flow diagrams? </p>

What is this symbol in flow diagrams?

Input / output

7
New cards
<p>What does this symbol mean in flow diagrams? </p>

What does this symbol mean in flow diagrams?

Decision - a yes / no / truth / false

8
New cards
<p>What does this symbol mean in flow diagrams? </p>

What does this symbol mean in flow diagrams?

Termination - so the start or end of the process

9
New cards

What are trace tables used for?

Trace tables are ways of testing that a piece of code is working correctly - a dry run of a program used to identify logic errors

10
New cards

What are the advantages of flow diagrams?

  • It is easy to see how a program flows. For example, where does following one path as opposed to another take the program?

  • Flow diagrams follow an international standard so it’s easy for any flow diagram user to pick up a diagram and understand it.

11
New cards

What are the disadvantages of flow diagrams?

  • with a large program, the diagrams can become huge in size and unwieldy to follow

  • any changes to the design may mean a lot of the diagram has to be redrawn

12
New cards

What are the advantages of pseudocode?

  • As pseudocode is similar to a programming language, it can be quickly and easily converted into an actual programming language

  • it is fairly easy to understand, even for non-programmers

  • it does not matter if there are errors in the syntax - it is usually still obvious what is intended

  • changes to the design can be incorporated quite easily

13
New cards

What are the disadvantages of pseuedocode?

  • It can be hard to see how a program flows, for example, where does following one path as opposed to another take the program?

  • It can be time consuming to produce.