- Joined
- Mar 15, 2012
- Messages
- 2,878
I can only count five.
Dynamic Index
Arrayed Indexing
Linked List
Indexing
Hashtables
Dynamic Index
Arrayed Indexing
Linked List
Indexing
Hashtables
What's the difference between Dynamic Indexing and Arrayed Indexing ?
What is
Dynamic Index
Arrayed Indexing
Linked List
Indexing
Hashtables
?
This is the difference between Normal Indexing and Dynamic Indexing.IDK. Some people say there is. Some others don't actually de-index and stack indexes from 0 to infinity, IDK what's the difference?
Dynamic Indexing is different than I'Arr. Dynamic Indexing Template was published by Hanky ^^. It is better to use I'Arr. This spell is using dynamic indexing Chain Storm Bolt
Indexed Array*
Refers to an array similar to a vector, where, when an element is removed, the last element is placed into the removed element's position to plug the hole.
This is different from a list, which shifts all of the elements down to plug the hole.
This is also different from a linked list, which utilizes nodes that point to each other rather than a contiguous set of data.
As for all of this indexing garbage, let's get a few things clear
Indexing, as far as I can tell, for a GUI user, is just about using a counter and an indexed array. There is the only kind of indexing there is. All of these other things you are talking about don't exist. When you index, you are doing just what I described.
Indexing like this ensures that every value is unique. However, there are some drawbacks. Let's say that the data you are moving is made up of 5 integers, like 5 variables. If you were to use an indexed array for that, you'd have to move all 5 values. That would suck ; o.
This is where we get into pointers and stack allocation/deallocation. Rather than having these 5 integers, you allocate 1 integer and you have it point to an index across 5 arrays. Now you can put that single pointer into an indexed array or whatever else you want.
Look in my signature at Data Structures.
We use a linked stack for single memory allocation. If you want scratch memory, you use an array stack. If you want to allocate blocks of memory and it's not temporary, you use a heap.
So let's drop all of this indexing nonsense. The only indexing I can think of are hashes and BSTs.
edit
Also keep in mind that indexed arrays are a pure wc3 bs term. An indexed array is simply an array that takes an index, lol.
edit
Here is more on this stuff
Introduction to Collections: Index Array, Linked List, Stack, Queue, Dequeue
I guess the term indexed array arose because all indices are valid (no holes), but that still doesn't make sense as a plain array list would still be considered to be an array that will never have holes in it.
edit
We also have the collections index
Collections Index
__________________
I'm really confused by deathismyfriend's tutorial, he shows how to use dynamic indexing but calls it Indexed Arrays.