Tag Dynamic Programming – I