Research Article

A New Integrated Approach for Cloud Service Composition and Sharing Using a Hybrid Algorithm

Algorithm 1

Input: Data, n, m, Q, Attributes
Output: Pbest
For (i = 1 To n)
 Consumer List ⟵
 Random Services chosen (Dataset, m)
 Data set ⟵ Delete Services (Candidate List)
 For (j = 1 To m)
  For (q = 1 To Q)
   Workflow [i, j, k]
     = Return QoS Value
(Consumer List [j, K])
End
End
Graph ⟵ Graph Building (Workflow);
Graph ⟵ Normalization (Graph)
[Pbest. Pbestcost] ⟵ GACS (Graph, Parameters);
// Algorithm (4)
Return (Pbest. Pbestcost)