Algorithms require hardware to run on, so they'll have all their assets drained away from them in the former of rent to the landlord, that is, the person who owns the hardware they run on.
I think the question here is whether there are advantages to making algorithms legal entities similar to our other communal legal entities. It's a radical idea, but so is UBI and some other suggestions for mitigating the obsolescence of many human being as a result of automation.