We are given a directed acyclic graph $G=(V,E)$ with a number associated with each vertex ($g:V\to \mathbb{N}$), and a target number $T\in \mathbb{N}$.
The DAG subset sum problem (might exist under a different name, a reference will be great) asks whether there are vertices $v_1,v_2,...,v_k$, such that $\Sigma_{v_i}g(v_i) = T$, and $v_1\to..\to v_k$ is a path in $G$.
This problem is trivially NP-Complete, as the complete transitive graph yields the classical subset sum problem.
An approximation algorithm for the DAG subset sum problem is an algorithm with the following properties:
- If there exists a path with sum T, the algorithm return TRUE.
- If there is no path summing up to a number between $(1 − c)T$ and $T$ for some $c\in (0,1)$, the algorithm return FALSE.
- If there is a path summing to a number between $(1 − c)T$ and $T$, the algorithm may output any answer.
Subset sum is known to be approximable in polynomial time for all $c>0$.
Does the same hold for DAG-Subset-Sum?