{'fraction_non_alphanumeric': 0.039173083682142056, 'fraction_numerical': 0.011534651883567115, 'mean_word_length': 4.333674164962509, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Socially Aware Device-to-multi-device User Grouping for Popular Content Distribution

The distribution of popular videos incurs a large amount of traffic at the base stations (BS) of networks. Device-to-multi-device (D2MD) communication has emerged an efficient radio access technology for offloading BS traffic in recent years. However, traditional studies have focused on synchronous user requests whereas asynchronous user requests are more common. Hence, offloading BS traffic in case of asynchronous user requests while considering their time-varying characteristics and the quality of experience (QoE) of video request users (VRUs) is a pressing problem. This paper uses social stability (SS) and video loading duration (VLD)-tolerant property to group VRUs and seed users (SUs) to offload BS traffic. We define the average amount of data transmission (AADT) to measure the network’s capacity for offloading BS traffic. Based on this, we formulate a time-varying bipartite graph matching optimization problem. We decouple the problem into two subproblems which can be solved separately in terms of time and space. Then, we propose the socially aware D2MD user selection (SA-D2MD-S) algorithm based on finite horizon optimal stopping theory, and propose the SA-D2MD user matching (SA-D2MD-M) algorithm to solve the two subproblems. The results of simulations show that our algorithms outperform prevalent algorithms.


Introduction
Owing to recent growth in the demand for multimedia services, the problem of load at the base station (BS) has become significant [1]. A large amount of user-generated contents are transmitted to the network will significantly increased cellular networks load [2]. According to a report by Cisco, mobile data traffic in cellular networks in 2020 is expected to be nine times that in 2014 [3]. To deal with this traffic, a number of radio access technologies have been developed, and device-to-device (D2D) communication is one of them. It decouples the data transmission process from the BS that helps offloading BS traffic to a certain degree. Moreover, when many video request users (VRUs) request the same popular video from the BS at the same time, the requests follow Zipf's distribution [4]. This means that most VRUs have requests in common for content. Therefore, device-to-multi-device (D2MD) communication can significantly offload BS traffic.
The key technologies in D2MD include seed user (SU) selection, user grouping and resource management [5]. Related research has usually treated them together but they have different focuses. Because VRUs can obtain popular videos from SUs, a greater number and higher quality of SUs can provide VRUs with more and better access options for offloading BS traffic, such as by minimizing interference or maximizing energy efficiency [6] [7]. To incentivize users to become SUs, energy saving is the most important factor [8]- [10]. Then, VRUs are grouped with them. The quality of service (QoS) of D2MD is affected by the VRU with the worst signal-to-noise ratio (SNR) in the D2MD group incurred by channel quality [11]. Some methods have been proposed to address these problems [12]- [14]. Furthermore, some user grouping schemes have been proposed that consider the energy factor of the VRU [15] [16], or combine it with channel quality [17] [18]. Based on user groups, some researchers have focused on reusing resources of cellular users in D2MD groups for offloading BS traffic. Maximizing throughput is the most direct and effective method from the perspective of SU. The single data rate [19]- [23] and multiple data rate demands [24] [25] of VRUs have been considered. Some methods have been proposed to minimize energy consumption [26] and guarantee fairness from VRUs [27] for offloading BS traffic.
All the above studies focused on synchronous user requests. However, asynchronous user requests are more common. Therefore, a D2MD scheme for this scenario is needed to offload BS traffic while considering the time-varying characteristics and quality of experience (QoE) of VRUs. On the one hand, for different scenarios, different social attributes showed by socially aware (SA) information are used, specially, social stability (SS) is one of those attributes that indicates the stability of communication, i.e., the video request user has available transmission time within the physical distance constraint between idle seed user in the D2D [28]. On the other hand, video loading duration (VLD), a key parameter of QoE indicates even if the SU do not starts a D2MD transmission process immediately after receiving requests from VRUs, and the QoE of VRUs can be guaranteed also [29] [30]. In short, based on these two properties, the BS can use a period for optimal D2MD user grouping. Hence, the above problem can be solved. Selecting and matching the optimal VRUs based on this property for a transmission process is an outstanding challenge. The main contributions of this paper are as follows: (1) We model a BS-assisted SA-D2MD user grouping scenario for asynchronous user requests for the distribution of popular videos as a time-varying bipartite graph matching problem. The physical and SA information between SUs and VRUs, and the VLD-tolerant property of the VRUs are considered to group them with SUs to offload the BS traffic. We define the average amount of data transmission (AADT) during a SA-D2MD transmission process to measure the capacity for offloading the BS traffic.
(2) We decouple the problem into two subproblems which can be solved separately from time and space.
 In terms of time, we model the subproblem of optimal multicast time selection. To maximize the AADT with the QoE constraint, finite horizon optimal stopping theory is used to determine the AADT threshold at each time slot. Then, SA-D2MD user selection algorithm (SA-D2MD-S) is proposed.  In terms of space, we model the subproblem of optimal VRU clustering. Because the VRUs have multiple choices for SUs, the matching from space is not unique. Hence, we divide the subproblem into three problems and develop a heuristic SA-D2MD user matching (SA-D2MD-M) algorithm to solve it. (3) The results of simulations show that the SA-D2MD-S and SA-D2MD-M&S algorithms have advantages in terms of AADT with different parameters compared with other algorithms. The remainder of this paper is organized as follows. In Section 2, we provide a review of related work. In Section 3, the system model is described. We then formulate the BS-assisted SA-D2MD user grouping problem in two subproblems in Section 4, solve them in Section 5 by using finite horizon optimal stopping theory and a heuristic search algorithm. In Section 6, we present the results of simulation experiments to test the performance of the SA-D2MD-S and SA-D2MD-M&S algorithms. Finally, the conclusions of this paper are given in Section 7.

Related Work
Multimedia data have the characteristics of human centrism [31]. SA information can be used to improve the performance of D2MD for video distribution [28] [32]. We review representative studies here. Owing to different time-varying characteristics of user requests, the relevant work can be divided into synchronous user request-based methods and asynchronous user request-based methods.
Synchronous user request-based methods: The assumption of a synchronous user request indicates that the network can be optimized from the spatial perspective based on the given time context-aware information only, and the future status of the network is not considered. A strong social tie represents strong altruism between SUs and VRUs. Not only does it mean longer available transmission time and higher contact probability, it also implies stronger selection preference in the content pull service. Hence, Li et al. [33], Gong, et al. [34] and Zhao et al. [35] used this property to optimize D2MD. Further, social tie also means demand similarity. SU selection, user grouping, and power and channel allocation in content push service, such as in work by Tulu et al. [36], Huang et al. [37], Feng et al. [38], and Wu et al. [39]. Moreover, Bai et al. [40] proposed a hybrid pull/push scheme by D2MD based on an social tie threshold. A weak social tie represents strong selfishness between SUs and VRUs. This means that users without social tie are less likely to communicate with one another. It is necessary to design corresponding incentive mechanism to solve this problem. Hence, Huang et al. [41] designed a proper SU selection and user grouping scheme for the maximum weight. Using more context-aware information, such as interest similarity and geographical location, Cao et al. [42], Zhao et al. [43], and Wang et al. [44] designed user grouping incentive schemes for D2MD. In general, synchronous user request-based methods have the advantages of low time complexity and easy deployment. However, it is difficult to make corresponding adjustments according to the spatiotemporal variation in network state caused by the time-varying characteristics of user request, such as changes in channel quality, energy, user numbers, and SA information.
Asynchronous user request-based methods: The assumption of an asynchronous user request indicates that network optimization is on dynamic physical and SA information collected from the perspectives of time and space. Based on changes in channel quality and battery capacity caused by asynchronous user requests, the SU can be updated in time for asynchronous and multiple transmissions, such in Araniti et al. [45] and Jiang et al. [46]. Based on change in user numbers, Wang et al. [47] proposed physical-social distance in the Chinese Restaurant Process (PSD-CRP) for user grouping based on the classic CRP [48]. The selection preference of the VRUs was introduced to improve throughput. Similar work has been reported by Ren et al. [49] for user grouping by PSD-CRP. It is based on social tie, battery capacity, and channel quality. Considering the problem of downloading multiple contents in D2MD, Zhang et al. [50] proposed a user group method to improve throughput based on the Indian Buffet Process (IBP). Based on time-varying social tie, Zhang et al. [51] proposed an social tie increment maximization problem. Selfishness has also been considered in incentive mechanisms. Zhao et al. [52] considered the spatiotemporal variation in network states to incent asynchronous arriving users as SUs. Relevant theories in game theory have been used, such as in Wu et al.'s [53] pricing-based method, Chen et al.'s [54] contract-based method, and Zhu et al.'s [55] payment-based method. With spatiotemporal variation in the physical and SA information, Semiari et al. [56] proposed a self-organizing algorithm to match SUs and spectral resources.
Summary: Although previous schemes have considered asynchronous user request and spatiotemporal variation in physical and SA information to optimize the network for improve throughput and spectral efficiency etc., but they only consider SU updates [45][46] and incentive [52]- [56], and content caching [47]- [51]. In other words, they did not consider one D2MD process time and guaranteeing the QoE of VRUs, so they did not need to decide when to begin a D2MD process. Actually, D2MD is possible even if VRU arrival at different times. Thus, in this paper, we design an optimal stop waiting rule, the ISU actively begins a SA-D2MD process over a given period based on the QoE demand of VRUs.

System Model
In this paper, we consider a scenario involving the distribution of a popular video within the BS cell, as shown in Fig. 1. A large video is cached in the BS and SUs. A large number of VRUs initiate requests for it. To guarantee the QoE of the VRUs, we assume that its VLD threshold is .
The BS is the central control unit of this system, and many users are covered in its range. The BS obtains the physical and SA information for all of them. The physical information is obtained from measurement reports, and SA information is obtained and calculated from online social networks, such as QQ and WeChat, and/or offline social networks such as user contact history. We assume the long-term VRU arriving and SS between VRU and SU are stable. The BS divides users that it covers into two classes. Multicast candidate user (MCU): These VRUs are matched with ISUs. They wait for the ISUs to identify the optimal MMU set.
When the ISUs become ASUs, the MCUs turn into MMUs. When the MCUs are leave the ISUs or ASUs, they turn into BSUs.
Based on the SUs, the BS divides all users as clusters, where each cluster contains only one SU and many VRUs. Each group contains an ISU/ASU and some MCUs/MMUs.
Common symbols and definitions in the paper are shown in Table 1, unless otherwise specified. Path loss exponent.
The normalized physical distance between ISU and VRU , and .
The waiting threshold of the user. It is discrete, the length of a time slot is .
System time. When at least one ISU is selected by the BS, the system time begins timekeeping. It is used to describe the state of the entire system in terms of time.
ISU time. When at least one VRU is matched with the ISU, the ISU time begins timekeeping.
The ISU set. The ASU set. The VRU set.
The new come VRU set, and the new come VRU set of ISU is denoted by , and assuming [57]. The MCU set, and the MCU set of ISU is denoted by , the element of it is denoted by .
The set at system time .
The expectation. The variance.
The multicast data rate of D2MD depends on the user with the worst SNR in the MCU set. As follow as [57], we denote [57] (1) And we denote . Hence, the multicast data rate of ISU is (2) For SS, it means a period when ISU p and VRU q are near each other, i.e., the VRU has available transmission time within the physical distance constraint between ISU's in the D2D, which is a common assumption [57]. We know that (3) (4) Further, we define the remaining available transmission time and VLD for MCU at ISU are and . Clearly, Fig. 2 shows that some MCUs are waiting for the ISU to multicast the video to them. In Fig. 2, the green faces represent MCUs that are waiting; some of them are new. Moreover, a deeper color represents a higher SNR. When an MCU leaves, it is represented by a white face in Fig. 2.  (7) the average amount of data transmission (AADT) of ISU when the first VRU arrives and the last MMU leaves.
The AADT of the entire system can be calculated further. However, as the AADT of the entire system is a fixed value at the given system time, to describe the change of amount of data transmission directly, we have Definition 2: We call (8) the increment of the total amount of data transmission of all ISUs at system time .

Problem Description
The goal of this paper is to use physical and SS information of ISUs and VRUs to maximize the AADT of D2MD while guarantee the QoE of the VRUs. Fig. 3 shows that each ISU has been matched with some MCUs, it has differences in terms of SNR and SS between MCUs.
where indicates (10) We call the matching scheme.
Hence, the optimisation problem of time-varying bipartite graph matching is formulated as However, because the problem is highly coupled in term of time and space, it is difficult to find the optimal solution directly. Thus, in order to solve this problem, we simplify the timevarying bipartite graph matching problem. We decouple it from time and space into two subproblems, and solve them independently to find near-optimal solution. Specifically, when VRU requests the popular video, in terms of space, the BS based on SNR and SS between VRUs and SUs to divide VRUs into different clusters for higher AADT and lower VLD. Once a VRU is matched to a SU, it will not changes utill the VRU away from the SU. Then, in terms of time, after VRUs are matched to SUs, in order to maximize AADT and minimize VLD, each SU need to decide what time it begin a D2MD process. For this, each SU makes a series of AADT threshold based on finite horizon optimal stopping theory.

Subproblem B: Optimal VRU clustering problem
The BS makes the decision to divide VRUs to maximize the AADT of the system in term of space. In other words, the problem is to find to maximize the AADT of clusters while guaranteeing QoE by D2MD. The subproblem is described as follows: (11) s.t.

Subproblem A: Optimal multicast time selection
Each ISU makes the decision to multicast independently to maximize the AADT only in term of time. In other words, determining the value of to maximize the AADT of an ISU while guaranteeing QoE is the problem. Therefore, each ISU decides whether to begin a D2MD transmission process by comparing the AADT estimate value with AADT threshold at present time slot. This subproblem is described as follows: (12) For the convenience of the solution, the optimization in terms of time is first solved, i.e., subproblem A; And then, the optimization in terms of space is solved, i.e., subproblem B.

Finite Horizon Optimal Stopping Theory
Finite horizon optimal stopping theory is used to maximize the expected reward based on a reward function, where the upper bound on the number of stages at which one may stop is known. For example, in the classic house-selling problem, purchasers want to buy a house of which you are the seller. You do not know their bids before they come, but you may assume that the purchasers are independent and identically distributed. You must decide whether to accept an offer by a purchaser or wait for a better one.
Without loss of generality, for finite horizon optimal stopping theory with horizon , reward function is needed for the observer to evaluate the reward function at the th time slot. The reward at the th time slot is . Denote by a random variable to represent from a known distribution. Based on the random series the observer decides whether to stop observing.
The goal of the observer is to find . Hence, the observer needs a threshold series where . Once , the optimal reward is obtaining by the observer [58]. The optimal stopping rule for it has the following form: [59] (13)

Problem Solving Based on Finite Horizon Optimal Stopping Theory
is a finite horizon optimal stopping problem. There always exists an optimal stopping rule for it. Based on finite horizon optimal stopping theory, the reward threshold is pursued. We denote the reward threshold by , and . Hence, should be calculated as follows.
From Definition 1, is the mean value of in the multicast transmission process. Therefore, we tactfully convert the calculation of the multicast transmission process into that of each time slot. For , this is an obvious observation value. It does not need to be calculated. However, for , the calculation of its expectation is complicated. For the sake of simplicity, the AADT is represented as Eq. (14): is called the estimation factor.
We redenote the reward threshold by , and . For , we have (15) Remark 1: Based on the theorem in [60], is calculated by Eq. (16).
Then, the calculation of is converted to calculate . We denote the threshold of by , i.e., .

Lemma 1:
Denoting as the probability density function (PDF) of , we have (18) It follows that .

Proof:
The proof using properties of Beta function. Due to space constraints, we omitted the proof process.

Remark 3:
The SA-D2MD-S is divided into offline and online parts. The basic operation of the offline part is to calculate expectation, and its time complexity can be denoted by . The basic operation of the online part is to calculate the AADT, and its time complexity can be denoted by . Therefore, the overall time complexity of the SA-D2MD-S can be denoted by .

Problem Analysis
For , is assumed to be constant in the given time slot in this paper. Hence, is all we need to consider. For Eq (8), , and are not only functions of , i.e., their values depend on the matching scheme at each time slot, but are also coupled. For instance, relies on the matching results, and relies on and . Hence, is a compound function of , and . This indicates that is a compound implicit function 0-1 integer programming problem. Because the problem is difficult to solve, a heuristic SA-D2MD user matching (SA-D2MD-M) algorithm is given as follows: First, is converted into three problems heuristically, i.e., the inner functions , and are optimized from their independent perspectives. Second, the three problems are analyzed separately, and the rationality of the heuristic conditions of each is given. Third, we propose the heuristic SA-D2MD-M algorithm to weigh the solutions of the three problems above.

Problem Solution
(1) Problem conversion If more ISUs reach the reward threshold, this indicates that more ISUs can become ASUs after matching, and then more are obtained. If VRUs with higher SS are matched with ISUs, it indicates that more can be used after matching. Then, more can also be obtained. If the VRUs are matched with ISUs for higher values of , this indicates that a lower loss of is obtained. Based on the above heuristic conditions, is transferred into three single-objective optimization problems: is used to maximize the ASU set, to maximize the remaining available transmission time of each MCU, and is used to maximize the multicast data rate.
(2) Problems solving (a) : To maximize the ASU set, the matching scheme transfers more ISUs to ASUs.
To describe the difficulties of the problem more clearly and conveniently elaborate our solution, we have the following definition: Definition 5: The ISU that can reach the reward threshold after one-time matching is a feasible ISU (FISU), i.e., .
In this paper, with finite VRUs, the BS gives a higher preference to ISUs that can more easily reach the reward threshold. An ISU can be an FISU, or may not have been decided by whether reach at the present time slot. The gap between them is denoted by (21) Intuitively, the smaller the value of the easier it is for the ISU to reach . Therefore, the matching order prefers the ISU with a smaller .

Remark 4:
When a matching scheme is the theoretical optimum, .

Theorem 2:
The PDF of the multicast data rate is monotonically decreasing with .

Proof:
The proof based on the PDF of . Due to space constraints, we omitted the proof process. Step 4: Sort ISU by in ascending order, and re-label the sorted ISU by

Simulations
In this paper, we built a simulation system based on MATLAB 2017b. The simulation scenario was a single-cell model as shown in Fig. 4. To test the performance of the proposed algorithms, we divided SA-D2MD simulation scenario into two cases. In Fig. 4(a), it contained single-SU and VRUs, SA-D2MD-S algorithm is used only. In Fig. 4(b), it contained multi-SU and VRUs, SA-D2MD-M&S algorithms are used. Each ISU stored one video and all VRUs demanded it. The D2D communication mode was selected a priori for all VRUs. Each ISU was matched with some MCUs. The typical values of basic parameters of the simulation are shown in Table 2 and Table 3. Further, the time slot was set to 300 ms. To make the decline of the QoE of the VRUs controllable, was set to 3000 ms to guarantee that the mean opinion scores (MOS) of all VRUs were equal or greater than 3. For the SA-D2MD-S, we found that had a strong relation with and . The closed form was difficult to express. Thus, we set first and then found a numerical solution instead. We plotted the AADT and VLD of the SA-D2MD-S and SA-D2MD-M&S with different Poisson distribution parameters, expectations, and variances of SS. We plotted the AADT and VLD of the SA-D2MD-M&S with different numbers of ISUs.

Single-SU Scenario
We compared the SA-D2MD-S algorithm with the following algorithms in terms of AADT and VLD: (1) Random waiting D2MD algorithm (RW-D2MD): The ISU obverses the VRUs for random time slots and then began the D2MD transmission process.
(2) Non-waiting D2MD algorithm (NW-D2MD): The ISU began the D2MD transmission process immediately after receiving the request of VRUs.
(3) Socially aware probability select algorithm (SA-PS): The ISU selects a subset of VRUs for the D2MD transmission process based on SS. It means if a VRU has the strongest SS with a ISU, the VRU has the biggest probability be grouped to the ISU.
(4) Socially aware peer discovery algorithm (SA-PD) [62]: The ISU obverses VRUs for some time slots based on the SS between ISU and VRUs, and then began the D2MD transmission process. It means if the ISU which has the strongest SS with its associated VRU set, the ISU has the shortest VLD. The capacity for offloading BS traffic vary at large with the increase in VRU, the strength and difference of SS. In this paper, we verify the AADT of the proposed scheme. Therefore, in Fig. 5, we analyse the performance of our scheme by varying the number of , and . Specifically, Fig. 5(a) plots AADT and shows an vary trend with increase in for all the schemes. It is obvious, as with increase in the AADT increase. We note that our scheme increase in leads to higher AADT than NW-D2MD, SA-D2MD and RW-D2MD because our scheme can wait for more VRUs. Moreover, our scheme can wait for VRUs which have stronger SS that leads our scheme higher than SD-PS. In additional, our scheme can avoid the VRU which have stronger SS away, thus, our scheme 24.2% higher AADT than SA-PD. Fig.  5(b) plots AADT and shows an increasing trend with increase in for all the schemes. As increase, the AADT of our scheme higher than RW-D2MD and NW-D2MD 53.6% and 4.1% respectively. This is mainly due to our scheme play the role of SS, the VRUs which have strong SS can be waited for. But, it is interesting to note that, when gets big enough, the AADT of our scheme and NW-D2MD are much the same. That is because our scheme incurred the more VRUs are grouped, the higher probability of poor SNR is accessed. Therefore, the effect of our scheme on offloading BS traffic is reduced. Moreover, our scheme better than SA-PS and SA-PD that is because our scheme can wait for VRUs with better SNR, i.e., they don't make the multicast SNR get worse. From Fig. 5(c), it is evident that, the AADT of all scheme get worse with increased. This can be explained as, with the increase in , the difference of SS gets bigger. This makes the time they leave the ASU very different, this means multicast advantage will decline as the number of VRU decreases until it degenerates into unicast. In spite of this, because our scheme can group VRUs which have higher SNR with the ASU, thus, our scheme has the best AADT of all. As shown in the Fig.  5(c), our scheme is 78.4%, 34.9%, 74.7%, and 37.6% higher than the others, respectively.

VLD
VLD is the cost of optimization of this paper. As shown in Fig. 6, the VLD of SA-D2MD-S exceeded those of all other algorithms except RA-D2MD. Fig. 6. The VLD with key parameters increased of SA-D2MD-S In Fig. 6, we analyse the cost of our scheme by varying the number of , and . Specifically, Fig. 6(a) depicts the increasing trend of VLD as increase in . That is because the more VRUs will have higher probability to incur worse SNR, thus, the ISU will cost more time to find better VRUs to reach the reward threshold. Fig. 6(b) plots the relation between VLD and . For the proposed scheme, the VLD increases slowly with the increase in due to the fact that, if a VRU has poor SNR and high SS with the ISU, instead of increasing rewards, it reduces them. Then as continues to increase, the benefits ISU gets from SS outweigh the aforementioned costs, hence, the VLD decrease. Fig. 6(c) plots the relation between VLD and . It is evident that, the VLD increase gradually. This can be explained as, because the end time of a D2MD process depends on the last VRU to leave, hence, with the increase in , more VRUs are leaving too soon. This makes ASU multicast to a very small number of VRUs for a longer period of time, even unicast. ISUs try to avoid the above situation, so it costs longer VLD to find VRUs which have higher SNR and stronger SS.

Multi-SU Scenario
We compared the SA-D2MD-M&S algorithm with following algorithms in terms of AADT and VLD after user grouping.
(5) PD-D2MD + SA-D2MD-S: The VRUs were matched to the ISUs based on PD-D2MD. The ISUs then began the D2MD transmission processes based on the SA-D2MD-S.

AADT
The maximization of AADT was the object of optimization in this paper. As shown in Fig. 7, the AADT using SA-D2MD-M&S nearly always exceeded those of other algorithms. We further analyse the AADT of our scheme by varying the number of , , and . The capacity for offloading BS traffic also vary at large with the increase in SU. As increased, when , the AADT using SA-D2MD-M&S exceeded all algorithms. This is because there are more ISUs are provided to the VRUs, and SA-D2MD-M can match better access options for the VRUs from a spatial perspective. As shown in Fig.   7(a), when , the AADT using SA-D2MD-M&S was higher than other algorithms by 5.5%, 1.7%, 15.4%, 14.3%, and 1.9% respectively. Changes in , and are similar to those in Section 6.1.1 and will not be repeated here.

VLD
The VLD was the cost of optimization of this paper. As shown in Fig. 8, the VLD of SA-D2MD-M&S exceeded those of the other algorithms except for PD-D2MD + SA-D2MD-S. . It also vary at large with the increase in SU. As increased, the VLD using SA-D2MD-M&S gradual decline. We note that our scheme increase in leads to lower VLD than PD-D2MD + SA-D2MD-S. This is because SA-D2MD-M match order prefers the ISU with a smaller , and make the ISU transfer to ASU faster. As shown in Fig. 8(a), when , the VLD using SA-D2MD-M&S was lower than PD-D2MD + SA-D2MD-S by 6.3%. Changes in , and are similar to those in Section 6.1.2 and will not be repeated here.

Conclusion
A method for offloading BS traffic while distributing popular videos and guaranteeing the QoE for asynchronous user requests was proposed in this paper, we designed a user grouping scheme to match ISUs and VRUs in BS-assisted D2MD by exploiting SS and the VLD-tolerant property of VRUs. We formulated a time-varying bipartite graph-matching problem to maximizing the AADT while guaranteeing the QoE of the VRUs. Based on the system model, the problem was decoupled into two subproblems. For the first subproblem, we proposed the SA-D2MD-S algorithm to obtain a higher AADT. Finite horizon optimal stopping theory was used to select the MMU set for the ISU. For the second subproblem, an optimization problem was proposed to maximize the AADT of the ISUs. A heuristic SA-D2MD-M algorithm was proposed to solve it. The results of simulations showed that compared with other user matching algorithms, the SA-D2MD-S and SA-D2MD-M&S algorithms exhibited advantages in terms of AADT while guaranteeing low VLD.
However, because we assume the long-term VRU arriving and SS between VRU and SU are stable. It is not fit for sudden changes in VRU arriving and SS such as emergency communications. Hence, in future work, for network optimization in real time, other methods will be introduced, such as reinforcement learning. To further offload BS traffic, social altruism will be considered, and an incentive mechanism will be studied for SU selection and the update of D2MD video distribution. To further extend the application scenarios of this scheme, more business features can be considered, such as multiple videos and varying popularity.