Step6: Updating the network with the proposed algorithm.