New answers tagged weighted-graphs
0
votes
Optimizing node removal in a graph to achieve minimal edge weights while maintaining a certain total node weight
The problem is NP-complete by reduction from the knapsack problem, so you should not expect any efficient algorithm that works correctly in all possible cases.
A plausible approach to solve this in ...
D.W.♦
- 164k
1
vote
Accepted
Find the number of sink nodes per source node efficiently
Assuming you are asking about a directed graph:
As far as I am aware, I believe there is no solution that is significantly faster from running DFS once for each source (or, running DFS on the reverse ...
D.W.♦
- 164k
Top 50 recent answers are included
Related Tags
weighted-graphs × 384graphs × 299
algorithms × 174
shortest-path × 83
graph-traversal × 46
minimum-spanning-tree × 45
optimization × 22
spanning-trees × 17
complexity-theory × 15
dijkstras-algorithm × 15
dag × 13
bipartite-matching × 12
np-complete × 9
dynamic-programming × 9
trees × 9
network-flow × 9
time-complexity × 8
matching × 8
algorithm-analysis × 7
np-hard × 6
approximation × 6
correctness-proof × 6
data-structures × 5
combinatorics × 5
traveling-salesman × 5