Can data structures and algorithms be patented?

It depends on whether the technical scheme can be combined with hardware. If it is a simple algorithm, it is intellectual activity. If it runs through a computer and solves some technical problems, then you can apply for a patent. However, the writing of software patents has its particularity, which corresponds to the module or unit of method steps and devices.