if (user task is time sensitive)
 select nodes with quickest speed, execute the above tasks, such that ;
else
 Select nodes with lowest cost, execute the above tasks, such that ;
Pseudocode 1