Reliability and efficiency in wireless sensor networks: heuristic approaches