Word-RAM states represented by pointer-machine dictionaries #
The logical AVL tree witnesses the shape and height of the concrete heap dictionary. Its cardinality counts stored addresses, including entries whose value has subsequently become zero. Program counters are separate from this data representation.
The register bank and linked AVL dictionary implement one RAM data state.
Source registers occupy the client bank.
The heap contains the linked tree, with null parent at its root.
- matched : DataStructure.AVLTree.PointerMachine.Matches id 1 tree avl
Keys and cached heights agree with the logical AVL tree.
- valid : avl.Valid
The dictionary is ordered, balanced, and has correct cached heights.
- distinct : DataStructure.SearchTree.PointerMachine.AddressesDistinct tree
Different tree positions occupy different heap records.
- memory : DataStructure.AVLTree.PointerMachine.Dictionary.Stores 0 tree x.mem
Payload fields implement the total RAM memory, with zero outside the tree.
Pointer register one holds the dictionary root.
Changing the program counter preserves the data representation.