Range-Based Discrepancy Search with Applications to VLSI Design