There is a algorithm question which I really can't figure it out. The question may use Dijkstra algorithm.
There is a network of n computers that you will hack to take control. Initially, you have already hacked computer c0 . There are m connections between computers, through which you can use to take down an uncontrolled computer from a hacked one. Each connection is described as a triple (ca ; cb ; t), which means if ca is hacked, then you can successfully hack cb at a cost of t minutes.
A large group of your hacker friends join you in hacking (they are as good as you and as many as the computers in the network). They are all at your command, which means you can assign them hacking tasks on multiple computers simultaneously. Describe an ecient algorithm to determine how many minutes you would need to successfully hack all the computers in the network. State the running time in terms of n,m.