Decision Tables SEEM 3430 Tutorial Lanjun Zhou.

Slides:



Advertisements
Similar presentations
A useful testing technique and more…
Advertisements

Preparing a Decision Table
Decision Tables - a brief overview
Extra tutorials.
CHAPTER 40 Probability.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 15 Probability Rules!
Example for calculating your final grade for this course
CSC 123 Systems Analysis & Design
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Week 7.  Two or more individuals combine their assets and skills to go into business.  Each individual is referred to as a partner.  Since multiple.
Decision Table Testing
Computer Aided Process Planning
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Kendall & KendallCopyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9 Kendall & Kendall Systems Analysis and Design, 9e Process Specifications.
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
Table of Contents Matrices - Multiplication Assume that matrix A is of order m  n and matrix B is of order p  q. To determine whether or not A can be.
1 Decision Tables. 2  Introduction  construction  Types of Decision Tables  Limited Entry  Extended Entry  Combining of Rules  General Rule  Q.
Decision Trees and Decision Tables
Kendall & KendallCopyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9 Kendall & Kendall Systems Analysis and Design, 9e Process Specifications.
1. Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Systems of Equations CHAPTER 9.1Solving Systems of Linear Equations Graphically.
Solving Systems of Equations and Inequalities
CSCI 347 / CS 4206: Data Mining Module 03: Output Topic 02: Decision Tables.
Dynamic Black-Box Testing Part 2
Coding for Excel Analysis Optional Exercise Map Your Hazards! Module, Unit 2 Map Your Hazards! Combining Natural Hazards with Societal Issues.
Solving Systems of Equations and Inequalities Section 3.1A-B Two variable linear equations Section 3.1C Matrices Resolution of linear systems Section 3.1D.
Modeling and Design of Rule-Based Systems Yonglei Tao.
1 Types of Business Information Systems Different people have different information needs depending on their work.
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Computer Aided Process Planning (CAPP). What is Process Planning? Process planning acts as a bridge between design and manufacturing by translating design.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
Seg3430A Tutorial 8 Decision Table. Logic Modeling Data flow diagrams do not show the logic inside the processes Logic modeling involves representing.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
A Guide to MySQL 6. 2 Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT command.
Copyright © 2011 Pearson Education Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall & Kendall Global Edition 9.
Logic Modelling Decision Tables. 2 Modeling Logic with Decision Tables Procedure for Creating Decision Tables Name the condition and the values that each.
Incremental Analysis Based on concept that any avoidable investment that does not yield at least the MARR should not be made Involves determining the ROR.
Database Design Chapters 17 and 18.
IS 334 information systems analysis and design
Logical Database Design and the Rational Model
Implementing an REA Model in a Relational Database
Chapter 5 Database Design
Decision Tables - a brief overview
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Problem Solving and Critical Thinking
SCIENTIFIC NOTATION.
Process Specifications and Structured Decisions
Problem Solving and Critical Thinking
Lecture 2 The Relational Model
Example Question–Is this relation Well Structured? Student
Database Design Using Normalization
Surds The square roots of most numbers cannot be found exactly. For example, the value of √3 cannot be written exactly as a fraction or a decimal.
CIS 336 Lessons in Excellence-- cis336.com. CIS 336 Final Exam (Feb 2016) For more course tutorials visit CIS 336 Final Exam Question 1.
Applicable Mathematics “Probability”
COS 346 Day 8.
Database Applications – Microsoft Access
BASIC & COMBINATIONAL LOGIC CIRCUIT
Developing More Complex Decision Trees
SQL for Cleaning Data Farrokh Alemi, Ph.D.
Chapter 4 Basic Probability.
Computer Aided Process Planning
Describing Process Specifications and Structured Decisions
Algebra
Decision Tables SEEM 3430 Tutorial LI Jing.
Module 5 Strategic Enterprise Management and Reporting Tools
Presentation transcript:

Decision Tables SEEM 3430 Tutorial Lanjun Zhou

Overview A diagram of all the logic and possible outcomes associated with a particular process Conditions Condition Alternatives Actions Conditions Condition Alternatives Actions Action Entries 2019/8/15

Overview Conditions and Condition alternatives Actions Represent the specific rule when making a decision Actions Represent all possible courses of action associated with a given set of conditions 2019/8/15

Why decision table? 2019/8/15

Developing decision tables You need to determine the maximum size of the table, eliminate any impossible situations, inconsistencies, or redundancies, and simplify the table as much as possible. 2019/8/15

Step 1 Determine the number of conditions that may affect the decision. Combine rows that overlap, for example, conditions that are mutually exclusive. The number of conditions becomes the number of rows in the top half of the decision table. Conditions Condition Alternatives Actions Action Entries 2019/8/15

Mutually exclusive conditions Gender Male and Female Education High school, Bachelor, Master and Doctor etc. Mutually exclusive conditions should be combined to be one condition with multiple alternatives 2019/8/15

Step 2 Determine the number of possible actions that can be taken. This becomes the number of rows in the lower half of the decision table. Conditions Condition Alternatives Actions Action Entries 2019/8/15

Step 3 Determine the number of condition alternatives for each condition. In the simplest form of decision table, there would be two alternatives (Y or N) for each condition. In an extended-entry table, there may be many alternatives for each condition. Conditions Condition Alternatives Actions Action Entries 2019/8/15

Step 4 Calculate the maximum number of columns in the decision table by multiplying the number of alternatives for each condition. If there are four conditions and two alternatives for each of them, there will be 2 4 =16 possibilities Conditions Condition Alternatives Actions Action Entries 2019/8/15

Step 5 Fill in the condition alternatives. Start with the first condition and divide the number of columns by the number of alternatives for that condition. 2019/8/15

Step 6~9 6. Complete the table by inserting an X where rules suggest certain actions. 7. Combine rules where it is apparent that an alternative does not make a difference in the outcome 8. Check the table for any impossible situations, contradictions, redundancies. 9. Rearrange the conditions and actions (or even rules) to make the decision table more understandable. 2019/8/15

An example A store wishes to program a decision on non- cash receipts for goods into their intelligent tills. 2019/8/15

Conditions 1. Transaction under £50 2. Pays by cheque with cheque card (guarantee £50) 3. Pays by credit card 2019/8/15

Possible actions 1. Ring up sale 2. Check credit card from local database 3. Call a supervisor 4. Automatic check of credit card company database 2019/8/15

Initial the decision table Some of the condition rules are invalid (Marked as red and blue) Customer cannot pay by cheque AND pay by credit card or not pay by either method 2019/8/15

Delete invalid condition rules 2019/8/15

Indicate the actions 2019/8/15

Check for completeness What if the customer has not shopped their before? Missing some as obvious as this means reconstructing the table! 2019/8/15

Adding a new condition to the existing table The action list remain the same, clean the action entries The number of condition rules increases by a multiple of 2 (number of alternatives for the new condition). 2019/8/15

Indicate the actions Under £50 Y N Pays by cheque Pays by credit card Unknown customer   Ring up sale X Check from local database Call Supervisor X  Check credit card database 2019/8/15

Delete mutually exclusive conditions Under £50 Y N Pays by cheque Pays by credit card - Unknown customer   Ring up sale X Check from local database Call Supervisor X  Check credit card database The dash in the Pays by credit row indicates that it does not matter about the condition rule since if a customer pays by cheque they will not pay by credit card and vice versa ( mutually exclusive ). 2019/8/15

Combine possible situations according to actions Under £50 Y N Pays by cheque Pays by credit card - Unknown customer   Ring up sale X Check from local database Call Supervisor X  Check credit card database Y N Y - Y Y N N Y - N Y + = + = 2019/8/15

Remove the redundant Under £50 - Y N Pays by cheque Pays by credit card Unknown customer   Ring up sale X Check from local database Call Supervisor X  Check credit card database 2019/8/15

Combine identical actions Under £50 - Y N Pays by cheque Pays by credit card Unknown customer   Ring up sale X Check from local database Call Supervisor Check credit card database - Y N Y Y N Y N Y Can not merge !!! + = + + 2019/8/15

Wrong final version This final version is from Reference 2, which is wrong!!! This wrong final version can not deal with condition ‘YYY’ and ‘YNY’ 2019/8/15

Final Version Under £50 - Y N Pays by cheque Unknown customer   Ring up sale X Check from local database Call Supervisor Check credit card database Attention: This final version is different with reference 2 2019/8/15

Exercise 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. (Answer: next slide) 2019/8/15

Solution for the exercise Possible answer for the exercise 2019/8/15

References http://en.wikipedia.org/wiki/Decision_table http://www.cems.uwe.ac.uk/jharney/table.ht ml http://www.cs.nott.ac.uk/~nza/G53KRR07/ answer-decision-tables.pdf 2019/8/15

Q&A Thanks! 2019/8/15