There are many algorithms or policies for finding a path with minimum or maximum costs. But, it is hard to find an approach that can find a path within (or below) a required cost (RC), i.e., such an RC is not a minimum or maximum one, and the actual cost should less than such an RC.
I am looking for a feasible algorithm to find a path satisfying the two constraints:
- The cost of such a path should be lower than the required cost.
- The path from source to destination should contain as many hops as possible.
One example is as specified below, e.g.,
The source is node A, the destination is node B; the required cost is 10. There are three pathes can be found from A to B:
1. A --> C --> B; cost is 5
2. A --> C --> D --> B; cost is 8
3. A --> C --> D --> E --> B; cost is 12
According to two mentioned constraints, path 2 (A --> C --> D --> B; cost is 8) is the best one, since the cost is 8 that less than the required cost 10, and path 2 is longer than path 1.
Hope I clearly explain my question. Are there any released algorithms or methods to address this issue?
Thank you in advance.