1: Initial Setup: The sink sets to a half of the maximum possible lifetime and sets
2: for   to do
3: Every node computes .
4: Node sends their feedback of their transmission time to the sink.
5: The sink sets   and
6: if then
7:  .
8: else
9:   and .
10:  end if
11: end for
12: return
Algorithm 1