Intelligent Algorithms for Data-Centric Sensor Networks