I read about the usage of dag in this problem. But my question is how are the actual cells referenced in the formula. As a user, I type =B12
C34, then add two columns after A and 5 rows after row 5. The formula is now =D17E39. If I add 2 rows at row 20, the formula becomes =D17*E41.
The offset-based approach is what I considered to be the most optimal so I’m happy to see that mentioned. So a complete solution would be a dag of offsets? A native internal representation would store something like:
(col 4, row 17) operator (offset col +1, row +24).