DECISION TABLE

IPCC 2866 views 3 replies

DECISION TABLES

 

A decision table is a tabular presentation of program logic. It displays all conditions affecting a particular situation. It gives appropriate action or actions to be taken for each set of conditions.

Decision tables are useful when a computer has to make large number of decisions or if there are a large number of different branches within a program.

 

Components of a decision table:

Table Heading

Decision Rules Heading

Condition

Stub

Condition

Entries

Action

Stub

Action

Entries

 

Table Heading: The name or number of the Decision Table specifying the problem which is being represented. For complex problems, the decision table is sometimes broken into parts where the Table heading would identify the part of the program being represented.

Condition Stub: The conditions that could exist in the program logic are described.

Action Stub: The action statements or possible outcomes of the system are described.

Decision Rules: These may be one or more decision rules numbered 1,2,3 ....n representing the answers to the Condition Stub and Action Stub described before.

Condition Entry: These represent the possibility of each of the condition stub (answer to each of the condition stub). The condition entry can be `Y’ for Yes or `N’ for No only.

Action Entry: The list relating to the set of action to be performed or taken to a given set of conditions. The action entry can be `X’ for selection action or ‘-‘ for unselected action only.

Replies (3)

Benefits of Decision Tables:

Following are given some of the Benefits of Decision Tables:

1.    Easy to Draw – Decision Tables are easy to draw and modify as compared to flowcharts.

2.    Compact Documentation – The documentation in the form of decision tables is compact since one decision table may replace few pages of a flowchart

3.    Simplicity – It is easier to follow a particular path in one column of a decision table than it is to go through several pages of the flowcharts.

4.    Direct Codification - The decision tables can be directly coded into a program.

5.    Better Analysis – A decision table shows various alternatives and their respective outcomes side by side for better analysis of the problem.

6.    Modularity – The complex problems would require complex decision tables which can be easily broken down to micro-decision tables.

7.    Non-technical – No knowledge of computer language or CPU working is necessary for drawing decision tables.

Limitations of Decision Tables

       Following are given some of the Limitations of Decision Tables:

1.    All programmers may not be familiar with Decision Tables and therefore flow charts are more common

2.    Flowcharts can better represent a simple logic of the system rather than a decision table.

3.    The decision tables do not express the total sequence of the events needed to solve the problem.


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register