AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trie Help (https://forums.alliedmods.net/showthread.php?t=147593)

Len 01-11-2011 08:42

Trie Help
 
Could someone give me a example of how to use trie's and some infomation about them please

Bugsy 01-11-2011 08:48

Re: Trie Help
 
Search for "trie" and "celltrie" you should find plenty examples.

Len 01-11-2011 08:55

Re: Trie Help
 
http://wiki.alliedmods.net/Special:S...rch=trie&go=Go
http://wiki.alliedmods.net/Special:S...arch=cell+trie

Nope and nothing descriptive or to point enough to learn from other examples

Arkshine 01-11-2011 09:03

Re: Trie Help
 
On this forum.

Len 01-11-2011 09:11

Re: Trie Help
 
yes there is short snippets and people with problems I can't find nothing in the way of examples of how to use them, just people with problems here and a explanation of why trie's are better then arrays for strings :/ sorry is there any chance you could post a link that will maybe help

Len 01-11-2011 11:43

Re: Trie Help
 
Searched for 20 minutes Nothing in the way of explaining tries and examples of using them. not in the context of learning how to use them anyway.......

Sylwester 01-11-2011 12:23

Re: Trie Help
 
Short explanation:
Using celltrie is advantageous whenever you want to search for some string on a list of strings.

Longer Explanation: http://forums.alliedmods.net/showthr...highlight=trie
Some example: http://forums.alliedmods.net/showthr...05#post1171205
My block reconnect respawn plugin is using tries to store and search for ips (brr_kill.sma and brr_nokill.sma): http://forums.alliedmods.net/showthread.php?p=555349

Len 01-11-2011 14:19

Re: Trie Help
 
yeh I read through this stuff the part I didn't get is, how you're meant to learn the parameters of the functions and all the function uses from copying someone's script

but it isn't ur thought and thank you for your help

Bugsy 01-11-2011 19:08

Re: Trie Help
 
Look at the include file to see functions/parameters.

Arkshine 01-11-2011 19:10

Re: Trie Help
 
There is also a test plugin provided in testsuite/.


All times are GMT -4. The time now is 02:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.