(computer science) A table of contingencies to be considered in the definition of a problem, together with the actions to be taken; sometimes used in place of a flow chart for program documentation. DETAB
| Sci-Tech Dictionary: decision table |
(computer science) A table of contingencies to be considered in the definition of a problem, together with the actions to be taken; sometimes used in place of a flow chart for program documentation. DETAB
| 5min Related Video: Decision table |
| Computer Desktop Encyclopedia: decision table |
A list of decisions and their criteria. Designed as a matrix, it lists criteria (inputs) and the results (outputs) of all possible combinations of the criteria. It can be placed into a program to direct its processing. By changing the decision table, the program is changed accordingly.
Download Computer Desktop Encyclopedia to your iPhone/iTouch
| WordNet: decision table |
The noun has one meaning:
Meaning #1:
a table or matrix of all contingencies and the actions to be taken for each
| Wikipedia: Decision table |
| This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. Please improve this article by introducing more precise citations where appropriate. (April 2009) |
Decision tables are a precise yet compact way to model complicated logic. Decision tables, like if-then-else and switch-case statements, associate conditions with actions to perform. But, unlike the control structures found in traditional programming languages, decision tables can associate many independent conditions with several actions in an elegant way
Contents |
Decision tables are typically divided into four quadrants, as shown below.
| Conditions | Condition alternatives |
| Actions | Action entries |
Each decision corresponds to a variable, relation or predicate whose possible values are listed among the condition alternatives. Each action is a procedure or operation to perform, and the entries specify whether (or in what order) the action is to be performed for the set of condition alternatives the entry corresponds to. Many decision tables include in their condition alternatives the don't care symbol, a hyphen. Using don't cares can simplify decision tables, especially when a given condition has little influence on the actions to be performed. In some cases, entire conditions thought to be important initially are found to be irrelevant when none of the conditions influence which actions are performed
Aside from the basic four quadrant structure, decision tables vary widely in the way the condition alternatives and action entries are represented. Some decision tables use simple true/false values to represent the alternatives to a condition (akin to if-then-else), other tables may use numbered alternatives (akin to switch-case), and some tables even use fuzzy logic or probabilistic representations for condition alternatives[citation needed]. In a similar way, action entries can simply represent whether an action is to be performed (check the actions to perform), or in more advanced decision tables, the sequencing of actions to perform (number the actions to perform).
Decision table can be used if the combination of conditions are given. In decision table conditions are known as causes and serinal numbers of conditions are known as business rule.
The limited-entry decision table is the simplest to describe. The condition alternatives are simple boolean values, and the action entries are check-marks, representing which of the actions in a given column are to be performed.
A technical support company writes a decision table to diagnose printer problems based upon symptoms described to them over the phone from their clients. The following is a balanced decision table.
| Rules | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Conditions | Printer does not print | Y | Y | Y | Y | N | N | N | N |
| A red light is flashing | Y | Y | N | N | Y | Y | N | N | |
| Printer is unrecognised | Y | N | Y | N | Y | N | Y | N | |
| Actions | Check the power cable | X | |||||||
| Check the printer-computer cable | X | X | |||||||
| Ensure printer software is installed | X | X | X | X | |||||
| Check/replace ink | X | X | X | X | |||||
| Check for paper jam | X | X | |||||||
Of course, this is just a simple example (and it does not necessarily correspond to the reality of printer troubleshooting), but even so, it demonstrates how decision tables can scale to several conditions with many possibilities.
Decision Tables, especially when coupled with the use of a Domain-specific language, allow developers and policy experts to work from the same artifacts, the Decision Tables themselves. Decision Tables have proven to be easier to understand and review than code, and have been used extensively and successfully to produce specifications for complex systems.[1]
Decision tables can, and often are, embedded within computer programs and used to 'drive' the logic of the program. A simple example might be a lookup table containing a range of possible input values and a function pointer to the section of code to process that input.
| Input | Function Pointer |
| '1' | Function 1 (initialize) |
| '2' | Function 2 (process 2) |
| '9' | Function 9 (terminate) |
Multiple conditions can be coded for in similar manner to encapsulate the entire program logic in the form of an 'executable' decision table or control table.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| mixed-entry decision table (computer science) | |
| action portion (computer science) | |
| condition portion (computer science) |
| List the advantages and disadvantages for both decision table and decision table? | |
| Decision table in computer programming? | |
| Decision table advantages? |
Copyrights:
![]() | Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Computer Desktop Encyclopedia. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher. © 1981-2010 The Computer Language Company Inc. All rights reserved. Read more | |
![]() | WordNet. WordNet 1.7.1 Copyright © 2001 by Princeton University. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Decision table". Read more |
Mentioned in