ArticleslgStudy

computer science

Data structure diagram

Data structure diagram is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Data structure diagram rather than just read about it. In short: A data structure diagram (DSD) is the visual representation of a certain kind of data model that contains entities, their relationships, and the constraints that are placed on them. It is an older alternative to the entity–relationship model.

Data structure diagram — main illustration
Data structure diagram — illustration

Key takeaways

  • Data structure diagram belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Data structure diagram to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Data structure diagram from memory before moving on to harder problems.

Reference excerpt

A data structure diagram (DSD) is the visual representation of a certain kind of data model that contains entities, their relationships, and the constraints that are placed on them. It is an older alternative to the entity–relationship model. The basic graphic notation elements of DSDs are boxes which represent entities. Arrow symbols represent relationships. Data structure diagrams are most useful for documenting complex data entities.

Overview

A data structure diagram is a diagram type that is used to depict the structure of data elements in the data dictionary. The data structure diagram is a graphical alternative to the composition specifications within such data dictionary entries. The data structure diagrams is a predecessor of the entity–relationship model (E–R model). In DSDs, attributes are specified inside the entity boxes rather than outside of them, while relationships are drawn as boxes composed of attributes which specify the constraints that bind entities together. DSDs differ from the E–R model in that the E–R model focuses on the relationships between different entities, whereas DSDs focus on the relationships of the elements within an entity. There are several styles for representing data structure diagrams, with the notable difference in the manner of defining cardinality. The choices are between arrow heads, inverted arrow heads (crow's feet), or numerical representation of the cardinality.

Bachman diagram

A Bachman diagram is a certain type of data structure diagram, and is used to design the data with a network or relational "logical" model, separating the data model from the way the data is stored in the system. The model is named after database pioneer Charles Bachman, and mostly used in computer software design. In a relational model, a relation is the cohesion of attributes that are fully and not transitive functional dependent of every key in that relation. The coupling between the relations is based on accordant attributes. For every relation, a rectangle has to be drawn and every coupling is illustrated by a line that connects the relations. On the edge of each line, arrows indicate the cardinality: 1-to-n, 1-to-1 and n-to-n. The latter has to be avoided and must be replaced by 2 (or more) 1-to-n couplings.

See also

Control structure diagram Data-flow diagram Entity–relationship model Unified Modeling Language

References

Further reading Charles W. Bachman. Data structure diagrams. Data Base, 1969, 1(2):4–10. Tom DeMarco. Structured Analysis and System Specification. ISBN 0-13-854380-1. Prentice Hall. 11 May 1979. Edward Yourdon. Modern Structured Analysis. ISBN 0-13-598624-9. Prentice Hall. 1 August 1988; now available as the Structured Analysis Wiki.

Illustrations

Data structure diagram: Example of a data structure diagram
Example of a data structure diagram
Data structure diagram: Data structure diagram and a data dictionary
Data structure diagram and a data dictionary
Data structure diagram: Illustration of set type using a Bachman diagram
Illustration of set type using a Bachman diagram

Worked examples

Example 1 — a first encounter with Data structure diagram

Start with the simplest possible case. Write down what Data structure diagram claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Data structure diagram before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Data structure diagram ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Data structure diagram

In research
Data structure diagram appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Data structure diagram in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Data structure diagram is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data modeling diagrams, Modeling languages, so understanding it makes those chapters shorter.
In everyday life
Look for Data structure diagram outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Data structure diagram” →

How to study Data structure diagram in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Data structure diagram means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Data structure diagram out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Data structure diagram in simple terms?

A data structure diagram (DSD) is the visual representation of a certain kind of data model that contains entities, their relationships, and the constraints that are placed on them. It is an older alternative to the entity–relationship model.

Why does Data structure diagram matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Data structure diagram?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Data structure diagram.

Tags

  • Data modeling diagrams
  • Modeling languages

Keep exploring