Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logic Modelling Decision Tables. 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name the condition and the values that each.

Similar presentations


Presentation on theme: "Logic Modelling Decision Tables. 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name the condition and the values that each."— Presentation transcript:

1 Logic Modelling Decision Tables

2 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name the condition and the values that each condition can assume. Name all possible actions that can occur. List all possible rules. Define the actions for each rule. Simplify the table.

3 Q1: Create a decision table- Students Campus Burglar Alarm When a burglar alarm sounds, if it is in one of students’ houses where alarm sounds every week, ignore it. Otherwise have a look outside and if the house looks not broken into and there is nobody moving inside it, ignore the alarm. Otherwise call police. List the resulting rules. 3

4 A1: Decision Table – Students Campus Burglar Alarm Rule Stub Rule 1Rule 2Rule 3Rule 4 Condition StubOne of those housesYYNN Suspicious activityYNYN Action StubIgnoreXXX Call PoliceX 4

5 A1: Simplified Decision Table – Students Campus Burglar Alarm Rule Stub Rule 1Rule 2Rule 3 Condition StubOne of those housesYNN Suspicious activity-YN Action StubIgnoreXX Call PoliceX 5

6 A1: Resulting Rules- Students Campus Burglar Alarm Rule 1: if one of those houses then ignore Rule 2: if not one of those houses and suspicious activity then call police Rule 3: if not one of those houses and not suspicious activity then ignore Note: rule 2 will work just as well if skip the first check: Rule 2: if not suspicious activity then ignore 6

7 Q2: Create a decision table- Mailing Customers A mailing is to be sent out only to special customers. The content of the mailing is about the current level of discounting and potential levels of discounting. The content is different for different types of customers. Customer Types A, B and C get a normal letter except Customer Type C, who get a special letter. Any customer with 2 or more current lines or with a credit rating of ‘X’ get a special paragraph added with an offer to subscribe to another level of discounting. 7

8 A2: Missing Information- Mailing Customers Questions? “2 or more current lines OR credit rating X”. What if both: AND? Other customer types? See “O-Other” above. 8

9 A2: Possible solution- Mailing Customers 9

10 Exclude the “O-Others” from the decision table and suppose that the description states that: “2 or more current lines AND/OR credit rating X”. 10 Rule Condition Stub 123456789101112 Customer TypeAAAABBBBCCCC 2 or more LinesYYNNYYNNYYNN Credit rating = XYNYNYNYNYNYN Action Stub Normal LetterXXXXXXXX Special Letter XXXX Add ParagraphXXX XXX XXX

11 A2: Possible solution- Mailing Customers Simplify the Table 11 Rule Condition Stub 123456789 Customer TypeAAABBBCCC 2 or more LinesYNNYNNYNN Credit rating = X-YN-YN-YN Action StubNormal LetterXXXXXX Special Letter XXX Add ParagraphXX XX XX


Download ppt "Logic Modelling Decision Tables. 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name the condition and the values that each."

Similar presentations


Ads by Google