I don't think it would be considered any sort of derivative work. Consider recipes (and other published algorithms). Cooked dishes are not considered a derivative of the recipe, and those are step by step instructions for creating the thing in question. Codes are one step further removed in that they give tolerances and the like, so they don't even describe an object. If I write, "You should not use md5 to store passwords." it's not like all programs storing passwords with bcrypt written by people who have read that sentence are derivatives of my copyrighted work.
In the US, recipes that are not just a list of ingredients, which would be most recipes, are covered by copyright.[0]
"Copyright protection may, however, extend to substantial literary expression—a description, explanation, or illustration, for example—that accompanies a recipe or formula or to a combination of recipes, as in a cookbook."
Note that 'substantial' here doesn't mean it needs to be novella length. A simple description of the steps involved would be enough.
My understanding was that in Publications International, Ltd. v. Meredith Corp [0] the ruling came down fairly heavily on the side of recipes (including directions) being outside the domain of copyright. In that case a substantial number of recipes were copied out of a book and published elsewhere, but the court ruling stated:
“[The] recipes’ directions for preparing the assorted dishes fall squarely within the class of subject matter specifically excluded from copyright protection by 17 U.S.C. § 102(b).”
IANAL etc. Just curious if you have heard otherwise?