• Description: A temperature data collection system of a WSN will be de- signed and implemented using Python with mpi4py
Posted: Sat May 14, 2022 7:37 pm
• Description: A temperature data collection system of a WSN will be de- signed and implemented using Python with mpi4py. This project consists of two parts: Building a spanning tree and data aggregation over this spanning tree. • Procedure: 1. Build a spanning tree of the graph shown in Fig. 1 using Alg. 1. parenti Algorithm 1 Spanning Tree Algorithm 1: message types: probe,ack, reject 2: if i=root then 3: send probe to N(i) 4: 5: end if 6: while childs U others = N(i) \ parent do 7: receive message msg(i) 8: case msg()).type of 9: probe: if parent =-1 then 10: parent 11: send ack to 12: send probe to N(i) \j 13: else 14: send reject to j 15: ack: childs - childs u{j} 16: reject: others + others U{j} 17: end while 2. Provide data aggregation algorithm using the spanning tree formed.