algorithms to src