## 3 D2D-Based Resource Allocation Algorithms
### Power and Delay Optimization Based Uplink Resource Allocation Algorithm
The fairness index graphs reveal that the OP-DMCG algorithm penalizes this parameter to provide higher throughput and lower total delay compared to other algorithms. In other words, it tends to be less equitable when compared to alternative algorithms, allocating more resources to users with better channel conditions. In addition to the results discussed earlier, another conclusion derived from this study is that the initial creation process of device-to-device links influences the final result. Our meticulous observations unveiled that the utilization of a radius search mechanism exhibited superior efficacy when gauged against both the closest search and the random search methodologies. The advantages of the radius search became evident through its demonstrated effectiveness in enhancing not only the overall throughput but also the specific D2D throughput performance. This suggests that the radius search strategy at the onset of D2D link creation can significantly contribute to optimizing the overall network performance, showcasing its potential as a preferred approach in the context of enhancing communication efficiency when compared to the closest search and random search. In summary, our findings highlight the OP-DMCG algorithm, specifically when utilizing the radius search technique, as the optimal choice in terms of achieving superior results in both total throughput and total device-to-device throughput, surpassing alternative approaches considered in our study. The efficacy of the OP-DMCG algorithm is notably enhanced by the strategic deployment of the radius search, a method that consistently demonstrated its ability to create efficient D2D links. The contributions of the authors are listed as follows: Conceptualization, L.A.M.d.M., F.H.T.V. and M.V.G.F. ; Methodology, L.A.M.d.M., F.H.T.V. and M.V.G.F. ; Investigation, L.A.M.d.M., F.H.T.V. and M.V.G.F. Writing--original draft preparation, L.A.M.d.M. and F.H.T.V. ; Writing--review and editing, L.A.M.d.M., F.H.T.V. and M.V.G.F. ; Funding acquisition, F.H.T.V. and M.V.G.F. All authors have read and agreed to the published version of the manuscript. We would like to thank the Coordenacao de Aperfeicoamento de Pessoal de Nivel Superior (CAPES) for the financial support granted for the publication of this paper. Not applicable. Data Availability Statement: Data is contained within the article. The authors declare no conflict of interest. ## References

* (1) Cisco. _Cisco Visual Networking Index: Global Mobile Data Traffic Forecast Update_, 2010-2015, White Paper, February; Cisco: San Jose, CA, USA, 2011. * (2) [PERSON]; [PERSON]; [PERSON] Secrecy-ensured NOMA-based Cooperative D2D-aided Fog Computing under Imperfect CSI. _J. Inf. Secur. Appl._**2021**, 59, 102812. [CrossRef]
* (3) [PERSON]; [PERSON]; [PERSON] Next Generation 5G Wireless Networks: A Comprehensive Survey. _IEEE Commun. Surv. Tutor._**2016**, 18, 1617-1655. [CrossRef]
* (4) [PERSON]; [PERSON] A Survey of 5G Network: Architecture and Emerging Technologies. _IEEE Access_**2015**, 3, 1206-1232. [CrossRef]
* (5) [PERSON]; [PERSON] Scenarios, Requirements and KPIs for 5G Mobile and Wireless System. Document ICT-317669-METIS/D1.1, April 2013. Available online: [[https://cordis.europa.eu/docs/projects/cncet/9/317669/080/deliverables/001-METISD11v1](https://cordis.europa.eu/docs/projects/cncet/9/317669/080/deliverables/001-METISD11v1) pdf]([https://cordis.europa.eu/docs/projects/cncet/9/317669/080/deliverables/001-METISD11v1](https://cordis.europa.eu/docs/projects/cncet/9/317669/080/deliverables/001-METISD11v1) pdf). pdf (accessed on 28 October 2023). * (6) [PERSON] Everything You Need to Know about 5G. 2017. Available online: [[https://spectrum.ieee.org/everything-you-need-to-know-about-5g](https://spectrum.ieee.org/everything-you-need-to-know-about-5g)]([https://spectrum.ieee.org/everything-you-need-to-know-about-5g](https://spectrum.ieee.org/everything-you-need-to-know-about-5g)) (accessed on 13 October 2023). * (7) Arrow. The Democratization of Innovation for the Internet of Things. 2016.