CSC 486 · Systems Analysis And Design
Our notes
3 min readData flow diagrams (DFDs)
A DFD shows how data moves through a system: where it comes from, how it is processed, where it is stored and where it goes. It does not show timing or decisions.
Symbols
| Element | Gane-Sarson | Yourdon/DeMarco | Example |
|---|---|---|---|
| External entity (source/sink) | square | rectangle | Student, Bursary |
| Process | rounded rectangle (numbered) | circle (bubble) | 1.0 Validate registration |
| Data store | open-ended rectangle | two parallel lines | D1 Courses |
| Data flow | arrow with a label | arrow | course selection |
Levels
- Context diagram (level 0): the whole system as one process, with external entities and the main flows; no data stores.
- Level 1 DFD: the main processes (1.0, 2.0, 3.0 …) with data stores.
- Level 2: a level-1 process broken down further (2.1, 2.2 …).
Balancing: the inputs and outputs of a child diagram must match those of its parent process.
Context diagram: course registration (described)
External entities: Student, Department, Bursary, Registry.
Flows: Student → system: login details, course selection. System → Student: course form, error messages. Bursary → system: fee payment status. Department → system: course list and units. System → Registry: registration report.
Level 1 (described)
1.0 Verify student (reads D1 Students, checks fee status from Bursary) → 2.0 Select courses (reads D2 Courses) → 3.0 Check unit limits and prerequisites → 4.0 Save registration (writes D3 Registrations) → 5.0 Print course form → Student; 6.0 Produce reports → Registry.
DFD rules
- Every process has at least one input and one output.
- Data cannot move directly between two external entities, between two data stores, or between a store and an entity: a process must be in between.
- Label every flow with a noun phrase; name processes with a verb + object ("Calculate GPA").
- No black holes (input but no output), miracles (output but no input) or grey holes (outputs that can't come from the inputs).
Data dictionary
A central record describing every data element, flow, store and process: name, aliases, description, type, length, allowed values, where it is used.
Notation: = (is made of), + (and), [ | ] (either/or), { } (repeats), ( ) (optional).
Example: Registration = Matric number + Session + Semester + {Course code + Units} + (Carry-over flag). Matric number: format U2023/5570123, 13 characters.
Process logic
- Structured English: IF fees paid AND total units ≤ 24 THEN save registration ELSE show error.
- Decision table: conditions and actions in a grid.
| Conditions / actions | R1 | R2 | R3 | R4 |
|---|---|---|---|---|
| Fees paid? | Y | Y | N | N |
| Units ≤ 24? | Y | N | Y | N |
| Save registration | X | |||
| Show "too many units" | X | |||
| Show "pay fees first" | X | X |
With n yes/no conditions there are 2ⁿ rules (here 2² = 4).
- Decision tree: the same logic as branches, easier to read for a few conditions.
Entity-relationship diagrams (ERDs)
Model the data: entities (Student, Course), attributes, and relationships with cardinality (a student registers for many courses; a course has many students: many-to-many, resolved by a Registration entity).
Exams usually ask: draw a context diagram and level-1 DFD for a scenario; DFD symbols and rules; balancing; data dictionary entries and notation; build a decision table (with 2ⁿ rules) or decision tree.
Common mistake: drawing a data flow straight from an external entity into a data store. A process must always sit between them.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Data-flow diagram
(opens en.wikipedia.org in a new tab)
Wikipedia, Data-flow diagram, CC BY-SA 4.0 · licence
-
Data dictionary
(opens en.wikipedia.org in a new tab)
Wikipedia, Data dictionary, CC BY-SA 4.0 · licence
-
Structured analysis
(opens en.wikipedia.org in a new tab)
Wikipedia, Structured analysis, CC BY-SA 4.0 · licence
-
Foundations of Information Systems, 4.3 Technical Design Methodologies and Practical Applications
(opens openstax.org in a new tab)
OpenStax, Foundations of Information Systems, 4.3 Technical Design Methodologies and Practical Applications, CC BY-NC-SA 4.0 · licence
Watch
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.