“…All-optical processing has many applications, such as wavelength conversation, add-drop multiplexing, regeneration clock recovery, simple bit-pattern recognition, address recognition, signal processing, and packet synchronization [1][2][3]. Subtraction is one of the most important operations in Boolean functions and is used in binary subtraction, binary counting, arithmetic logic units, encryption, and decryption in security networks.…”