# Efficient Resource Allocation in Blockchain-Assisted Health Care Systems
## 4 Proposed Technique
### Allocation of Data Blocks to Mining Machines
#### 4.2.1 Algorithm for Load Balancing
The fog mining node selection is completed with the help of a load balancing algorithm that considers the computational load on each fog mining node and the sensitivity of the patient's data. The second purpose of the proposed technique is to efficiently manage the available caching space of the fog mining nodes. This is achieved using a knapsack algorithm, to maximize the mining task computation and prioritize the computation of sensitive patient data. With the help of detailed simulation results, the proposed technique

Figure 8: Number of allocated blocks with a varying number of mining nodes. showed that the high-priority mining tasks were computed much more efficiently than the other resource allocation techniques. In future, we will investigate the consensus algorithms for blockchain-based healthcare. This article was prepared through the collective efforts of all the authors. Conceptualization, A.S.A. and M.A.J. ; Writing--original draft, A.S.A. and M.A.J. ; Writing--review and editing, A.S.A. and M.A.J. All authors have read and agreed to the published version of the manuscript. This research work was funded by Institutional Fund Projects under grant no. (IFPIP: 906-611-1443). Therefore, the authors gratefully acknowledge technical and financial support from the Ministry of Education and King Abdulaziz University, DSR, Jeddah, Saudi Arabia. Not applicable. The authors declare no conflict of interest. ## References

* [PERSON] et al. (2023) [PERSON]; [PERSON]; [PERSON]; [PERSON] Privacy-Preserving Microservices in Industrial Internet-of-Things-Driven Smart Applications. _IEEE Internet Things J._**2023**, _10_, 2821-2831. [CrossRef]
* [PERSON] et al. (2023) [PERSON]; [PERSON]; [PERSON] Semi-Federated Learning for Collaborative Intelligence in Massive IoT Networks. _IEEE Internet Things J._**2023**, _10_, 11942-11943. [CrossRef]
* [PERSON] et al. (2019) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] The Sensable City: A Survey on the Deployment and Management for Smart City Monitoring. _IEEE Commun. Surv. Tutor._**2019**, _21_, 1533-1560. [CrossRef]
* [PERSON] et al. (2023) [PERSON]; [PERSON] [PERSON]; [PERSON] [PERSON] A Distributed Deep Reinforcement Learning Technique for Application Placement in Edge and Fog Computing Environments. _IEEE Trans. Mob. Comput._**2023**, _22_, 2491-2505. [CrossRef]
* [PERSON] et al. (2023) [PERSON]; [PERSON]; [PERSON] TAFS: A Truthful Auction for IoT Application Offloading in Fog Computing Networks. _IEEE Internet Things J._**2023**, _10_, 3252-3263. [CrossRef]
* [PERSON] et al. (2021) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] An intelligent content caching protocol for connected vehicles. _Emerg. Telecommun. Technol._**2021**, _32_, e4231. [CrossRef]
* [PERSON] et al. (2021) [PERSON]; [PERSON]; [PERSON] Design, Resource Management, and Evaluation of Fog Computing Systems: A Survey. _IEEE Internet Things J._**2021**, \(8\), 2494-2516. [CrossRef]
* [PERSON] et al. (2020) [PERSON]; [PERSON]; [PERSON]; [PERSON] An efficient caching policy for content retrieval in autonomous connected vehicles. _Transp. Res. Part A Policy Pract._**2020**, _140_, 142-152. [CrossRef]
* [PERSON] et al. (2021) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] [PERSON] A Volunteer-Supported Fog Computing Environment for Delay-Sensitive IoT Applications. _IEEE Internet Things J._**2021**, \(8\), 3822-3830. [CrossRef]
* [PERSON] et al. (2022) [PERSON]; [PERSON] M.A. ; [PERSON]; [PERSON]. Energy-Efficient Fog Computing for 6G-Enabled Massive IoT: Recent Trends and Future Opportunities. _IEEE Internet Things J._**2022**, \(9\), 14572-14594. [CrossRef]
* [PERSON] and [PERSON] (2022) [PERSON]; [PERSON] Ambient Intelligence assisted fog computing for industrial IoT applications. _Comput. Commun._**2022**, _196_, 117-128. : 10.1016/j.comcom.2022.09.024. [CrossRef]
* [PERSON] and [PERSON] (2023) [PERSON]; [PERSON] Building an ipfs and blockchain-based decentralized storage model for medical imaging.