Exact Dynamic Programming for Solow--Polasky Diversity Subset Selection on Lines and Staircases (ArXiv cs.DS Recent Papers, 2026)