Research Article

Picture Preview Generation for Interactive Educational Resources

Algorithm 4

GetOperateList (E, DR, elementToPri).
Input:
elements set E; dependencies set DR; elements to priorities mapping elementToPri
Output:
operateList
(1)fordo
(2)  
(3)end for
(4)array operateList by elementToPri from high to low
(5)fordo
(6)  if
(7)   if
(8)    fordo
(9)      put
(10)    end for
(11)    put
(12)   end if
(13)  end if
(14)end for
(15)for do
(16)if is a button
(17)   array operateList by from low to high
(18)   array operateList by from low to high
(19)end if
(20)end for
(21)return operateList