CPC G06F 16/9027 (2019.01) [G06F 16/287 (2019.01); G06N 5/01 (2023.01)] | 16 Claims |
1. A system, comprising:
a processor programmed to:
access a hierarchical data structure comprising a root node, a parent node, and a plurality of leaf nodes, wherein the root node is logically connected to the parent node and the parent node is logically connected to the plurality of leaf nodes, each of the plurality of leaf nodes storing a state and having no child nodes;
obtain a leaf node size;
determine spacing for a grid pattern based on the hierarchical data structure such that the determined spacing results in uniform spacing between each of the leaf nodes in the grid pattern;
set presentation layer data based on the determined spacing to generate a set of data elements, the set of data elements representing the hierarchical data structure;
split the set of data elements of the presentation layer based on a size of a display container, the display container being used to display the grid pattern, wherein to split the set of data elements, the processor is further programmed to lay out the set of data elements based on a layout pattern that defines an order and direction in which representations of the nodes of the hierarchical data structure are to be laid out,
wherein the layout pattern comprises a left-to-right layout pattern in which the representations are laid out in order from left-to-right for odd number rows in the grid pattern and right-to-left in the grid pattern for even number rows in the grid pattern; and
consume the presentation layer into a display layer to render a grid transformation of the hierarchical data.
|