After spending years analyzing the data structures in mnemonics and having taught the data structures in programming especially Java for most of my career, I thought it would be enlightening to show how they essentially are the same. There’s quite a few programmers out there so maybe you would like to see how mental and digital structures overlap. Only the context is different where the brain favors locations and images and the computer favors binary data which are only constraints on the design of the system.
The mnemonic data structures fall under two broad types, the peg list and the story. If you are interested in the discussion, there’s many posts here on the forum including a main topic on analysis and then much more in detail in my books.
The data structures used in computer languages fall into two main broad groups also. The list and the map have many names and variations but you can talk about arrays, linked lists, sets, dictionaries, etc. as just a more structured type of either of those two. (The bag is an interesting third type possibly.) Lists have an order and are navigable from start to finish. Maps are entered and navigable by their index to retrieve their value.
So, the connection should be clearer now. The map uses an independent ordered index to navigate by which would be called a peg list. The values then are stored at each of the map’s location. The index can be of any datatype as long as it has a rule of ordering.
The list uses a forward linked connection to the next value without an index. It can also have a connection to the previous value if needed. Unique values are useful so you don’t get confused about where you are. That’s the set. And of course, the story provides the same style of storage in mnemonics.
For those folks that want to take it further into OO structures, that’s harder to do since classes presume behavior limited by data structure. Most people mean a compound data structure instead I think like the abstract data type (ADT) that preceded the class and has become more prominent in JavaScript as a way to make structures more flexible. You can see my posts on that idea following the summary of posts I put as a rebuttal that classes have not been implemented in mnemonics.
Is this a way of programming mnemonics? Could be. But my interest is to show that data structures follow the same design whether implemented in the constraints of your mind or on a digital system that doesn’t allow imaginative images and is constrained by zeros and ones.
Doug