Research Article

An Energy-Efficient Strategy and Secure VM Placement Algorithm in Cloud Computing

Algorithm 6

VM type selection.
Input: Task tk, type of task PP, VM-Types, VM sub types.
Output: VM (VM) type.
(1)All VM-types contains VM sub types in sorted order
(2)for each VM sub type VMtypeppi ∈ VMtypePP do
(3) if tk is able to fit in VMtypePPi then
(4)  VM-type ← VMtypeppi
(5)  return VM-type and then stop
(6) end if loop
(7)end for loop