Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Difference between ER Model and RDBMS
Next article icon

Difference between Hierarchical and Network Data Model

Last Updated : 11 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Data models are essential for specifying data organization, storage, and retrieval techniques in the field of database administration. The Network Data Model and the Hierarchical Data Model are two important concepts that have influenced how databases are created and used. Each of these models has certain benefits and drawbacks and varies in terms of flexibility, structure, and use cases. It is crucial to comprehend the primary distinctions among these models in order to choose the most appropriate one for your particular application requirements.

What is the Hierarchical Data Model?

A hierarchical data model is the oldest type of the data model. It was developed by IBM in 1968. It organizes data in a tree-like structure. Hierarchical model consists of the following :

  • It contains nodes which are connected by branches.
  • The topmost node is called the root node.
  • If there are multiple nodes appear at the top level, then these can be called root segments.
  • Each node has exactly one parent.
  • One parent may have many children.

Characteristics of the Hierarchical Data Model

  • Nodes and Branches: The data is stored in nodes, and each node is connected to its parent node by a branch.
  • Top-level node without a parent, known as the root node.
  • Parent-kid Relationship: A parent may have more than one kid, but each node (child) only has one parent.

Example of Hierarchical Data Model

Think of a database used to hold information about technological devices:

  • Electronics is the root node.
  • TVs and portable electronics are examples of child nodes.
  • Grandchild Nodes: Tube, LCD, and Plasma under televisions. These all stand for different categories under the Television node.

Advantages of Hierarchical Data Model

  • Simple Structure: Because of its tree-like structure, it is simple to comprehend and use.
  • Data Security: A distinct parent-child hierarchy is used to guarantee data security.
  • Effective Data Retrieval: Quick and effective way to query data in hierarchies.

Disadvantages of Hierarchical Data Model

  • The hierarchical data model has limited flexibility since each child node can only have one parent.
  • Insertion and Deletion Anomalies: Problems might occur with the addition or removal of nodes.
  • Absent Data Independence: Modifications to the structure may result in problems with data administration.

Hierarchical data modelIn the above figure, Electronics is the root node which has two children i.e. Televisions and Portable Electronics. These two has further children for which they act as parent. For example: Television has children as Tube, LCD and Plasma, for these three Television act as parent. It follows one to many relationship. 

What is the Network Data Model?

It is the advance version of the hierarchical data model. To organize data it uses directed graphs instead of the tree-structure. In this child can have more than one parent. It uses the concept of the two data structures i.e. Records and Sets. 

Characteristics of the Network Data Model

  • Graph Organization: Graphs are used to organize data and support numerous parent-child connections.
  • Flexibility: Facilitates intricate connections, including many-to-many (m), one-to-many (1:m), and one-to-one (1:1).
  • Data linkage connects records by using linked lists and pointers.

Example of Network Data Model

Think of a database used to hold project and departmental data:

  • Project as the Root Node
  • Offspring Nodes: Projects 1 and 2
  • Multiple Parents: Projects 1 and 2 are connected to Departments B and C, demonstrating the many-to-many link.

Advantages of Network Data Model

  • Offers many ways to retrieve data and supports intricate interactions.
  • No Insertion or Deletion abnormalities: Reduces structural abnormalities by allowing child nodes to have numerous parents.
  • Multiple access pathways are provided for efficient data access, which facilitates record searches.

Disadvantages of Network Data Model

  • The graph structure is more difficult to maintain and build, which is a drawback of the complexity of the network data model.
  • Compared to contemporary relational models, partial data independence offers a restricted degree of data independence.
  • Less Popular: Compared to relational models, it is less often employed because of its complexity.

Network data model 

In the above figure, Project is the root node which has two children i.e. Project 1 and Project 2. Project 1 has 3 children and Project 2 has 2 children. Total there are 5 children i.e Department A, Department B and Department C, they are network related children as we said that this model can have more than one parent. So, for the Department B and Department C have two parents i.e. Project 1 and Project 2. 

Difference Between Hierarchical and Network Data Model

Hierarchical Data Model Network Data Model
In this model, to store data hierarchy method is used. In this model, you could create a network that shows how data is related to each other.
It implements 1:1 and 1:n relations. It implements 1:1, 1:n and also many to many relations.
To organize records, it uses tree structure. To organize records, it uses graphs.
Records are linked with the help of pointers. Records are linked with the help of linked list.
Insertion anomaly exits in this model i.e. child node cannot be inserted without the parent node. There is no insertion anomaly.
Deletion anomaly exists in this model i.e. it is difficult to delete the parent node. There is no deletion anomaly.
It is used to access the data which is complex and asymmetric. It is used to access the data which is complex and symmetric.
When update operation is performed, it suffers from inconsistency problem because of the existence of multiple instances of child records. No such problem exists because of the single occurrence of records while updating.
This model lacks data independence. There is partial data independence in this model.
Less flexible in comparison to the relational model. It is flexible.
When you are searching for a record then firstly you need to visit parent record before retrieving a child record. Searching for a record is easy because of the availability of multiple access paths to reach data item.
Example- IBM’s IMS (Information Management System) implement this model. Example- Oracle. SQL Server, Sybase DBMS implement this model.
 

Conclusion

Each of the two data models—the network and the hierarchical—has advantages and disadvantages of its own. Although it lacks flexibility, the hierarchical model is easy to use and effective for basic parent-child connections. The network approach, on the other hand, allows for intricate many-to-many interactions and offers more flexibility at the expense of complexity. The specifics of the data and how it must be accessible and structured will determine which of these models is best.



Next Article
Difference between ER Model and RDBMS
author
itskawal2000
Improve
Article Tags :
  • DBMS
  • Difference Between

Similar Reads

  • Difference Between Hierarchical, Network and Relational Data Model
    In order to define the connections, organization, and structure of data in a database management system (DBMS), data models are essential. The effectiveness of a database's ability to store, retrieve, and alter data is greatly influenced by the choice of data model. The Hierarchical, Network, and Re
    6 min read
  • Difference between Network and Relational data model
    Data models specify the organization, archiving, and manipulation of data in database management systems (DBMSs). The Network Data Model and the Relational Data Model are two popular forms of data models. Each of these models has distinct characteristics, benefits, and uses for organizing and managi
    5 min read
  • Difference between Network and Internet
    Computers and their systems square measure difficult in their approach, and it gets doubly robust once you need to comprehend 2 terms associated with this subject that act already utilized in the regular language, those mentioned adequately during this article square measure Network and net, they wi
    2 min read
  • Difference between Hardware and Networking
    1. Hardware : Hardware, as name suggest, are tools, machines and other durable equipment's i.e. physical part of components such as keyboard, mouse, sound card, etc. and are required to function. Hardware is responsible for processing data and running software applications. 2. Networking : Networkin
    3 min read
  • Difference between ER Model and RDBMS
    1. ER (Entity- Relationship) Model : ER model stands for entity relationship model. It specifies the structure of a database by giving the relationship between the entities of the system. An entity set is a group of entities that are similar to each other. It is considered as a conceptual design whi
    2 min read
  • Difference between Information and Data
    Data and Information are important concepts in the world of computing and decision-making. Data is defined as unstructured information such as text, observations, images, symbols, and descriptions on the other hand, Information refers to processed, organized, and structured data. It gives context to
    4 min read
  • Difference between Data and Metadata
    The term 'data' may also refer to various forms such i.e. numbers, text, images, or audio that provide information concerning facts, phenomena, or even concepts. In other words, it is the basic information that is subjected to processing or interpretation to find meaning or generate products. Metada
    6 min read
  • Difference between Linear and Non-linear Data Structures
    Linear Data Structure: Data structure where data elements are arranged sequentially or linearly where each and every element is attached to its previous and next adjacent is called a linear data structure. In linear data structure, single level is involved. Therefore, we can traverse all the element
    5 min read
  • Difference between Big Data and Machine Learning
    In today's world where information is abundant, big data and machine learning have emerged as transformative forces that have revolutionized various industries and shaped the digital landscape. Although they are sometimes used interchangeably, they are distinct yet interconnected domains that have p
    7 min read
  • Difference between Hive and MongoDB
    1. Hive : Hive is a data warehouse software for querying and managing large distributed datasets, built on Hadoop. It is developed by Apache Software Foundation in 2012. It contains two modules, one is MapReduce and another is Hadoop Distributed File System (HDFS). It stores schema in a database and
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences