Does algorithm engineer have to have a patent?

Not necessarily. Having a patent can bring advantages to algorithm engineer, but it is not necessary for algorithm engineer's career development. Having a patent can prove that a person has unique innovative thinking and technical ability in this field, and obtaining a patent will also bring a certain reputation and return to the individual, but having a patent is not the only way to become an excellent algorithm engineer.