首页    期刊浏览 2025年05月23日 星期五
登录注册

文章基本信息

  • 标题:Topological Sort Algorithm according to the Principle of a DAG’s Subgraph is still a DAG after Outputting a Start Node
  • 本地全文:下载
  • 作者:Yong Wei
  • 期刊名称:The Open Cybernetics & Systemics Journal
  • 电子版ISSN:1874-110X
  • 出版年度:2015
  • 卷号:9
  • 期号:1
  • 页码:359-362
  • DOI:10.2174/1874110X01509010359
  • 出版社:Bentham Science Publishers Ltd
  • 摘要:The paper proves that a DAG’s subgraph is still a DAG or empty after deleting a start node. Based on this conclusion, the program loops the DAG and its subgraph as parameters, calls the same method, outputs a start node. Resulting nodes must be a topological sequence when the parameter is empty, so as to implement a topological sort algorithm. This paper also proposes using key-value storage structure to represent a DAG, where each node as the key, the node’s subsequent nodes as the values. Because subsequent nodes must not be start nodes, the remains must be a start nodes set after deleting each node’s subsequent nodes from the nodes set.
国家哲学社会科学文献中心版权所有