Sharif University of TechnologyScientia Iranica1026-309825320180601Making problem: A new approach to reachability assurance in digraphs144114552010410.24200/sci.2018.20104ENM. ValizadehIran Telecommunication Research Center (ITRC), Tehran, IranM.H. TadayonIran Telecommunication Research Center (ITRC), Tehran, IranA. BagheriFaculty of Computer Engineering, Amirkabir University of Technology, Tehran, IranJournal Article20161231Let <em>G</em> be a weighted digraph and <em>s</em> and <em>t</em> be two vertices of <em>G</em>. The reachability assurance (RA) problem is how to label the edges of <em>G</em> such that every path starting at <em>s</em> finally reaches <em>t</em> and the sum of the weights of the labeled edges, called the RA cost, is minimal. The common approach to the RA problem is pathfinding, in which a path is sought from <em>s</em> to <em>t</em> and then the edges of the path are labeled. This paper introduces a new approach, the marking problem (MP), to the RA problem. Compared to the common pathfinding approach, the proposed MP approach has a lower RA cost. It is shown that the MP is NP-complete, even when the underlying digraph is an unweighted directed acyclic graph (DAG) or a weighted DAG with an out-degree of two. An appropriate heuristic algorithm to solve the MP in polynomial time is provided. To mitigate the RA problem as a serious challenge in this area, application of the MP in software testing is also presented. By evaluating the datasets from various program flow graphs, it is shown that the MP is superior to the pathfinding in the context of test case generation.http://scientiairanica.sharif.edu/article_20104_b6f1e6f3b30f26b5f2a22c3621fe6f97.pdf