static and dynamic cost range comparison