Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6347

Re: STL list or map?

From "MikeP" <mp011011@some.org>
Newsgroups comp.lang.c++
Subject Re: STL list or map?
Date 2011-06-07 07:00 -0500
Organization A noiseless patient Spider
Message-ID <isl3te$415$2@dont-email.me> (permalink)
References (6 earlier) <isiu6f$skn$1@dont-email.me> <fc752a46-3c36-499c-a78a-9fcb8d241adc@c20g2000vbv.googlegroups.com> <isjk25$j77$1@dont-email.me> <f1eb769e-3973-4654-b16f-f86fe0ee1b87@z7g2000prh.googlegroups.com> <a314c2c9-2ac9-4c94-8c6a-b78bca13a698@c26g2000vbq.googlegroups.com>

Show all headers | View raw


Michael Doubez wrote:
> On 7 juin, 00:33, Joshua Maurice <joshuamaur...@gmail.com> wrote:
>> On Jun 6, 3:22 pm, "MikeP" <mp011...@some.org> wrote:
>>
>>> Michael Doubez wrote:
>>>> I strongly disagree. The concern of a container is to provide a
>>>> storage with complexity guarantees related to access/insertion/
>>>> suppression of data
>>
>>> There you go with the Big O stuff again. The concept of "queue" is
>>> orthogonal to the language lawyer stuff.
>>
>> If that's what you really think, you should not be a programmer. You
>> need to go back to school. "Big O" talk is /not/ language lawyering.
>>
>> The defining characteristics of a container are its methods and
>> contracts (if any) of insert, removal, finding, and iteration, and
>> the time and space complexity to do those operations.
>>
>> You don't need to use any of the containers except for a singly
>> linked list and linear search. There is a reason why that isn't done
>> in practice, and the answer is precisely Big O.
>
> Re-reading the thread, I think I understand the misunderstanding. At
> one point, we have lost the context of the OP which question directly
> related to performances.
>
> AFAIS, MikeP's comment was just to choose the right abstraction
> related to the problem and not a specific implementation (MikeP,
> correct me if I have misread your answer).

I made the mistake of getting sucked into this "discussion". I should 
have just made one post and then shut up.

> And thus, this "go back to
> the basic"; with the corollary of not basing a decision on the
> complexity guarantees.
>
> This is generally good advice but, from an engineering point of view,
> this is  debatable :)
>
> Still, the list vs queue doesn't make sense IMNSHO.

Where did you (not) learn the material from? What is keeping your mind 
from extracting the simple concepts from your paradigmic thought. Ah! 
That's it: it's your PARADIGM! 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

STL list or map? mrc2323@cox.net (Mike Copeland) - 2011-05-29 11:58 -0700
  Re: STL list or map? Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-05-29 21:37 +0200
    Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 03:52 -0500
      Re: STL list or map? Ian Collins <ian-news@hotmail.com> - 2011-06-06 21:07 +1200
        Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 05:36 -0500
          Re: STL list or map? Ian Collins <ian-news@hotmail.com> - 2011-06-07 09:53 +1200
            Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 17:38 -0500
  Re: STL list or map? Rune Allnor <allnor@tele.ntnu.no> - 2011-05-29 23:32 -0700
    Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 03:55 -0500
      Re: STL list or map? Rune Allnor <allnor@tele.ntnu.no> - 2011-06-06 02:08 -0700
        Re: STL list or map? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2011-06-06 12:23 +0200
          Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 05:44 -0500
            Re: STL list or map? Rune Allnor <allnor@tele.ntnu.no> - 2011-06-06 04:23 -0700
              Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 09:06 -0500
                Re: STL list or map? Michael Doubez <michael.doubez@free.fr> - 2011-06-06 08:29 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 11:10 -0500
                Re: STL list or map? Michael Doubez <michael.doubez@free.fr> - 2011-06-06 14:37 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 17:22 -0500
                Re: STL list or map? Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-06 15:33 -0700
                Re: STL list or map? Michael Doubez <michael.doubez@free.fr> - 2011-06-07 01:28 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-07 07:00 -0500
                Re: STL list or map? Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-07 14:50 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-07 06:56 -0500
                Re: STL list or map? Michael Doubez <michael.doubez@free.fr> - 2011-06-07 00:58 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-07 06:52 -0500
                Re: STL list or map? "io_x" <a@b.c.invalid> - 2011-06-06 18:20 +0200
                Re: STL list or map? "io_x" <a@b.c.invalid> - 2011-06-07 18:10 +0200
                Re: STL list or map? Keith H Duggar <duggar@alum.mit.edu> - 2011-06-06 09:29 -0700
                Re: STL list or map? "MikeP" <mp011011@some.org> - 2011-06-06 12:42 -0500
  Re: STL list or map? Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-30 00:19 -0700
  Re: STL list or map? Michael Doubez <michael.doubez@free.fr> - 2011-05-30 01:02 -0700
  Re: STL list or map? Juha Nieminen <nospam@thanks.invalid> - 2011-05-30 11:43 +0000
    Re: STL list or map? mrc2323@cox.net (Mike Copeland) - 2011-05-30 14:07 -0700
      Re: STL list or map? Jeff Flinn <TriumphSprint2000@hotmail.com> - 2011-05-31 08:37 -0400
  Re: STL list or map? "K. Frank" <kfrank29.c@gmail.com> - 2011-06-06 17:58 -0700

csiph-web