<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://stacky.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Projective_set_experiments</id>
	<title>Projective set experiments - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stacky.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Projective_set_experiments"/>
	<link rel="alternate" type="text/html" href="https://stacky.net/wiki/index.php?title=Projective_set_experiments&amp;action=history"/>
	<updated>2026-11-26T08:18:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://stacky.net/wiki/index.php?title=Projective_set_experiments&amp;diff=551&amp;oldid=prev</id>
		<title>Anton: Created page with &quot;Question: how many points in $\mathbb P_{\mathbb F_2}^n$ are needed to touch all lines? It can be done with $2^n-1$ points (take the hyperplane at infinity), and requires at leas...&quot;</title>
		<link rel="alternate" type="text/html" href="https://stacky.net/wiki/index.php?title=Projective_set_experiments&amp;diff=551&amp;oldid=prev"/>
		<updated>2011-10-19T20:36:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Question: how many points in $\mathbb P_{\mathbb F_2}^n$ are needed to touch all lines? It can be done with $2^n-1$ points (take the hyperplane at infinity), and requires at leas...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Question: how many points in $\mathbb P_{\mathbb F_2}^n$ are needed to touch all lines? It can be done with $2^n-1$ points (take the hyperplane at infinity), and requires at least $\frac 13(2^{n+1}-1)$ points (dividing total number of lines by number of lines through a point).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import random&lt;br /&gt;
&lt;br /&gt;
def setup( dim ):&lt;br /&gt;
    points = [[0],[1]]&lt;br /&gt;
    i = dim&lt;br /&gt;
    while i&amp;gt;0:&lt;br /&gt;
        points = [x+[0] for x in points] + [x+[1] for x in points]&lt;br /&gt;
        i-=1&lt;br /&gt;
    points = [tuple(x) for x in points]&lt;br /&gt;
    points.remove(tuple([0]*(dim+1)))&lt;br /&gt;
    lines = set([tuple(sorted([a,b,tuple([a[i]^b[i] for i in range(len(a))])])) for a in points for b in points if b!=a])&lt;br /&gt;
    return (points, lines)&lt;br /&gt;
&lt;br /&gt;
def search( dim ):&lt;br /&gt;
    points, lines = setup(dim)&lt;br /&gt;
    size = 2**dim - 1&lt;br /&gt;
    found = False&lt;br /&gt;
    print &amp;quot;looking for size&amp;quot;,size&lt;br /&gt;
    while True:&lt;br /&gt;
        S = random.sample(points,size)&lt;br /&gt;
        found = True&lt;br /&gt;
        for L in lines:&lt;br /&gt;
            if len([p for p in L if p in S])==0: # S misses L&lt;br /&gt;
                found = False&lt;br /&gt;
                break&lt;br /&gt;
        if found:&lt;br /&gt;
            print size, S&lt;br /&gt;
            size-=1&lt;br /&gt;
&lt;br /&gt;
def build( dim ):&lt;br /&gt;
    S=[]&lt;br /&gt;
    points, lines = setup(dim)&lt;br /&gt;
    for L in lines:&lt;br /&gt;
        if len([p for p in L if p in S])==0: # S misses L&lt;br /&gt;
            S.append(random.choice(L))&lt;br /&gt;
    return len(S), S&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anton</name></author>
	</entry>
</feed>