| Algorithm 1. Find minimum-cost path of for collaborative task execution. |
| 1. Input: |
| 2. |
| 3. |
| 4. If then |
| 5. return |
| 6. end if |
| 7. |
| 8. If then |
| 9. return “There is no solution” |
| 10. end if |
| 11. while true do |
| 12. |
| 13. |
| 14. If then |
| 15. return |
| 16. else |
| 17. if then |
| 18. |
| 19. else |
| 20. |
| 21. end If |
| 22. end If |
| 23. end while |
| 24. Output: |