dac dynamic algorithm