



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




By Char/es W. Bachman
Successful communication of ideas has been and will con- tinue to be a limiting factor in man's endeavors to surviv e and to better his life. The invention of algebra, essentiall y a graphic technique for communicating truths with respec t to classes of arithmetic statements, broke the bond tha t slowed the development of mathematics. Whereas "12+13=25" and "3+7 = 10" and "14+(-2)=12 " are arithmetic statements, "a+b=c" is an algebraic state- ment. In particular, it is an algebraic statement controllin g an entire class of arithmetic statements such as those listed.
Data Structure Diagram s The Data Structure Diagram is also a graphic technique. It is based on a type of notation dealing with classes—spe- cifically, with classes of entities and the classes of sets tha t relate them. For example, individual people and automo- biles are entities. When they are taken collectively, the y make two quite different classes of entities. On the othe r hand, all the automobiles belonging to a particular perso n constitute a set of entities that are subordinate to th e owner entity. The Data Structure Diagram has been used fruitfull y over a period of five years by a limited but rapidly growin g audience. This audience (where the technique originated ) consists of the users of General Electric's Integrate d Data Store (I-D-S) data management system. I-D-S employs language statements that directly support the relationship s implied by the Data Structure Diagrams. The techniqu e is now being used to study, document, and communicat e information structures, even in those cases where no mech- anized implementation is intended. The purpose of thi s paper is to document the technique of data structure dia- gramming so that it may be studied, evaluated, and put to work where it appears useful. Definition s Four terms : entity, entity class, entity set, and set class are central to the understanding of Data Structure Diagrams. This text will use the term entity to mean a particula r
an entire group of entities which are sufficiently similar, i n terms of the attributes that describe them, to be considere d collectively. Many different entity classes may exist. Th e text will use the term entity set to mean a different kind o f
CHARLES W. BACHMAN is Manager, Applications Tech- nology, for General Electric, Phoenix, Arizona. He is the creator of G .E.'s Integrated Data Store (/-D-S), a gen- eralized data storage and retrieval system. He is also a member of the COBOL Data Base Task Force.
entity grouping—one that associates a group of entitie s of one entity class with one entity of a different entity class in a subordinate relationship. The concepts of entity clas s and entity set are independent of each other and can be thought of as being at right angles or orthogonal. Figure 1 illustrates this point. entity set entity class
entit y Figure 1
entire group of entity sets which are sufficiently similar, i n terms of the attributes that describe them, to be considere d collectively. Specifically, it is limited to those groups of set s in which the same entity-to-entity subordinate relationshi p exists. Figure 2 expands on Figure 1 to put all four of thes e terms into a spatial relationship. set clas s
-
entity set • (^) • entity class
entit y Figure 2
Many different set classes may exist. For example, th e entities that we might consider in a management informa- tion system are the employees and the departments. Al l the employees in the company, when considered together , would make one entity class, while all the departments would make another entity class. Although the departments and employees may be considered independently of eac h other for some purposes, the relationship between th e group of employees who work for the same departmen t and that department may also be very important. Insofa r as a department has a set of employees currently assigne d to it, these employees can legitimately be considered a s subordinate entities or sub-entities of that department. Each department is considered to be the owner of the set in which its employees are the members. When all of these
sets of employees are considered collectively they consti- tute a set class. In a like manner, if employees, as an entity class, wer e considered in conjunction with their spouses and children , which comprise yet another entity class, then a set class could be established on the basis of the sets with employee entities as owners and their spouse and children as mem- bers. The concept of owner and member, the one owne r to many member ratio, and the fact that these may b e treated on a class basis, are central to the purpose an d graphics of the Data Structure Diagram.
Graphic Symbol s The Data Structure Diagram technique uses two basi c graphic symbols : the block, to represent an entity class ; and the arrow, to represent a set class and to designate th e roles of owner/member established by that set class. Th e arrow points from the entity class that owns the sets to th e entity class that makes up the membership of the sets. The diagram in Figure 3 states that an entity class exist s and that an entity class name is to be assigned. No information is implied as to how many entities mak e up the entity class. The only implication is that the entity class has been declared and is subject to such operation s as may be defined.
Figure 3
The diagram in Figure 4 states that two entity classe s have been defined and that their entity class names are : "department" and "employee. " If a particular company
Figure 4
were being studied, there would be as many departmen t entities and employee entities as that company had de- partments and people. The diagram in Figure 5 states not only that two entit y classes exist, but also that they are related by a set clas s named "assignment. " The direction of the arrow is read to mean that each employee is a member of a set of em- ployees that belong to a particular department, and further , that each department has such a set of employees.
membe r Figure 5
The Data Structure Diagram is topological in nature. Only the blocks, arrows, and names have meaning. Th e size, position, and proportion are selected for readability. Figure 6 is exactly equivalent to Figure 5, even if some - what contorted.
assignmen t
Figure 6
A Data Structure Diagram may contain as many block s and arrows as necessary to establish the particular informa- tion structures under study. Any two entity classes may b e associated as entity class/sub-entity class by zero, one, two , or more different set classes with the same or opposite ownership.
dependent relationship and many dominant relationships. I say usually, because military organizations are rife wit h situations where units are assigned one place for comman d purposes and another for rations and quarters. Figure 1 0 illustrates a tree structure.
Figure 1 0
The Data Structure Diagram in Figure 9 is equally goo d for modeling a network or a tree. The Data Structure Diagram in Figure 11 is more specialized in that it support s a tree model but does not support a network.
Figure 11
1 : n
dominan t Figure 1 2 The "dependent" set had been limited by definition o f a tree to a 1 :1 relationship between the "node" an d "relationship" entities. This was the fact which permitte d reversing the dependent entity/sub-entity association i n Figure 11 and still further supported merging the "node " entity class with the "relationship" entity class. The diagra m simply illustrates that each "node" has a "dominant " relationship with other nodes that, in turn, are limited to one relationship on what is considered their "dependent " side. The Data Structure Diagrams in Figures 11 and 12 create a chicken and egg situation. A member entity cannot exist until there is a set in which to insert it. In Figures 11 and 1 2 the "node" entity is both owner and member. Therefore , one such entity cannot exist alone unless it is its ow n owner. Two different structure solutions are available fo r this dilemma. These are the sometime member entit y classes, described in the next section, and the alternat e owner set classes, which will be discussed later in the text.
Sometime Member Entity Classe s When it is necessary to document a set class in whic h the member relationship may or may not exist, a dashe d arrow is used. Figure 13 illustrates the graphic convention. Entities of the owner entity class always own a set of th e set class specified. Entities of the class at the head of th e arrow in Figure 13 individually may (or may not) b e members.
relationship
In the Tree Structure Diagram the owner/member re- lationship (arrow) of the "dependent" set class has bee n reversed. The freedom to make the reversal is based upo n the fact that the tree allows only one or no relationships o n the dependent side of the node. Modelling the tree with a Data Structure Diagram permits two options : (1) one rela- tionship entity owning a one-member set of node entitie s (Figure 11), or (2) one node entity owning a one-membe r set of relationship entities (Figure 9). Therefore, the di- rection of the entity/sub-entity relationship is somewha t arbitrary. From the Data Structure Diagram in Figure 11 , it is a short step in structure simplification to reach th e diagram in Figure 12, which still represents the tree.
member
owne r
Figure 1 3
An example of a sometime member can be drawn fro m the banking industry, where demand deposit account s entities have a sometime relationship with an overdraw n account entity. Whenever an account's balance is less tha n zero, the relationship is invoked until paid up. Otherwise , the relationship doesn't exist.
Compound Network s We have just used some examples of simple networks to illustrate the usage of Data Structure Diagrams. By simpl e network, I mean networks of like entities, i .e ., all events , or all "T" accounts. Compound networks are the result o f the association of unlike entities within a network. On e example of a compound network is developed by th e author association between books and the people wh o wrote them. If you were to examine the books in an y library, you would find that some books had one autho r while other books, especially in the technical and educa- tional fields, had two and maybe three or four authors. I f you considered the people who were authors of thes e books, you would find that some were authors of mor e than one book. Certain prolific authors would have man y books to their credit. Therefore, the network created by th e book/people/author relationship would consist of nodes fo r books (book entities), nodes for people (people entities) , and a relationship between a book entity and a perso n entity that records authorship. Figure 14 is the Data Structure Diagram which represents this compound net - work.
COMPOUND NETWORK STRUCTUR E
authorship
Figure 1 4
Information models of any complexity usually are com- pound networks in one or more ways. If our origina l department/employee model had represented a university , then the "employee" entity might have been the sam e entity class name as the "person" entity with a ne w association. Figure 15 combines the Data Structure Dia- grams of Figure 14 and one similar to Figure 7 to creat e a more comprehensive information model,
dependen t
Figure 1 5
This model includes a school/department/perso n organization-oriented hierarchy, the person/dependent per- sonnel-oriented hierarchy and the person/authorship/boo k compound (publish-or-perish) network. Given the necessar y computer hardware and software, and access to any on e entity in a specific data base created according to this Dat a Structure Diagram, then all other associated entities coul d be determined by moving through the sets. Both Genera l Electric's Integrated Data Store (I-D-S) and General Motors ' Associative Programming Language (APL) are software systems specifically designed and implemented to encourag e and support the construction, maintenance, and use of data bases organized around such complex structures.
Multimember Set Classe s When it is necessary to document a set class with more than one class of entities in the role of member, a multi - headed arrow is used. Figure 16 illustrates the graphi c convention.
MULTIMEMBER SET CLASSES
Figure 1 6
boo k
book (^) person
book-autho\ (^) person-author
authorshi p
Complex Structure s Very large Data Structures Diagrams have been designe d and used in the last five years in the design and implemen- tation of various information systems. "Large" in this cas e is measured in terms of the number of entity classes an d set classes. Figure 21 illustrates the Data Structure Diagram underlying one manufacturing information and contro l system.
Figure 2 1
It has 39 entity classes and 38 set classes. Can you, i n examining the diagram, find a five-level hierarchy? Tw o simple networks? Five compound networks? A simple net - work with an extra hierarchical level in one leg? Note tha t there are no tree structures. Without any rigorous defi- nition, a complex structure is one composed of many entit y classes and many set classes. Within a complex structure , we typically find multilevel hierarchies, simple networks , compound networks and trees. Large Data Structure Diagrams, in terms of the numbe r of elements, should be clearly distinguished from larg e data bases with many entities (records), which have bee n built in response to a Data Structure Diagram. Althoug h each entity in a data base needs an entity class to defin e and control it, that one entity class may represent zero , one, ten thousand, or a million records in storage. Th e largest system in operation today contains 60 entity classe s controlling over half a million data records. Larger system s are being installed.
Summary of Structure Type s Simple and compound networks are differentiated b y the fact that one, the simple network, is constructed o f node entities of a single entity class, while the other i s constructed of node entities of several different entit y classes. Trees and networks are differentiated by the fac t that one, the tree, is constructed under the rule that eac h node has only one "dominant" node while the other i s constructed with unlimited association between nodes. Th e two concepts : tree vs. networks, and simple vs. compound , are independent of each other and can be thought of a s being at right angles or orthogonal. Figure 22 illustrates thi s point and brings the hierarchial structure into perspective. It is a compound tree, i .e. with more than one entity class as node and each node with only one dependent association.
Summary The Data Structure Diagrams, consisting of two kinds o f elements (blocks representing entity classes and arrow s representing set classes), have been defined, Examples hav e illustrated their application. Their practical usage in th e design and study of mechanized information systems ha s been described. Two data management languages, I-D- S and APL, provide for the description and manipulation o f data bases with the characteristics that are describabl e through the Data Structure Diagrams. In addition, ther e is a new Data Description Language and Data Manipulatio n Language currently being specified by the Data Base Tas k Group of the COBOL Programming Languages Committee. This offers promise for an industry standard data manage- ment language that would operate in conjunction wit h FORTRAN, ALGOL, PL/I, as well as COBOL allowing a DATA BASE to be built in one language while bein g accessed in yet another.
(1) Bachman, C. W ., Williams, S. B ., "A General Purpose Program - ming System For Random Access Memories," (^) Proceedings o f the Fall Joint Computer Conference, San Francisco, California. October 1964. (2) Bachman, C. W ., " Software For Random Access Processing " Datamation, April 1965. (3) " Integrated Data Store, A New Concept in Data Management, " AS-CPB-483A General Electric Information Systems Group , Phoenix, Arizona. (4) Bachman, C. W ., "Integrated Data Store Data Base Study " Second Symposium on Computer-Centered Data Base Systems , also available as CPB-481A General Electric Information Syste m Group, Phoenix, Arizona. (5) Dodd, G. G ., "APL—A Language for Associative Data Handlin g in PL/I," Fall Joint Computer Conference, 1966. (6) "Report to the CODASYL COBOL Committee, January 1968. COBOL Extensions to Handle Data Base" prepared by Data Base Task Group. (7) "Data Description Language and Data Manipulation Language Report," April 1969 : Prepared as a report to the CODASY L COBOL Programming Language Committee by the Data Bas e Task Group.
Figure 22
Bibliograph y