This type of distributed system has a major effect on the algorithms used. We will look at the algorithms used at each level and at the interaction between them. For example, parameters for a statistical test might be evaluated in the cloud to be used at the sensor level. Over time, these parameters will be re-evaluated as more data comes in and then communicated to the sensors. This and other approaches will be discussed.