Implement an algorithm to find the shortest path in a dynamic network where edge weights change frequently.