This paper addresses the clock synchronization problem in a wireless sensor network (WSN) and proposes a distributed solution that consists of a form of consensus, where agents are able to exchange data representing intervals or sets. The solution is based on a centralized algorithm for clock synchronization, proposed by Marzullo, that determines the smallest interval that is in common with the maximum number of measured interval. We first show how to convert such an algorithm into a problem involving only operations on sets, and then we convert it into a set

%B Proc. IEEE Conference on Automation Science and Engineering %C Bangalore %P 116 - 121 %8 August, 22-25 %G eng