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 22:21:24 +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> <4D584678.6050501@example.com> <87d3mvs3ni.fsf@example.com> <4D5A53DB.6050402@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 02/15/2011 07:22 PM, Simon Cozens wrote:On 14/02/2011 03:20, Stephen J. Turnbull wrote:But most of the examples you give there (eg, histogram) are really special cases of dictionary.No, I don't think so, and this is the point. Dictionaries define a transformation between list A and list B. If you want to be pedantic, then formally, yes, a histogram is a case of a dictionary. But in terms of how it's being used, there isn't a second data structure B - it's just telling you properties about list A. What we often think of as mapping between two lists is more often asking questions about the structure of one list.Hmmmmm, I'm actually with Stephen on this one...Hashes, or hashing, takes some set of inputs like a set of strings and applies a hash function h() to it so that each string is mapped to a numerical position. What you then put at that position doesn't matter... Whether it's French words or a number indicating how many times the word appears in a document -- it is still a "value".While they are both interesting uses of hashing, I'm not quite convinced that the two situations are that different...Even if you store a binary tree at each hash table position -- which isn't a value per se -- it would be implemented as the memory address of the root of the tree. So, I guess this too is some abstract definition of a value?Ray
- 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: Simon Cozens
- Re: [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Simon Cozens
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Are ordered hashes useful?
- Next by Date: Re: [tlug] Are ordered hashes useful?
- 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