Академический Документы
Профессиональный Документы
Культура Документы
A Decision table is a table of rows and columns, separated into four quadrants and is designed to illustrate complex decision rules
Done by: mahmoud abu dagga
Condition Stub upper left quadrant Rules Stub upper right quadrant Action Stub bottom left quadrant Entries Stub - bottom right quadrant
Like Boss? 20% Pay Raise? Stay Another Year Quit after 2 Months Quit next Week
1 Y Y X
2 3 4 Y N N N Y N X X X
Process requires the determination of the number of conditions (inputs) that affect the decision. The set of possible actions (outputs) must likewise be determined The number of rules is computed Each rule must specify one or more actions
Number of Rules
In more advanced tables, multiple outcomes for each condition are permitted
The total number of rules is equal to 2 no. of conditions Thus, if there are four conditions, there will be sixteen possible rules
For each rule, select the appropriate action and indicate with an X Identify rules that produce the same actions and attempt to combine those rules; for example:
Done by: mahmoud abu dagga
Y Y Y N
Cleaning Things Up
Check the table for any impossible situations, contradictions, and redundancies and eliminate such rules Rewrite the decision table with the most reduced set of rules; rearranging the rule order is permissible if it improves user understanding
The four gray columns can be combined into a single rule. Note that four each, there was NO order placed from the Special Catalog.
In addition, Rules 1&5 and Rules 3&7 can be combined. Each pair produces the same action and each pair shares two common conditions.
-- -- -Y -- N Y N Y X X X
Although the Y-N Combinations suggest a rule, in this case, it is impossible for conditions 1 & 2 to exist simultaneously. They are in complete contradiction with each other. In the final version of the table, Rule 1 will disappear and Rules -4 will become Rules 1-3.
Rules
12345678
Y Y Y Y N N NN Y Y N N Y Y NN Y N Y N Y N YN
X X X XX X XX
Sets A B Y Y Y N N Y N N
Operations AB AB Y Y Y N Y N N N
Decision Trees
Decision trees are useful when multiple branching occurs in a structured decision process, although they can be quite effective when only two decision paths are called for. They are helpful when necessary to maintain a certain order for a series of decisions.
Ring up sale
1 6 3 7