Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
E- LEARNING
3 aspects of computational thinking
2 registers used in fetch, decode, execute cycle
The name of the register used to store the address of the next instruction in the cycle
To understand how to write algorithms using flow diagrams
To understand how a linear search works
To understand how a binary search works
A flow diagram is a visual representation of how an algorithm works.
There are 5 symbols you will need to know for your exam that will enable you to draw these
At the beginning and end of your algorithm you will need boxes with rounded corners
Any inputs or outputs (print statements) go in a parallelogram box
Rectangular boxes represent an action or process i.e. wages = wages * 1.1
Diamond shaped boxes are used to store decisions - these are your IF statements and loops!
A sub routine (functions and procedures) go in boxes like this
Task
Create a flow diagram for an algorithm that:
This is a number system that we will learn more about later, but instead of the 10 symbols we use in decimal (0-9) there are 16 symbols.
0-9 have the same value in hex as they do in decimal, but we have 6 further symbols:
A = 10
B = 11
C = 12
D =13
E = 14
F = 15
Create a flow diagram for an algorithm that:
Accepts a number between 0 - 15
Converts the number into hexadecimal
Prints the result
Searching Algorithms
You need to know about two algorithms that search for information - the linear search and the binary search
Easy to understand!
A linear search looks at each item in the list and checks if it is what we are looking for! If not, we check the next item and so on.....
Can only work on a list that is in order
Looks at middle item (length of list + 1 / 2)
If the middle item is too big, get rid of the second half, if it's too small, get rid of the first half
Now you have a list half of the size to search!
Repeat the process until you've found what you are looking for!
Likely to ask you to search a list in the exam paper using either of these methods
OR to explain how they work, so you need to know HOW they work