I'm not sure if CS SE is the right place for this question, but since originally this question was in the CS area (and I translated it to a mathematical form), I will post it here.
I am given two parameters $m\in\mathbb{N}$ and $\frac{1}{2}< p\le 1$, and I want to find the maximal value $k\in \mathbb{N}$, such that there are $A_1,\dots,A_k\subseteq [m]$ for $[m]=\{1,\dots,m\}$ and, we have the two following properties:
- For every $1\le i\le k$, we have $|A_i| \ge p\cdot m$
- For every $i\neq j$, we have $|A_i\cap A_j|\le (1-p)\cdot m$
Essentially, I'm trying to find the maximal number of sets with size $p\cdot m$, who are $c$-far from being distinct in pairs, where $c:=(1-p)\cdot m$.
Equivalently, I'm interested in finding for every $k$ what is the highest $p$ with this property.
My attempt
I tried to think of an approach similar to one where $p=1$, and the sets would be completely disjoint, therefore every $A_i$ would add an additional $p\cdot m$ new elements, and thus $k=\frac{m}{p\cdot m}=\frac{1}{p}$. But this approach didn't work for me, since even if I say each set adds an additional $p\cdot m - (1-p) \cdot m = (2p-1)\cdot m$ new elements to every other set, I can't guarantee those elements are not in other sets.
Some (additional) thoughts
After thinking additionally a bit, I think that one thing that would suffice for me is to show that the solution doesn't depend on $m$.
This is because in my usage of this problem, I actually try to find a $k$ such that this property won't hold, and I can choose my $k$ to be arbitrarily large but it would also increase $m$ arbitrarily. So - if the solution here won't depend on $m$, I don't need to worry about increasing $m$ arbitrarily.