6-Decision Tree & Decision Table
6-Decision Tree & Decision Table
2
Decision Tree Showing Possible
Outcomes Projected
Sales
Results
Outcomes
Outcome A
A.2 Sales Up 15%
Decision Made
B.1 Sales Up 5%
Outcome B
B.2 Sales Even
3
Decision Tree of Outcomes -- Quantifying Uncertainties
Projected
Sales
Results
80%
A.1 Sales Up 10% 32%
Outcome A
40% 20% A.2 Sales Up 15% 8%
Decision Made
70% B.1 Sales Up 5% 42%
60%
Outcome B
4
Example of Using a Decision Tree or
Table to Capture Complex Business
Logic
Consider the following excerpt from an actual business
document:
5
Articulating Complex Business Rules
■ Complex business/logic rules, such as our example, can
become rather confusing
■ Capturing such rules in text form alone can lead to ambiguity
and misinterpretation
■ As an alternative, it is often wise to capture such rules in
decision tress or decision tables
■ The examples on the following slides will illustrate this
technique
Decision Tree for this Example
< 100 kwh minimum charge
fixed
rate
billing >= 100 kwh schedule A
7
Decision Table for Example – Version 1
Is this a
Rules valid
business
Conditions 1 2 3 4 case? Did
5Fixed rate acct T T F F F
we miss
something?
Variable rate acct F F T T F
Consumption < 100 kwh T F T F
Consumption >= 100 kwh F T F T
Actions
Minimum charge X
Schedule A X X
Schedule A on first 99 kwh, X
Schedule B on kwh 100 +
8
Decision Table for Example – Version 2
Rules
Conditions 1 2 3
4Account type fixed fixed variable variable
Consumption < 100 >=100 <100 >= 100
Actions
Minimum charge X
Schedule A X X
Schedule A on first 99 kwh, X
Schedule B on kwh 100 +
9
Decision Table
Identify all the possible requirements and conditions of an online shopping portal based on
the given Decision Table:
C3 Wholesale Outlet
Y N Y N Y N Y N
A1 Discount Rate 0%
×
Discount Rate 2%
A2
× × ×
A3 Discount Rate 4%
× × ×
Discount Rate 6%
A4
×