Finish k-map by category