My question is very similar to this onethis one, but I'm curious about algorithms. The accepted answer states that:
Mathematical equations are not normally considered subject to plagiarism ...
I am wondering if the same would apply to algorithms. I think they are very similar to equations, except for the use of sentences (in the case of pseudo code). If it is made clear where the algorithm came from, would it be ok to copy?