Sensor Deployment and Relocation: A Unified Scheme