UNIHIVE

Study Hub UNIPORT CSC 486

CSC 486 · Systems Analysis And Design

Structured analysis tools: DFDs and the data dictionary

Data flow diagrams (context diagram, levels, symbols and rules), the data dictionary, and process specifications with structured English, decision tables and decision trees.

Our notes

3 min read

Data 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

ElementGane-SarsonYourdon/DeMarcoExample
External entity (source/sink)squarerectangleStudent, Bursary
Processrounded rectangle (numbered)circle (bubble)1.0 Validate registration
Data storeopen-ended rectangletwo parallel linesD1 Courses
Data flowarrow with a labelarrowcourse 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 / actionsR1R2R3R4
Fees paid?YYNN
Units ≤ 24?YNYN
Save registrationX
Show "too many units"X
Show "pay fees first"XX

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

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.

All CSC 486 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.