GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Sep-2003, 03:34
goathens goathens is offline
New Member
 
Join Date: Sep 2003
Posts: 1
goathens is an unknown quantity at this point
Question

finding time efficiency of STL


I'm trying to find the time and space complexity/efficiency, "big O" for STL classes and their members.

does anybody know of a proper reference wheer i can find this information?
  #2  
Old 28-Sep-2003, 18:41
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
Crikey,

that's going back a bit. I'm sure Dietel & Dietel C++ has it somewhere. Lemme see if I can remember, stack & queue & set & vector O(n), tree O(n^1/2), depends on it being sorted really.

Essentially, if it's a linear search, like stepping though each element of an unsorted list (like stack, queue, set), it's O(n), if it's sorted (tree) & you're using binary search, it's O(n^1/2).

GF
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Size and maybe download time BobbyDouglas MySQL / PHP Forum 5 08-Nov-2003 01:18
Selecting from 2 tables at the same time soviet MySQL / PHP Forum 2 08-Nov-2003 00:15
ambiguity in time field zuzupus MySQL / PHP Forum 9 28-Jul-2003 09:40
time Problem zuzupus MySQL / PHP Forum 9 24-Jul-2003 08:02
The Google update this time... JdS Search Engine Optimization Forum 5 04-Jun-2003 16:25

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:40.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.