2

I am working on my documentation of final year project (cardioVascular risk assessment using machine learning model). COuld any one please tell me the difference among dfd level 0, level 1 and level 2. Thanks in advance

Noman marwat
  • 353
  • 1
  • 18
  • Could you provide a reference to the definition of these levels in the context of Data Flow Diagrams? – Emond Jun 10 '19 at 18:36
  • @ErnodeWeerd sorry sir i am not getting ur point. could you please elaborate ur question? – Noman marwat Jun 11 '19 at 05:23
  • I have never heard of level 0, 1 and 2 for Data Flow Diagrams (dfd) so it is not clear to me what these terms mean so I am asking you to show us where you learned about these levels. – Emond Jun 11 '19 at 08:18
  • @EmondErno these levels are frequently used by the main authors in the field of DFD modeling, to designate the level of decomposition. There are some variances between authors about the numbering of the levels, and maybe it’s the reason why these terms are less used nowadays. – Christophe Sep 09 '21 at 20:32

2 Answers2

1

The principle of top-down analysis is deeply rooted in structured analysis and design methods in general, and data-flow diagrams in particular.

The principle is that a top-level diagram shows the data-flows between processes in the scope and the external entities. Every process can be exploded/decomposed into an own diagram with more detailed processes and flows, and so on, until the primitive level is reached, i.e. a process which is so elementary that it is not desirable to explode it further.

There are some slight differences in the leveling terminology between the main authors:

  • Gane & Sarson use the term “exploding into lower-level”. They mention a top-level diagram showing the data-flows with the main processes of the system. They recommend the use of decimal notation in the decomposition. So at top level, you’d have 1, 2, 3. In the diagram of the next level for process 2, il will be 2.1, 2.2, 2.3, etc. They ate not very explicit about level numbering.
  • DeMarco/Yourdon uses the term “partitioning”. He defines precise conventions for the leveling: the top level diagram is called level 0. The successive levels are incremented. The idea is that the level number indicates the number of components in the numbering prefix (level 0 has no prefix: you’ll have process 1,2,3; level 1 has 1 number in the prefix, for example 2 for process 2.1, 2.2, 2.3, level 2 has 2 components as prefix, for example for the diagram of 2.3, you’ll have 2.3.1, etc). Demarco also adds a context diagram on the top of the top level that shows the dataflows of the system in scope with the external entities. To add confusion, sometimes the context diagram is called level zero which is not to be confused with level 0 (sic!).

In your case the level 0 would in principle be the main processes in your system. The set of level 1 diagrams would be, for each top-level process, an own diagram that further breaks down that process into subprocesses with their dataflow.

Christophe
  • 68,716
  • 7
  • 72
  • 138
1

there is the basic thing that

  • level 0 dfd (which is also known as context diagram) only contains the fundamental elements such as only 1 process and 2 entities.
  • for level 1 dfd we expand the context diagram's process into multiple sub process (apprx 3-5)
  • for level 2 dfd, it is the most detailed dfd which gives detailed view of all the sub process which are present in level 1 dfd.
hey
  • 11
  • 1