Extending a boolean function to a finite field

225 Views Asked by At

Let $f:\{1,2,\ldots,n\}\to\{-1,1\}$ be a boolean function. Can I extend $f$ to a polynomial of degree at most $n$ over $\mathbb{F}_q$, where $q\in[n,2n]$ is a prime number. i.e., is there a polynomial $p:\mathbb{F}_q\to\mathbb{F}_q$ such that $\deg(p)\leq n$ and for all $x\in\{1,2,\ldots,n\}$ holds $$p(x)=f(x)$$ where $p(x)$ can take other values than $-1,1$ for $x\not\in \{1,2,\ldots,n\}$

1

There are 1 best solutions below

0
On BEST ANSWER

As $q>n$ you can use Lagrange interpolation polynomials.