하자 와 B는 의 부분 집합이 될 { 0 , ... , N } . 우리는 Minkowski 합계 A + B = { a + b | a ∈ A , b ∈ B } .
χ X : { 0 , ... , 2 N } → { 0 , 1 }
하자 f는
때때로 x에 합한 실제 쌍 a ∈ A
O ( n log n ) 에서 감시 기능을 계산할 수 있습니까?
O(nlogn) 시간에 있습니까?
하자 와 B는 의 부분 집합이 될 { 0 , ... , N } . 우리는 Minkowski 합계 A + B = { a + b | a ∈ A , b ∈ B } .
χ X : { 0 , ... , 2 N } → { 0 , 1 }
하자 f는
때때로 x에 합한 실제 쌍 a ∈ A
O ( n log n ) 에서 감시 기능을 계산할 수 있습니까?
O(nlogn) 시간에 있습니까?
답변:
Here I am explaining how to get O(n∗polylogn)
A witness of a value v
Assume v
So, we are done with the case that there is a single witness. So consider the case that v
We are almost done. Compute the above random samples for resolutions i=1,…,⌈lgn⌉
The algorithm: For every value v
Strangely enough, the preprocessing time is O(nlog3n)
Ok, I've been holding off since really Sariel should get credit for an answer, but I'm tired of waiting, so here is my cut at a near-linear randomized algorithm.
This blows up the running time by three logarithmic factors; probably that can be reduced.
This answer gives a determinstic O(n polylogn)
It appears that Sariel and David's algorithm can be derandomized through an approach similar to this paper. [2] While going through the process I found there is a more general problem that implies this result.
The k
k -reconstruction problemThere are hidden sets S1,…,Sn⊂{1,…,m}
S1,…,Sn⊂{1,…,m} , we have two oracles SizeSize and SumSum that take a query set QQ .
- Size(Q)
Size(Q) returns (|S1∩Q|,|S2∩Q|,…,|Sn∩Q|)(|S1∩Q|,|S2∩Q|,…,|Sn∩Q|) , the size of each intersection.- Sum(Q)
Sum(Q) returns (∑s∈S1∩Qs,∑s∈S2∩Qs,…,∑s∈Sn∩Qs)(∑s∈S1∩Qs,∑s∈S2∩Qs,…,∑s∈Sn∩Qs) , the sum of elements in each intersection.The k
k -reconstruction problem asks one to find nn subsets S′1,…,S′nS′1,…,S′n such that S′i⊂SiS′i⊂Si and |S′i|=min(k,|Si|)|S′i|=min(k,|Si|) for all ii .
Let f
Now we can reduce the finding witness problem to 1
Define the polynomials χQ(x)=∑i∈Qxi
The coefficient for xi in χQχB(x) is |Si∩Q| and in IQχB(x) is ∑s∈Si∩Qs. Hence the oracles take O(nlogn) time per call.
This gives us an O(n polylog(n)) time deterministic algorithm.
[1] Yonatan Aumann, Moshe Lewenstein, Noa Lewenstein, Dekel Tsur: Finding witnesses by peeling. ACM Transactions on Algorithms 7(2): 24 (2011)
[2] Noga Alon, Moni Naor: Derandomization, witnesses for Boolean matrix multiplication and construction of perfect hash functions. Algorithmica 16(4-5) (1996)