Introduction - If you have any usage issues, please Google them yourself
In WSNs, PEGASIS routing protocol follows the idea of clustring though it is not a strict hierachical protocol. This program utilizes the greedy algorithm to build a location-based chain, i.e. the cluster of PEGASIS. Such a protocol is simulated in NS2.