Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

About Collections (Characterist)

 
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

Please somebody help, this table is right? or I miss something? or I Wrong?

Please correct me if I wrong.

Thanks

 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you consider to be the difference between ordered and sorted ? I'm just asking as someone here wanted to know.
 
Milton Ochoa
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will reply
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what "Fast for Access (Iterate)" means. If you use an Iterator, then all these collections and maps are reasonably fast, including LinkedList. It's when you use methods like get(index) or get(key) that speed differences become important - LinkedList has very poor performance when you use get(index). That's the only one that is really bad. Here's how I would modify the table:



In general Good means O(1), Fair means O(log(N)) and Poor means O(N). For example, a LinkedHashMap may be twice as slow as a HashMap, but that rarely matters - it's still notably faster than a TreeMap.

Note that ArrayList and Vector are Good at inserting or deleting at the end, but Poor in general. LinkedList is Good at inserting or deleting from either end, or while using an Iterator. Both are Poor at inserting or deleting from the middle if you aren't using an Iterator.
[ January 23, 2008: Message edited by: Jim Yingst ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic