|
Algorithm 2 Preliminary Sorting Mechanism (PSM). |
Input: The application generated by user ; Output: The sequence queue of the sub-tasks in ;
-
1:
Initialize the preliminary sorting set ;
-
2:
for each sub-task in do
-
3:
if
then
-
4:
Adding sub-task into queue ;
-
5:
else if
then
-
6:
Go to line 11;
-
7:
Adding subsequent and sibling sub-tasks of to preliminary sorting set ;
-
8:
Calculate the priority factors for subsequent sub-tasks in set ;
-
9:
Update with descending order of , where ;
-
10:
Update by adding set into queue;
-
11:
return Sequence queue ;
|