Back

Swapping two blocks of memory inside a larger block, in constant memory

17 points4 daysdevblogs.microsoft.com
praptak48 minutes ago

I think this was discussed in Jon Bentley "programming pearls"?

Also in the same book it was mentioned that the disjoint cycles method (also mentioned in the article) was worse for paging/caching than the three reverses method.