This paper presents a radio resource allocation (RRA) algorithm for managing interference in 5G networks with device-to-device (D2D) communication, utilizing a fractional frequency reuse (FFR) scheme and the Hungarian algorithm. The proposed method divides frequency bands between cellular and D2D users to enhance spectral efficiency while minimizing interference, demonstrating improvements compared to existing algorithms. It incorporates both fair and restricted multiple assignment strategies, achieving an allocation success rate of 60-70% for D2D users in average cases.