Distributed Resource Allocation for D2D Communications Underlaying Cellular Networks in Time-Varying Environment | Synapse