How to apply for a patent for an algorithm, the main difference between patent writing and paper is

According to the Patent Law: Article 25 No patent right shall be granted for the following items: (1) Scientific discovery; (2) rules and methods of intellectual activities; (3) Methods of diagnosis and treatment of diseases; (4) Species of animals and plants; (5) substances obtained by nuclear transformation; (six) the design of the pattern, color or the combination of the two. The production method of the products listed in Item (4) of the preceding paragraph may be granted a patent right in accordance with the provisions of this Law; Algorithms should belong to the rules and methods of intellectual activities and cannot be patented. 2. If it is software programming, you can try software copyright. 3. The algorithm itself cannot be patented, but it may be put into the entity. For example, hardware A receives the signal and then transmits it to hardware B, and hardware B calculates a value and sends it to hardware C.. . Wait, you can check some patents in your field yourself and have a look.