|
Algorithm 1: Incentive algorithm for delay-constrained data query and feedback. |
-
1:
When User i meets User j, User i updates his or her , and and creates his or her candidate query, reply and feedback lists, i.e., , and .
-
2:
if User i is the data provider for query q in
then
-
3:
replies to the query and gives back to User j;
-
4:
;
-
5:
;
-
6:
else if User i is the query issuer for reply in
then
-
7:
pays a number of credits to User j;
-
8:
else if User i is the receiver for feedback f in
then
-
9:
pays a number of credits to User j;
-
10:
end if
-
11:
Users i and j exchange queries, replies and feedbacks pair by pair according to the Nash bargaining solution.
|