Research Article

Caching and Placement for In-Network Caching in Device-to-Device Communications

Algorithm 1

Joint caching decision and content discovery algorithm.
Require:, , , ,
0.001, .
while and do
Find the optimal .
Obtain through (24).
Find the optimal content discovery of D2D pair
for content by using (25).
Update .
Set and .
Update the dual variable according to (26).
Update .
end while