Raised This Month: $ Target: $400
 0% 

Trie Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Len
Senior Member
Join Date: Dec 2007
Old 01-11-2011 , 08:42   Trie Help
Reply With Quote #1

Could someone give me a example of how to use trie's and some infomation about them please
Len is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-11-2011 , 08:48   Re: Trie Help
Reply With Quote #2

Search for "trie" and "celltrie" you should find plenty examples.
__________________
Bugsy is offline
Len
Senior Member
Join Date: Dec 2007
Old 01-11-2011 , 08:55   Re: Trie Help
Reply With Quote #3

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
Len is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2011 , 09:03   Re: Trie Help
Reply With Quote #4

On this forum.
__________________
Arkshine is offline
Len
Senior Member
Join Date: Dec 2007
Old 01-11-2011 , 09:11   Re: Trie Help
Reply With Quote #5

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 is offline
Len
Senior Member
Join Date: Dec 2007
Old 01-11-2011 , 11:43   Re: Trie Help
Reply With Quote #6

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.......
Len is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 01-11-2011 , 12:23   Re: Trie Help
Reply With Quote #7

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
__________________
Impossible is Nothing
Sylwester is offline
Len
Senior Member
Join Date: Dec 2007
Old 01-11-2011 , 14:19   Re: Trie Help
Reply With Quote #8

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

Last edited by Len; 01-11-2011 at 14:28.
Len is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-11-2011 , 19:08   Re: Trie Help
Reply With Quote #9

Look at the include file to see functions/parameters.
__________________
Bugsy is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2011 , 19:10   Re: Trie Help
Reply With Quote #10

There is also a test plugin provided in testsuite/.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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