You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 2Great answer, the first that says anything definitive about this problem. So the Cantor-like set has n^0.63 1s, which means that the "check all pairs of 1s" algorithm is at least n^1.26 (≫ n log n) in the worst case. The lower bound quoted in Szemeredi's paper (BTW the Moser paper he quotes is available here: books.google.com/books?id=Cvtwu5vVZF4C&pg=PA245 ) seems to actually imply n^(2-o(1)), but we must be slightly careful because there we have numbers drawn from {1,...,n} but here it's the sum of the numbers in the sequence that is n.ShreevatsaR– ShreevatsaR2009-10-18 08:31:53 +00:00Commented Oct 18, 2009 at 8:31
- Er, what exactly is the "Cantor-like" binary sequence that contains n^(log_3 2) 1s in it and no three evenly spaced 1s?ShreevatsaR– ShreevatsaR2009-10-18 08:46:13 +00:00Commented Oct 18, 2009 at 8:46
- Example: 101000101000000000101000101. Its length is 3^n, and has 2^n ones (so n^0.63 density). If you write down the places of 1's in binary, it will be {0,2,20,22,200,202,220,222}. Another possible way to think of it is take a sequence of ones, and continuously remove "middle" ones as in normal Cantor set construction: 111111111 -> 111000111 -> 101000101. The reason why it doesn't contain arithmetic progression is: if x, y, z formed one, then y=(x+z)/2 and x and z differ on some expansion place. Take the most significant one. Say x has 0 and z has 2. Then y must have 1 there. contradiction.sdcvvc– sdcvvc2009-10-18 09:40:15 +00:00Commented Oct 18, 2009 at 9:40
- 3Again, great research! I followed up on the 2008 3SUM paper, and it referred to CLRS Exercise. 30.1-7, after looking at which I got the answer — the O(n log n) algorithm is actually quite simple! (Just squaring a polynomial/generatingfunction.) I've posted the answer below. (Now kicking myself for not having thought of it earlier... simple solutions always elicit that reaction :p)ShreevatsaR– ShreevatsaR2009-10-18 16:36:58 +00:00Commented Oct 18, 2009 at 16:36
- So, the answer to his exam question was something like, "This problem is reducible to the 3-SUM hard problem, and 3-SUM hard has no sub-quadratic solution, so this problem cannot be solved in O(n logn)." Yes?hughdbrown– hughdbrown2009-10-18 18:57:19 +00:00Commented Oct 18, 2009 at 18:57
| Show 3 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you