Hi Emir,
In case you haven't seen them yet I've provided a couple of links to
resources that may be useful. The first is quite a long forum thread that
amongst other things talks about whether trees could/should/will be added
as another datatype to J.

http://www.jsoftware.com/pipermail/programming/2014-September/039202.html
https://code.jsoftware.com/wiki/User:Dan_Bron/Temp/Tree
https://code.jsoftware.com/wiki/User:Devon_McCormick/Trees

Cheers,

On Mon, Apr 12, 2021 at 5:08 PM Emir U <[email protected]> wrote:

> I've had something of a frustrating time trying to puzzle through an info.
> theory algo I'm trying to write in J. The algorithm is simple (Variable
> Length Markov Chain) but requires specialised structures to which J doesn't
> seem amenable. I've resultantly spent hours looking for an array analogue
> to what I need to do, but I've come to the conclusion there isn't one. What
> I need is the "trie" data structure (https://en.wikipedia.org/wiki/Trie).
> The algorithm uses it extensively to build a trie which summarises how
> often every sub-string in a string occurs in a way that is quickly
> accessible for further tree operations. What are my supposed to do in
> situations such as these? I'm guessing implement trie in C then bind it to
> J?
>
> I've had this same problem a few times now. The abstract data structures
> in efficient implementations of algorithms are oftimes not array based and
> usually cannot be implemented efficiently by chains of block array
> operations. Is it fair to say that in these instances J isn't the right
> language to use?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to