Activity Unit 1
Activity Unit 1
To design a security system based on the given requirements using propositional logic, we
can define the following propositions:
Logical Expression
Explanation:
M∨(W∧D): The alarm will go off if the motion detector is triggered (M) or both the
window is broken (W) and the door is open (D) at the same time.
Truth Table
Interpretation:
When M=1 (the motion detector is triggered), the alarm A will always be 1 (on)
regardless of the states of W and D.
When M=0, the alarm will go off only if both W=1 (a window is broken) and D=1
(the door is open).
This logical design ensures that the alarm system functions as specified, providing security
coverage for both scenarios.
Example 1: Automated Email Filtering System
Scenario:
Design an automated email filtering system where an email is marked as spam if:
Scenario:
Design a cloud storage synchronization system where a file is synchronized if:
Scenario:
Design a system that reminds a user to change their password if:
Scenario:
Design a system where access is granted only if:
Scenario:
Design a network security monitoring system that triggers an alert if:
Scenario:
Design a data backup system that restores files if:
The files are found to be corrupted OR
The last backup was not successful IF
The user has not manually overridden the restore process.
Scenario:
Design a login authentication system that allows access if:
Scenario:
Design a software update notification system where the user is notified if:
Scenario:
Design a disk space management system that triggers a cleanup process if: