How much right to I have to copy?
Let's say I need a algorithm in a particular language that needs to perform a particular task. I find such an algorithm on a university web site. As expected, it is about twenty lines of code. I take the algorithm, change one of two input variables, rename the all the internal variables, rearrange the steps, and modify the output. After all this, my algorithm still bears a similarity to the original. Usually there is more than one way to skin a cat, and I'm not sure weather or not this really counts as a second way. I also can't say for sure that there is a second, more distinctive, way. Is this modified code mine? What does one do when they've searched high and low for something more original, and can't find anything practical?