05.09.2010, 08:33
(
Последний раз редактировалось RSX; 05.09.2010 в 09:56.
)
I have had this idea for a while, but as free time gets shorter and shorter, i just want to tell it, and hear some.. idk theories or conclusions that apply for this thing, So i'll try to draw some tree in PS, maybe it'll fail outpointing that this idea is a failure. If it goes, then BinTreeCmd will most likely be a plugin, due to pawno 32 bit varibale sizes. Main idea - jumping throught trees instead of making a "full" cycle of all functions, i think this would give a decent improvement even if having not so fast bug repairs. I actually haven't designed my own bin tree, but I have friend who's working with 'em, and besides, i don't need the normal usual functions, i think it wouldn't be splash tree or something even complex.
Oh and first ideas are:
1. Variable that stores the "deepness" of check (like 0 is 0 in array, 1 is 1 in array and so on).
2. When it reaches deepness of only one result possible (like from /abc /aabc and /aaabc it would result that 3 first charaters are "a") it would make a check if function matches. Possibly by my function, which would stop at mismatch (main component would be? while(cmd[pos]=input[pos])?
My thoughts are that at enough good design only speed problems would be the same as for an binary tree - if first function would be /aaa it surely would be found faster by directly being called.
If we'll or I'll manage to make this tree, a splash tree could be desgined - as players usually use few functions much more than others, like /repair and /gc or what was tele to airport
.

Idea of making this is - 1. Learning bin trees in pawn/pawn plugin 2. Possibly making very fast commands. 3. This may grow into check of params too, when it's like id?
Oh and first ideas are:
1. Variable that stores the "deepness" of check (like 0 is 0 in array, 1 is 1 in array and so on).
2. When it reaches deepness of only one result possible (like from /abc /aabc and /aaabc it would result that 3 first charaters are "a") it would make a check if function matches. Possibly by my function, which would stop at mismatch (main component would be? while(cmd[pos]=input[pos])?
My thoughts are that at enough good design only speed problems would be the same as for an binary tree - if first function would be /aaa it surely would be found faster by directly being called.
If we'll or I'll manage to make this tree, a splash tree could be desgined - as players usually use few functions much more than others, like /repair and /gc or what was tele to airport


Idea of making this is - 1. Learning bin trees in pawn/pawn plugin 2. Possibly making very fast commands. 3. This may grow into check of params too, when it's like id?