# Target-Value Search (& II)

[previously appearing in cstheory, it was closed there and introduced here instead]

Given an edge-weighted graph $G=(V,E)$ the problem of finding the shortest path is known to be in P ---and indeed a simple approach would be Dijkstra's algorithm which can solve this problem in $O(V^2)$. A similar problem is to find the maximum path in $G$ from a source node to a target node and this can be solved with Integer Programming so that, as far as I know, this is not known to be in P.

Now, the problem of finding a path in $G$ such that it deviates the minimum from a given target value (typically larger than the optimal distance but less than the maximum distance that separates the source and target nodes) has been conjectured to be in EXPTIME (see section "Conventions" of A depth-first approach to target-value search in the proceedings of SoCS 2009). In particular, this paper addresses this particular problem for directed acyclic graphs (DAGs). A previous work is Heuristic Search for Target-Value Path Problem. There is event a US Patent of this algorithm US 2011/0004625.

I've been searching for related problems in other fields of Computer Science and Mathematics and strikingly, I have found none though this problem is clearly relevant in practice ---there are tons of opportunities to look for a specific target value instead of the minimum or the maximum path.

Do you know related problems to this or additional bibliographical references to this problem? Any information on this problem including studies of their complexity would be very welcome

Note: as already pointed out by Jeffe in cstheory, proving this problem to be in EXPTIME is trivial and the authors probably meant EXPTIME-complete.

• In the case of DAG, all paths can be enumerated in polynomial space and therefore the problem cannot be EXPTIME-complete unless PSPACE=EXPTIME. The natural decision version (given a DAG G, its vertices s and t, and numbers x and y, decide whether there is a path from s to t whose length is between x and y) is in NP. – Tsuyoshi Ito May 2 '12 at 13:19
• Wou Tsuyoshi! This is a very value response! Would you mind to post it as an aswer? I would happily up vote it. – Carlos Linares López May 2 '12 at 13:55
• Hi, Carlos. I notice that you've been approving quite a lot of edits to posts that are several years old, when those edits do nothing more than improve a certain author's use of capital letters. Please don't do that: accepting these edits brings the old question back onto the front page of the site, which means that recent, active questions get pushed onto the second page, where people don't see them. The issues are similar to the ones raise here. Accepting these edits does more harm than good. Cheers. – David Richerby Sep 6 '15 at 15:18
• ouch! sorry about that David! I'll try to take care with that! – Carlos Linares López Sep 6 '15 at 23:49