Research Article
Reputation Revision Method for Selecting Cloud Services Based on Prior Knowledge and a Market Mechanism
Algorithm 1
Trading between buyers and sellers.
(1) buyer = ; //the buyer’s set | (2) seller_service = ; //the service provider’s | (3) services comprise the seller’s set. | (4) maxProfitofBuyer = 0; //buyer pursues their best | interests | (5) maxReputationRepay = ; //the seller | (6) receives a high payoff from the buyer, which forms | a set | (7) for to | (8) for to do | (9) if has used | (10) RS[] = the rating provided by for ; | (11) //collect the | ratings | (12) else RS[] = null; | (13) end if | (14) end for | (15) end for | (16) for to | (17) for to do | (18) RS[] = comput_reputation (RS[, ]); | (19) //compute service ’s | reputation | (20) end for | (21) end for | (22) if same_function(service_set) //service_set includes | (23) //several services with the same function | (24) compare(maxProfitofBuyer, p_b (service_set)); | (25) //return the buyer pursues a better quality service | (26) end if | (27) for to do | (28) _[] = check the recommendation frequency of ; | (29) if | (30) change the service provider to update the | (31) service configuration; | (32) //then after the update, the service will be renewed; | (33) end if | (34) end for |
|