Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.74 KB

File metadata and controls

52 lines (40 loc) · 1.74 KB

Multilinear-Polynomial-Extension-MLE

Compute the Multilinear Polynomial Extension (MLE) of your function based on your inputs

What is Multilinear Polynomial Extension (MLE)

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 $\tilde{Z}$ : Fm → F . It can be computed as follows:

Screen Shot 2023-02-04 at 5 14 53 PM

How to Run

python3 multilinearPolynomial.py

Example

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 ( $\tilde{f}$ ) of function f based on x1 = 2 and x2 = 3:

Please specify the group order:

  1. 5
    Please enter your inputs, then type "end" when you're done:
  2. 1
  3. 2
  4. 1
  5. 4
  6. end
    Your multilinear polynomial extension has 2 inputs.
    Please enter your inputs for your multilinear polynomial extension:
  7. 2
  8. 3
    Final result: 16
    16 mod 5 = 1

$\tilde{f}$ is the Multilinear Polynomial Extension of function f based on different inputs over F5:

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

Support

Reach out to me at riasiarman@yahoo.com