Research Article
Energy-Efficient Compressed Sensing in Cognitive Radio Network for Telemedicine Services
Algorithm 2
Priority scheduling algorithm.
1. While the CH receives data from WBANs in the cluster | 2. Examine each piece of information from the WBANs. | 3. Sort the packets in descending order of their values. | 4. The packets with large values (critical data) are given higher priority than other packets. | 5. if no higher priority data is processed | 6. Send higher priority packets to the server from all clusters | 7. else | 8. Send less important packets | 9. if a higher priority packet arrives at the cluster head | 10. Stop sending lower-priority packets; send that higher-priority packet, then resume sending other packets | 11. end if | 12. end if | 13. end while |
|