Cargando…
Hierarchical data structures for flowchart
Flowcharts have broad applications in the fields of software development, engineering design, and scientific experimentation. Current flowchart data structure is mainly based on the adjacency list, cross-linked list, and adjacency matrix of the graph structure. Such design originated from the fact t...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Nature Publishing Group UK
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10083176/ https://www.ncbi.nlm.nih.gov/pubmed/37032370 http://dx.doi.org/10.1038/s41598-023-31968-z |
_version_ | 1785021451552686080 |
---|---|
author | Zhang, Peng Dou, Wenzhang Liu, Huaping |
author_facet | Zhang, Peng Dou, Wenzhang Liu, Huaping |
author_sort | Zhang, Peng |
collection | PubMed |
description | Flowcharts have broad applications in the fields of software development, engineering design, and scientific experimentation. Current flowchart data structure is mainly based on the adjacency list, cross-linked list, and adjacency matrix of the graph structure. Such design originated from the fact that any two nodes could have a connection relationship. But flowcharts have clear regularities, and their nodes have a certain inflow or outflow relationship. When graph structures such as an adjacency table or an adjacency matrix are used to store a flowchart, there is a large room for optimization in terms of traversal time and storage complexities, as well as usage convenience. In this paper we propose two hierarchical data structures for flowchart design. In the proposed structures, a flowchart is composed of levels, layers, and numbered nodes. The nodes between layers are connected according to a certain set of systematic design rules. Compared with the traditional graph data structures, the proposed schemes significantly reduce the storage space, improve the traversal efficiency, and resolve the problem of nesting between sub-charts. Experimental data based on flowchart examples used in this paper show that, compared with adjacency list, the hierarchical table data structure reduces the traversal time by 50% while their storage spaces are similar; compared with adjacency matrix, the hierarchical matrix data structure reduces the traversal time by nearly 70% and saves the storage space by about 50%. The proposed structures could have broad applications in flowchart-based software development, such as low-code engineering for smart industrial manufacturing. |
format | Online Article Text |
id | pubmed-10083176 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | Nature Publishing Group UK |
record_format | MEDLINE/PubMed |
spelling | pubmed-100831762023-04-11 Hierarchical data structures for flowchart Zhang, Peng Dou, Wenzhang Liu, Huaping Sci Rep Article Flowcharts have broad applications in the fields of software development, engineering design, and scientific experimentation. Current flowchart data structure is mainly based on the adjacency list, cross-linked list, and adjacency matrix of the graph structure. Such design originated from the fact that any two nodes could have a connection relationship. But flowcharts have clear regularities, and their nodes have a certain inflow or outflow relationship. When graph structures such as an adjacency table or an adjacency matrix are used to store a flowchart, there is a large room for optimization in terms of traversal time and storage complexities, as well as usage convenience. In this paper we propose two hierarchical data structures for flowchart design. In the proposed structures, a flowchart is composed of levels, layers, and numbered nodes. The nodes between layers are connected according to a certain set of systematic design rules. Compared with the traditional graph data structures, the proposed schemes significantly reduce the storage space, improve the traversal efficiency, and resolve the problem of nesting between sub-charts. Experimental data based on flowchart examples used in this paper show that, compared with adjacency list, the hierarchical table data structure reduces the traversal time by 50% while their storage spaces are similar; compared with adjacency matrix, the hierarchical matrix data structure reduces the traversal time by nearly 70% and saves the storage space by about 50%. The proposed structures could have broad applications in flowchart-based software development, such as low-code engineering for smart industrial manufacturing. Nature Publishing Group UK 2023-04-09 /pmc/articles/PMC10083176/ /pubmed/37032370 http://dx.doi.org/10.1038/s41598-023-31968-z Text en © The Author(s) 2023 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . |
spellingShingle | Article Zhang, Peng Dou, Wenzhang Liu, Huaping Hierarchical data structures for flowchart |
title | Hierarchical data structures for flowchart |
title_full | Hierarchical data structures for flowchart |
title_fullStr | Hierarchical data structures for flowchart |
title_full_unstemmed | Hierarchical data structures for flowchart |
title_short | Hierarchical data structures for flowchart |
title_sort | hierarchical data structures for flowchart |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10083176/ https://www.ncbi.nlm.nih.gov/pubmed/37032370 http://dx.doi.org/10.1038/s41598-023-31968-z |
work_keys_str_mv | AT zhangpeng hierarchicaldatastructuresforflowchart AT douwenzhang hierarchicaldatastructuresforflowchart AT liuhuaping hierarchicaldatastructuresforflowchart |