[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-06-19 Thread sjhowe at dial dot pipex.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 --- Comment #14 from Stephen Howe --- (In reply to Anders Kaseorg from comment #13) > (In reply to Patrick J. LoPresti from comment #12) > > I am familiar with the usual algorithmic complexity definitions. > > > > So, just to be clear... Your as

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-04-06 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 --- Comment #13 from Anders Kaseorg --- (In reply to Patrick J. LoPresti from comment #12) > I am familiar with the usual algorithmic complexity definitions. > > So, just to be clear... Your assertion is that the C++ standards committee > adopte

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-04-06 Thread lopresti at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 --- Comment #12 from Patrick J. LoPresti --- (In reply to Anders Kaseorg from comment #11) > (In reply to Patrick J. LoPresti from comment #10) > > Complexity: Linear on average. > > > > It is not obvious (to me) what distribution the "on averag

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2020-04-05 Thread andersk at mit dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 Anders Kaseorg changed: What|Removed |Added CC||andersk at mit dot edu --- Comment #11

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2015-05-13 Thread lopresti at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968 Patrick J. LoPresti changed: What|Removed |Added CC||lopresti at gmail dot com --- Comm

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2010-01-28 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-01-28 17:16 --- Roger told me in private that he doesn't mean to actively work on this issue any time soon. Unassigning. -- paolo dot carlini at oracle dot com changed: What|Removed |Add

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2009-12-15 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2009-12-15 17:19 --- Roger, are you still actively working on this? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-28 Thread sjhowe at dial dot pipex dot com
--- Comment #7 from sjhowe at dial dot pipex dot com 2008-04-28 20:17 --- Roger I agree with your analysis. I am slightly crestfallen as I was suspicious that Barriato, Hofri etc's paper never mentioned "worst case" only "approximate case". And I have now seen BFPRT73 paper where it m

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-24 Thread bkoz at gcc dot gnu dot org
--- Comment #6 from bkoz at gcc dot gnu dot org 2008-04-24 23:39 --- Can I re-classify this as an enhancement? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-24 Thread roger at eyesopen dot com
--- Comment #5 from roger at eyesopen dot com 2008-04-24 15:01 --- Well, I've now had time to read the Barriato, Hofri et al. 2002 paper, and the bad news is that such an approximate median selection algorithm can't be used to guarantee an O(N) worst-case std::nth_element implementation.

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-21 Thread sjhowe at dial dot pipex dot com
--- Comment #4 from sjhowe at dial dot pipex dot com 2008-04-21 18:51 --- Yes. You want a partition that is O(1) that each time round eliminates N/2 elements (bearing in mind the post-condition for nth_element where iterators greater than the kth iterator have elements that are >= the k

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-21 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2008-04-21 08:24 --- Many thanks Roger for your further help on nth_element, excellent news. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35968

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-20 Thread roger at eyesopen dot com
--- Comment #2 from roger at eyesopen dot com 2008-04-21 03:22 --- Yep, now that we're back in stage1, it's about time I got around to submitting the O(n) worst case nth_element implementation that I mentioned last year. For Steven's benefit, the implementation I've already coded up use

[Bug libstdc++/35968] nth_element fails to meet its complexity requirements

2008-04-20 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2008-04-20 17:30 --- Roger, can you have a look? Thanks in advance. -- pcarlini at suse dot de changed: What|Removed |Added