Decision tables

Decision tables

58.1 Purpose

A decision table is a two-dimensional table that shows the action to be taken following a series of related decisions.

58.2 Strengths, weaknesses, and limitations

When an algorithm involves more than two or three nested decisions, a decision table gives a clear and concise picture of the logic. Such algorithms are difficult to describe using logic flowcharts (Chapter 55), Nassi-Shneiderman charts (Chapter 56), pseudocode (Chapter 59), or structured English (Chapter 60). Additionally, decision tables are relatively easy for non-technical users to follow.

Decision tables are not useful for describing non-decision algorithms. They were common in the 1970s and 1980s, but few modern analysts or programmers are familiar with them.

58.3 Inputs and related ideas

Before creating a decision table, the designer must understand the algorithm or procedure. The necessary information might be compiled from direct observation, extracted from existing documentation, or derived from the problem definition (Part II) and/or analysis (Part IV) stages of the system development life cycle.

Other tools for documenting or planning routines or processes include logic flowcharts (Chapter 55), Nassi-Shneiderman charts (Chapter 56), decision trees (Chapter 57), pseudocode (Chapter 59), structured English (Chapter 60), and input/process/output (IPO) charts (Chapter 64). A routine usually exists in the context of a larger program. Tools for documenting or planning program structure include structure charts (Chapter 63) and HIPO (Chapter 64).

58.4 Concepts

Assume that the men’s basketball coach wants to look through the student records and produce a list of all full-time male students who are at least 6 feet 5 inches (or 77 inches) tall and who weigh at least 180 pounds.

A decision table for an appropriate algorithm is shown as Figure 58.1. It is divided into four sections: a condition stub at the upper left, a condition entry at the upper right, an action stub at the lower left, and an action entry at the lower right. The questions are listed in the condition stub; note that each question requires a yes/no response. The associated actions are listed in the action stub. The responses (Y or N) are recorded in the condition entry, while the appropriate action is indicated in the action entry.

58-01
Figure 58.1  A decision table.

The easiest way to understand a decision table is to read one. Start with the first question: Is the student male? There are two possible answers: yes (Y) or no (N). If the answer is no, then the student is not male, is not a candidate for the men’s basketball team, and can be rejected. Move down the column containing the N and note the X on the action entry line following the action Reject the student. If the answer is yes, however, the coach cannot yet make a decision to add the student to the list because the student must first pass three more tests.

Move on to the second question: Is the student taking at least 12 credit hours? Again, there are two possible answers: yes or no. Note how the answers are recorded on Figure 58.1. The second Y is directly under the first one, implying that the answers to both questions (plus two more) must be yes before the action identified by an X in that column’s action entry can be taken. If the answer to the second question is no, however, the student can be rejected. Note that any single N, by itself, is enough to reject the student.

Read the rest of the table. It clearly shows that the student’s name and address will be listed only if the answers to all four questions are yes, but that the student will be rejected if the answer to any one question is no.

58.5 Key terms
Action entry —
The box at the lower right of a decision table where the appropriate action is indicated.
Action stub —
The box at the lower left of a decision table where the possible actions are listed.
Condition entry —
The box at the upper right of a decision table where the responses (Y or N) to the questions in the condition stub are listed.
Condition stub —
The box at the upper left of a decision table where the questions (or decisions) are listed.
Decision table —
A two-dimensional table that shows the action to be taken following a set of related decisions.
58.6 Software

Decision tables can conveniently be constructed using a spreadsheet program. The decision tables in this chapter were prepared using Visio. Other charting programs (such as Micrografx’s Flowcharter) can also be used.

58.7 References
1.  Brown, R. V., Kahr, A. S., and Peterson, C., Decision Analysis for the Manager, Holt, Rinehart & Winston, New York, 1974.
2.  Davis, W. S., Systems Analysis and Design: A Structured Approach, Addison-Wesley, Reading, MA, 1983.

Comments

Popular posts from this blog

The Conversion Cycle:The Traditional Manufacturing Environment

The Revenue Cycle:Manual Systems

Nassi-Shneiderman charts