I. Introduction
Wireless sensor networks consist of a large number of sensor nodes with limited resources of energy, transmission power, network bandwidth, and computation power. Each sensor node monitors the physical environment in its neighborhood, collects data, and processes information. In many applications, the goal of wireless sensor networks is to compute a global function of the information gathered by spatially distributed sensors at a special node called the sink. Multihop communication is often used to relay the information from the source node to the sinks.