Loading subject…
Rules
Statements that define the relationships between facts and actions.
Rule: IF a patient has a fever AND a cough, THEN the patient may have the flu.
A semantic network might represent the relationship between a dog and its owner.
A rule that is too general may lead to incorrect conclusions, while a rule that is too specific may miss important scenarios.
A timetable is coded as a 2-D array timetable[day][period]. Evaluate this organisation and state a rule the system should enforce.
Solution
All student data are kept in a single CSV file with repeated address columns (address1, address2, address3). Critique the organisation and mention a rule that would improve data quality.
Solution
Sensor packets are stored as raw JSON: {"temp":31.2, "hum":"high"}. Discuss the representation and propose a useful validation rule.
Solution
Usernames are stored as case-sensitive strings. The system lets both “Ali” and “ali” register. Make a critical comment on this rule and representation.
Solution
Seat numbers are stored in a CHAR(4) field but the database accepts “00A3”. Provide a critical comment and a corrective rule.
Solution