Physarum polycepholum is good at solving maze and finding shortest path, but how a brainless acellular creature manage to do such things? We use current reinforced random walk inspired by slime mold and ants to solve shortest path problems and network formation. (Code for the simulation is available here.)