It is highly likely you will need to write one of those algorithms in the HSC. It will, however, will not be in isolation. When you are asked to write one of those algorithms, it will have to be incorporated in the solution of a much larger problem. Also, I don't think you need to learn them off...