— Chemical-Mechanical Polishing (CMP) is one of the key steps during nanometer VLSI manufacturing process where minimum variation of layout pattern densities is desired. This paper proposes a novel Optimal Maze Routing (OMR) algorithm which optimizes the layout uniformity as well as other routing objectives. The presented routing algorithm is optimal in the sense that it can find routing solutions for nets with minimum wire length, minimum number of vias and minimized layout uniformity-related cost. Experimental results show that compared with a previous routing algorithm, OMR can reduce the total number of vias by up to 24%. Except for the great improvement considering wire length and vias, the proposed routing algorithm also contributes a lot to minimizing the pattern density variation. Since current area fill methods are mostly based on fixed-dissection regime which cannot find the optimal filling solution for all possible floating windows, the proposed routing algorithm mak...