Está en la página 1de 21

Slides adapted from

Jeffrey A. Hoffer, University of Dayton


Joey F. George, Florida State University
Joseph S. Valacich, Washington State University

Modern Systems Analysis and Design, 4/E, Pearson Prentice Hall, 2004
n Data flow diagrams do not show the
computation logic inside the processes.
n Logic modeling involves representing

internal structure and functionality of


processes depicted on a DFD.
n Logic modeling can also be used to show

when processes on a DFD occur.

8-2 © R Gustas
Structured English
Decision Tables
Decision Trees
State-transition diagrams
Sequence diagrams
Activity diagrams

8-3 © R Gustas
Modified form of English used to specify
the logic of information processes
Uses a subset of English
n Action verbs
n Noun phrases
n No adjectives or adverbs
No specific standards

8-4 © R Gustas
8-5 © R Gustas
Structured English is
used to describe input
and output.

Structured English is
used to describe
arithmetic operations.

8-6 © R Gustas
Logic Modeling with Structured English

Structured English is
used here to
describe repetition.

8-7 © R Gustas
Logic Modeling with Structured English

Structured English is
used here to
describe decisions.

8-8 © R Gustas
Logic Modeling with Structured English

Structured English is used


here to describe invoking
other processes.

8-9 © R Gustas
n A matrix representation of the logic of a
decision

n Specifies the possible conditions and the


resulting actions

n Best used for complicated decision logic

8-10 © R Gustas
1. Condition stubs
§ Lists condition relevant to decision
2. Action stubs
§ Actions that result from a given set of conditions
3. Rules
§ Specify which actions are to be followed for a given set of
conditions

Indifferent Condition
n Condition whose value does not affect which action is
taken for two or more rules

8-11 © R Gustas
Name the condition and values each
condition can assume
Name all possible actions that can occur
List all rules
Define the actions for each rule
Simplify the table

8-12 © R Gustas
Note: for salaried employees the action stub chosen will always
be the same…therefore hours worked is an indifferent condition

8-13 © R Gustas
Because of indifferent condition, the complete decision table
can be reduced to one with fewer rules
8-14 © R Gustas
A graphical representation of a decision
situation
Decision situation points are connected
together by arcs and terminate in ovals
Main components
n Decision points represented by nodes
n Actions represented by ovals
n Particular choices from a decision point
represented by arcs

8-15 © R Gustas
Read from left to right
Each node corresponds to a numbered
choice on a legend
All possible actions are listed on the far
right

8-16 © R Gustas
Decision tree representation of salary
decision

8-17 © R Gustas
Alternative decision tree representation of
salary decision

8-18 © R Gustas
Criteria Structured Decision Decision
English Tables Trees
Determining Second Best Third Best Best
Conditions and
Actions
Transforming Best Third Best Best
Conditions and
Actions into
Sequence
Checking Third Best Best Best
Consistency
and
Completeness

8-19 © R Gustas
Criteria Decision Tables Decision Trees

Portraying Best Worst


complex logic
Portraying simple Worst Best
rules
Making decisions Worst Best

More compact Best Worst

Easier to Best Worst


manipulate

8-20 © R Gustas
In this chapter you learned how to:
ü Use structured English as a tool for
representing steps in logical processes in
data flow diagrams.
ü Use decision tables and decision trees to
represent logical choice in conditional
statements.
ü Select among structured English, decision
tables, and decision trees.

8-21 © R Gustas

También podría gustarte