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*
- 2Holy *@!!, these are FRACTALS! If this holds up, it puts an upper bound on the number of 1's, and it's less than O(n).Beta– Beta2009-10-15 18:38:45 +00:00Commented Oct 15, 2009 at 18:38
- fractals, that's a much better term to describe them. Thanksz -– z -2009-10-15 18:51:39 +00:00Commented Oct 15, 2009 at 18:51
- Interesting, these patterns closely resembles Cantor's ternary set (en.wikipedia.org/wiki/Cantor_set). If this is so, then the proportion of ones has to tend to zero...flybywire– flybywire2009-10-15 20:25:12 +00:00Commented Oct 15, 2009 at 20:25
- Is it obvious that the sequences with the maximum number of 1s without triples are directly relevant to the worst-case running time of the algorithm? It is conceivable that you could have strings with lots of 1s but in which you only find the triples very late, as those 1s are in the positions that are examined late by your algorithm.ShreevatsaR– ShreevatsaR2009-10-16 12:28:18 +00:00Commented Oct 16, 2009 at 12:28
- 3My analysis of the number of ones in the strings compared to their overall size seems to indicate that there is a linear relationship between number of ones and size of string, leading me to believe that there is no happy upper bound that lets us say that the number of ones in a string will be at most log(n) for a given string. So the solutions dealing only with the positions of the ones and not the entire string itself are going to be O(n^2), too. Or, more accurately, O(n+m^2), where m is the number of ones in the string, and n is the size of the string, and m is big-theta(n).Welbog– Welbog2009-10-16 14:52:19 +00:00Commented Oct 16, 2009 at 14:52
| Show 1 more comment
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