Research Article

ECOPS: Energy-Efficient Collaborative Opportunistic Positioning for Heterogeneous Mobile Devices

Algorithm 1

ECOPS: Initial procedure deciding whether a device becomes either a PB or a PR.
1: check the residual power ( );
2: if GPS-equipped device &  then
3:  device becomes and activates WiFi hotspot;
4:  executes CollaborativePB();
5: else if non-GPS device ∣∣  then
6:  device becomes PR and executes CollaborativePR();
7: end if