Attribute reduction algorithm of rough sets based on spatial optimization