This document discusses advanced computational lithography techniques using flexible mask optimization (FMO). It begins with an introduction to lithography and why FMO is useful. It then describes the FMO methodology and tests conducted to demonstrate its advantages. The tests showed FMO can selectively apply advanced optical proximity correction in localized hotspots to enhance the process window while reducing mask complexity and turnaround time. FMO was able to fix defects without introducing new errors at boundaries.