Re: [q-lang-users] Association lists
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-02-18 16:21:56
|
Hi Jiri, that looks nice, thanks a lot. Do you have a sf.net account? Then I could give you wiki access so that you can upload and describe it there. Indeed your implementation seems to be much faster than the one in the standard library (which was based on Bird/Wadler). Care to elaborate on the implementation tricks that make this happen? Maybe we should redo bag, set and hdict, too, and replace the stdlib implementations... Albert Jiri Spitz wrote: > I have ported and completed the association lists based on AVL trees > from the SWI-Prolog to Q. Enclosed you will find the dict.q rewritten to > use this algorithm. It is not as elegant as the current implementation > (it is rather tricky), but the tree updates are more than two times > faster for large dictionaries. -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |