@Rohit Pandey, I didn't get your question. What do you mean by different dist[V_n] for same iteration ? Are you trying to asking that each array elements dist[v1], dist[v2] .... will get different values for same iteration ? if yes, then i think it is possible to get different values for same iteration