An Optimized Algorithm of Auto-generate Base Paths Set Based on Depth-first Search

WU Qu-jin,YANG Xiao-hua,LU Jiang-chun,YU Tong-lan
DOI: https://doi.org/10.19431/j.cnki.1673-0062.2012.03.018
2012-01-01
Abstract:This thesis proposes an algorithm which can generate base paths set with character that length of each path is the smallest by visiting control flow graph according to Depth-First Search method and flag set of arcs and nodes.It provides input data by matrix tool,avoid un-constringency by using roll mechanism,optimizes the result based on the method of recording duplicate paths with smallest length,and obtains optimized set of base paths with smallest nodes list for output of algorithm.
What problem does this paper attempt to address?