Comment by j2kun
6 months ago
Comparisons can be implemented by approximating a < b with
0.5 * (sign(a - b) + 1)
And the sign function can be approximated by a polynomial that uses only additions and multiplications and products with constants.
Other FHE schemes have support for small-bitwidth lookup tables that makes supporting comparison more direct.
No comments yet
Contribute on Hacker News ↗