Suppose that we have a list with the processing time of some tasks,like this [13,8,7,6,4,2,2,1]. we want to divide this list into two list by LPT Scheduling Algorithm.here is the algorithm procedure:
with a given Descending sorted list like above,at fist we put the largest element(first element in the sorted list) into list1 and then we put second element into list2. then we insert the next element into one of two list ,with smaller sum of elements. and we do this job until all elements in the initial list will get divided between two list.
for example for the mentioned list, two lists will be [13,6,2,1],[8,7,4,2](we see that the element 7 has inserted into second list because ListSum([13]>ListSum([8]) and then because of ListSum([13])