Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61602
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: grab dict keys/values without iterating ?! |
| Date | 2013-12-11 18:09 +0000 |
| References | (1 earlier) <52A7AB8C.8030700@arcor.de> <almarsoft.6523303589308130554@news.gmane.org> <mailman.3885.1386762407.18130.python-list@python.org> <3efc283f-419d-41b6-ad20-c2901c3b9f78@googlegroups.com> <14D5EC89-0DFC-46D3-B9B9-EE6C468DB34E@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3917.1386785364.18130.python-list@python.org> (permalink) |
On 11/12/2013 17:19, Travis Griggs wrote: > > On Dec 11, 2013, at 5:31 AM, rusi <rustompmody@gmail.com> wrote: > >> >> The classic data structure for this is the trie: >> General idea: http://en.wikipedia.org/wiki/Trie >> In python: >> http://stackoverflow.com/questions/11015320/how-to-create-a-trie-in-python/ > > My thoughts exactly! > > If you wade through the comments there, someone has done a more-than-naive implementation here: > > https://github.com/kmike/marisa-trie > > The write up makes it look pretty favorable as well for performance (scroll 2/3s down to the Benchmarks section). > http://kmike.ru/python-data-structures/ from the author of the above is well worth a read. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: grab dict keys/values without iterating ?! Tamer Higazi <tameritoke2@arcor.de> - 2013-12-11 12:07 +0200
Re: grab dict keys/values without iterating ?! rusi <rustompmody@gmail.com> - 2013-12-11 05:31 -0800
Re: grab dict keys/values without iterating ?! Roy Smith <roy@panix.com> - 2013-12-11 09:46 -0500
Re: grab dict keys/values without iterating ?! rusi <rustompmody@gmail.com> - 2013-12-11 07:08 -0800
Re: grab dict keys/values without iterating ?! Tim Chase <python.list@tim.thechases.com> - 2013-12-11 09:42 -0600
Re: grab dict keys/values without iterating ?! Travis Griggs <travisgriggs@gmail.com> - 2013-12-11 09:19 -0800
Re: grab dict keys/values without iterating ?! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-11 18:09 +0000
Re: grab dict keys/values without iterating ?! Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-11 13:44 +0000
Re: grab dict keys/values without iterating ?! Tim Chase <python.list@tim.thechases.com> - 2013-12-11 08:30 -0600
Re: grab dict keys/values without iterating ?! Ian Kelly <ian.g.kelly@gmail.com> - 2013-12-11 18:02 -0700
Re: grab dict keys/values without iterating ?! Ian Kelly <ian.g.kelly@gmail.com> - 2013-12-11 18:05 -0700
csiph-web