Research Article
A DAG Scheduling Scheme on Heterogeneous Computing Systems Using Tuple-Based Chemical Reaction Optimization
Algorithm 3
InitTMolecule(InitCCPS) generating the initial population.
(1) InitS = ConvertMole(InitCCPS); | (2) update each in molecule InitS as defined in the last paragraph of Section 5.1.1 | (3) MoleN = 1; | (4) while MoleN ≤ PopSize − 1 do | (5) for each in CCP molecule CCPS | (6) find the first successor Succ() in CCPDAG from to the end; | (7) for each , ∈ (, Succ()) | (8) find the first predecessor Pred() from Succ() to the begin in CCP molecule CCPS; | (9) if Pred() < | (10) interchanged position of and in CCP molecule CCPS; | (11) end if | (12) end for | (13) end for | (14) Generate a new CCP molecule ; | (15) = ConvertMole() | (16) update each in reaction molecule as defined in the last paragraph of Section 5.1.1 | (17) MoleN ← MoleN + 1; | (18) end while |
|