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


Groups > comp.lang.python > #16560

Re: order independent hash?

Newsgroups comp.lang.python
Date 2011-12-02 10:18 -0800
References <mailman.3154.1322656374.27778.python-list@python.org>
Subject Re: order independent hash?
From 88888 Dihedral <dihedral88888@googlemail.com>
Message-ID <mailman.3232.1322849895.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wednesday, November 30, 2011 8:32:39 PM UTC+8, Neal Becker wrote:
> I like to hash a list of words (actually, the command line args of my program) 
> in such a way that different words will create different hash, but not sensitive 
> to the order of the words.  Any ideas?

For each word of your list as the key, an object of a hash can be used further 
is stored as the value in the hash of the list of words.

Assume that word 1 is the key and the hash stored is a sentence that uses 
the key word 1.

This is very useful to learn vocabularies and writing sentences. 

 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

order independent hash? Neal Becker <ndbecker2@gmail.com> - 2011-11-30 07:32 -0500
  Re: order independent hash? 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 10:18 -0800
  Re: order independent hash? 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-02 10:18 -0800
    Re: order independent hash? Ian Kelly <ian.g.kelly@gmail.com> - 2011-12-02 11:37 -0700
    Re: order independent hash? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-03 01:04 +0000
      Re: order independent hash? 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-03 08:36 -0800

csiph-web