The multilinear polynomial extension (MLE) is a low-degree polynomial extension in which each variable has a degree of at most one.
Given a function Z : {0, 1}m → F , the multilinear extension of Z(·) is the unique multilinear polynomial
python3 multilinearPolynomial.py
Consider function f:
- f:{0,1}2 -> F5 is a function mapping {0,1}2 to the field F5 and f0 = 1, f1 = 2, f2 = 1, f3 = 4:
0 | 1 | |
---|---|---|
0 | 1 | 2 |
1 | 1 | 4 |
For computing the Multilinear Polynomial Extension (
Please specify the group order:
- 5
Please enter your inputs, then type "end" when you're done: - 1
- 2
- 1
- 4
- end
Your multilinear polynomial extension has 2 inputs.
Please enter your inputs for your multilinear polynomial extension: - 2
- 3
Final result: 16
16 mod 5 = 1
0 | 1 | 2 | 3 | 4 | |
---|---|---|---|---|---|
0 | 1 | 2 | 3 | 4 | 0 |
1 | 1 | 4 | 2 | 0 | 3 |
2 | 1 | 1 | 1 | 1 | 1 |
3 | 1 | 3 | 0 | 2 | 4 |
4 | 1 | 0 | 4 | 3 | 2 |
Reach out to me at riasiarman@yahoo.com