Understanding Simple Logic
The following assumes you have already learnt about
AND OR logic but have not fully understood.
Visual Representation
Imagine if you will a set of ladders that is secured by 2 chains to a
wall.
The first chain is cut into several pieces. This chain is then
joined by locks. Each lock can be opened by an authorized ladder user.
If we ignore the second chain for a moment, then since user A or user B
or user C etc. can release the chain this equates to a logic OR
function.
| Truth Table |
| Lock A |
Lock B |
Lock C |
Ladder Status |
| Locked |
Locked |
Locked |
Secure |
| Locked |
Locked |
Unlocked |
Free |
| Locked |
Unlocked |
Locked |
Free |
| Locked |
Unlocked |
Unlocked |
Free |
|
Unlocked |
Locked |
Locked |
Free |
|
Unlocked |
Locked |
Unlocked |
Free |
|
Unlocked |
Unlocked |
Locked |
Free |
|
Unlocked |
Unlocked |
Unlocked |
Free |
The second chain is only cut in one place and only one lock is
fitted. The key holder is the person responsible for ensuring the ladder
is safe e.g. safety officer. For the ladder to be released a user and
the safety officer must both remove the locks, this equates to the logic
AND function. Note in this instance we are
only considering one user lock
|
Truth Table |
|
Safety Lock |
User Lock |
Ladder Status |
| Locked |
Locked |
Secure |
| Locked |
Unlocked |
Secure |
|
Unlocked |
Locked |
Secure |
|
Unlocked |
Unlocked |
Free |