algorithmic design for wireless sensors 9998517