1. A method of performing photo-mask correction, comprising: identifying a hot-spot in a photo-mask that violates one or more predefined rules; creating a window area in said photo-mask surrounding said hot spot; categorizing said window area; selecting a local solution, from a library of pre-computed solutions, based upon said category of said window area; and applying said local solution to said hot spot.