Download presentation
Presentation is loading. Please wait.
1
Jump to first page Chapter 2c System Analysis - Logic Modeling
2
Jump to first page Learning Objectives 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.
3
Jump to first page
4
Logic Modeling n Data flow diagrams do not show the 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.
5
Jump to first page Logic Modeling Deliverables and Outcomes n Structured English n Decision Tables n Decision Trees n State-transition diagrams n Sequence diagrams n Activity diagrams
6
Jump to first page Modeling Logic with Structured English n Modified form of English used to specify the logic of information processes n Uses a subset of English u Action verbs u Noun phrases u No adjectives or adverbs n No specific standards
7
Jump to first page
8
Structured English is used here to describe input and output.
9
Jump to first page Structured English is used here to describe arithmetic operations.
10
Jump to first page Structured English is used here to describe repetition.
11
Jump to first page Structured English is used here to describe decisions.
12
Jump to first page Structured English is used here to describe invoking other processes.
13
Jump to first page Modeling Logic with Decision Tables 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
14
Jump to first page 3 Parts of a Decision Table 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 n Indifferent Condition u Condition whose value does not affect which action is taken for two or more rules
15
Jump to first page Procedure for Creating Decision Tables n Name the condition and values each condition can assume n Name all possible actions that can occur n List all rules n Define the actions for each rule n Simplify the table
16
Jump to first page Decision Table Note: for salaried employees the action stub chosen will always be the same…therefore hours worked is an indifferent condition
17
Jump to first page Reduced Decision Table Because of indifferent condition, the complete decision table can be reduced to one with fewer rules
18
Jump to first page Modeling Logic with Decision Trees n A graphical representation of a decision situation n Decision situation points are connected together by arcs and terminate in ovals n Main components u Decision points represented by nodes u Actions represented by ovals u Particular choices from a decision point represented by arcs
19
Jump to first page Modeling Logic with Decision Trees (cont.) n Read from left to right n Each node corresponds to a numbered choice on a legend n All possible actions are listed on the far right
20
Jump to first page Decision tree representation of salary decision
21
Jump to first page Alternative decision tree representation of salary decision
22
Jump to first page Deciding Among Structured English, Decision Tables, and Decision Trees CriteriaStructured English Decision Tables Decision Trees Determining Conditions and Actions Second BestThird BestBest Transforming Conditions and Actions into Sequence BestThird BestBest Checking Consistency and Completeness Third BestBest
23
Jump to first page Deciding Between Decision Tables and Decision Trees CriteriaDecision TablesDecision Trees Portraying complex logic BestWorst Portraying simple rulesWorstBest Making decisionsWorstBest More compactBestWorst Easier to manipulateBestWorst
24
Jump to first page Summary n 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.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.