Research Article

Architecture for Resource Allocation in the Internet of Vehicles for Cooperating Driving System

Algorithm 1

For mode selection and transmission point for resource allocation for CDS.
(1)Initialize transmission point setting for RB and PDSSCH
(2)FOR each CSI set resource configuration and transport block size
(3)CREATE subframes for Resources allocation
(4)For Each D2D Transmitter d
(5)  IF Orthogonal resource block x is available
(6)   IF link gain in D2D mode is higher DO
(7)  D2D Transmitter d transmits in D2D mode on RB x
(8)   End
(9) D2D Transmitter d transmits in UE mode on RB x
(10)  ELSE
(11)      Update the counter x
(12)  END
(13)   FOR calculate throughput DO
(14)    Allocate resources and decide the mode for D2D transmitter d according to the DBSCAN algorithm where Min point and Eps are defined to x.
(15)   Update the counter x
(16)   END
(17)END