Given a group $G$, the sumset of two sets $A,B$ is denoted as $A+B = \{a+b:a\in A,b\in B\}$. We say $A$ injects $B$, if $A+B$ has no multiplicities, i.e. $|A+B| = |A||B|$. We let $I(B) = \max \{|A|:A \text{ injects } B\}$ . For practically, let's say $G$ is integer addition modulo $N$.
Given a set $B$, can we determine $I(B)$ in time polynomial in $N$?