Zaslat SMS: Algorithms for sensor and ad hoc networks :