Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Are ordered hashes useful?
- Date: Tue, 15 Feb 2011 11:59:39 +0900
- From: Raymond Wan <rwan.kyoto@example.com>
- Subject: Re: [tlug] Are ordered hashes useful?
- References: <4D4E75AB.5060703@example.com> <4D4FB368.4010403@example.com> <AANLkTimk8AUJMRiwbPjGfDfciCwfaQr9_o3vBXtW2+rW@example.com> <87lj1rza76.fsf@example.com> <AANLkTikqy8G6G1Pt3ramSqxKHKJHSpo=zjHYLVENW0Gb@example.com> <878vxqyfok.fsf@example.com> <AANLkTiknPv3VsKzKQVxMacFE9i9aSSmwXDU4Fz+rZU3g@example.com> <AANLkTi=-0DXwOzc4yOriXptsvXkNZGh71Jgm=Rzu_2tW@example.com> <87y65iqchr.fsf@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11
On 15/02/11 11:04, Stephen J. Turnbull wrote:Marty Pauley writes: > On Sat, Feb 12, 2011 at 3:42 PM, Jun-Dai Bates-Kobashigawa > <jd.lists@example.com> wrote: > > > > Then there are cases where you want a data structure that provides both > > dictionary access and ordered list access. > > That data structure is called a "tree". It's very common. Not to mention highly elaborated. But it's not clear that dictionary order and ordered-list order are the same. For example, on python-dev the killer reason (ie, one that cannot be implemented with existing constructs) for requesting ordered dictionary was not for user use, but rather for implementing an optimization in function calls....Yes, I don't agree that dictionary order and ordered list are the same. Ordered list access could be provided by a tree, but to enable dictionary access, you either need to augment the tree with a hash table or build two trees in parallel.I doubt one data structure can provide access to data in two ways. I suppose you could (say) combine a tree and a hash table and then give it a new name (i.e. hashtable-tree) and then make it a primitive or library in some language. IMHO, that's "kind" of cheating. Associative lists are primitives in languages like Perl and Python, but underneath it all, a lot has to be done (and ironically, probably in C/C++).If I'm not mistaken, Stephen's original query was whether an ordered hashing is useful. I presumed this meant the underlying algorithm or data structure and somewhat language/library/API-neutral.Ray
- Follow-Ups:
- Re: [tlug] Are ordered hashes useful?
- From: Marty Pauley
- References:
- [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Dave M G
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Raymond Wan
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Stephen J. Turnbull
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Jun-Dai Bates-Kobashigawa
- Re: [tlug] Are ordered hashes useful?
- From: Marty Pauley
- Re: [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Are ordered hashes useful?
- Next by Date: Re: [tlug] Ubuntu server, Windows 7 client, and the firewall between them
- Previous by thread: Re: [tlug] Are ordered hashes useful?
- Next by thread: Re: [tlug] Are ordered hashes useful?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links