• Description: A temperature data collection system of a WSN will be de- signed and implemented using Python with mpi4py
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
• Description: A temperature data collection system of a WSN will be de- signed and implemented using Python with mpi4py
• 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!