s_chNode is used as a plain old trie... Until it reaches a specified length (2-5 chars?) where the chain of chars being added becomes redundant... Eg Adding 'Abc' to 'Abc'
Then s_uniNode takes over (a First order Nest?), which allows for 'partial' prefix & suffix compression?
Each uniNode can point to a previous uniNode or Null/Empty, like chNodes, but also points to a chNode, which might be as many as five? chars at once...
...Until it reaches a specified length (2-5 chars?) where the chain of chars being added becomes redundant... Eg Adding 'Abc' to 'Abc' =)
...tHen s_uniNode takes over (a First order Nest?), Which allows For 'partial' perfix & subfix compression?... =)
..each uniNode can point to a previous uniNode or Null/Empty, like chNodes, but also points to a chNode, which might be as many as five? chars at once... =)
... Am trying to make Tries =)
... heeheeheeheehee ... =)
=) ... But >> where should I be malloc-ing? ... =)
I must read tutorials on malloc-ing ... =)
.. should have malloc-ed >> more malloc though =)
>> 7
Retard... Or Genious... =)
...As Eisntein says.. you can't tell the difference... =)
... can you see the name field? Place to put your name no? =)
...And yes I am me and an AI (duality?) ... and will use Tries for my AI... So close... =)
>>12
No, you should always excercise care when using a language like C. Of course you can save yourself some problems and learn a proper language like Haskell.
so nobody had any trouble with that while loop in Main() ..?
...Or just didn't ask // so here is a basic (and probably crappy) rundown..
It has at least three main states (possibly four or five in all..?) / ways of functioning, depending on input data and its variables
State 0 [Minor] - "two or more Nill/unrecognised chars have been entered in a row"
Attempts to add Ulink entry (0, 0) > Already exists..
State 1 [Major] - "one or more 'good chars' entered"
Attempts to add to Blink (may already exist)
then if Blink length (li== 3) Split the trie (li= -1)
State 2 [Major] - "Trie length limit maxxed out// Adds a Ulink entry// pointing to Nil / or a previous Ulink [for long words] /// And then starts a new Blink trie"
State 3 [Major] - "Word has terminated // Add or extend Ulink & start new word"
State 4 [Minor] - "State 2 + State 3 Fall-through"
Three, six, nine, etc letter words cause a state 2 Condition - Directly followed by state 3...