Raised This Month: $ Target: $400
 0% 

cellarray & celltrie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-09-2013 , 17:59   cellarray & celltrie
Reply With Quote #1

Why some highly experienced coders use celltrie and not cellarray?
This is the question what i wondering to ask long time ago.
Is celltrie faster? Or in which case its better to use celltrie and which not?
Thanks!
.Dare Devil. is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 05-09-2013 , 18:00   Re: cellarray & celltrie
Reply With Quote #2

Both are different, have you seen the respective include files? They are used for many things lol
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-09-2013 , 18:03   Re: cellarray & celltrie
Reply With Quote #3

A Trie is not the same as an Array.

Some explanations : https://forums.alliedmods.net/showthread.php?t=88396
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-09-2013 , 18:06   Re: cellarray & celltrie
Reply With Quote #4

Thanks!
.Dare Devil. is offline
YakumoHiratsuhi
Veteran Member
Join Date: Dec 2010
Location: Dreαmlαnd.
Old 05-09-2013 , 19:15   Re: cellarray & celltrie
Reply With Quote #5

I understand celltrie and cellarray this way, obviously the way to code it is different.

PHP Code:
// Cell arrays
CellArray[0] = 52
CellArray
[1] = 64
CellArray
[2] = 15

// Cell Tries
CellTrie["somestring"] = 12
CellTrie
["somestringtwo"] = 456
CellTrie
["anotherstring"] = 23 
__________________
"Podra parecer ridiculo o imposible, pero este es el camino que seguimos los verdaderos hombres, si hay un muro en el camino, lo derribamos, si no hay camino, haremos uno, con nuestras propias manos, porque el magma de nuestro corazón arde en llamas."
YakumoHiratsuhi is offline
Send a message via MSN to YakumoHiratsuhi
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 10:57.


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