huffman algorithm in python -


hi!

could how fix problem in huffman algorthm (if put parts) internet site:

http://www.builderau.com.au/program/python/soa/huffman-coding-in-python/0,2000064084,339283616,00.htm

error:

 itemqueue =  [node(a, len(list(b))) a, b in groupby(sorted(input))] typeerror: 'builtin_function_or_method' object not iterable 

thanks!

i think forgot declare input. should work fine otherwise.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -