Introduction
Hierarchical information systems, such as the web directories of the early 2000s, often suffer from a "one-size-fits-all" design. Users seeking specific information must navigate through broad categories, often making multiple guesses and hitting dead ends. Traditional solutions like manual symbolic links are labor-intensive, while keyword search often strips away the organizational context that helps users understand the information space. This paper proposes a novel methodology that treats user interaction as a computer program, applying program slicing—a classic software engineering technique—to automatically personalize website navigation.
Methodology: Interaction as Computation
The core innovation lies in modeling a website's hierarchy as a formal program. This allows the application of decades of research in program transformation to the field of User Experience (UX).
Programmatic Modeling
A website's structure is represented as a series of nested conditional statements. In this model, variables correspond to hyperlink labels (e.g., if (arts)), and the control flow represents the user's path toward a leaf node (a specific webpage).
Slicing and Partial Evaluation
When a user expresses a specific interest (e.g., by typing "music" while at the homepage), the system performs two types of slicing:
- Forward Slicing: Identifies all pages and categories affected by the user's interest.
- Backward Slicing: Extracts the necessary paths from the homepage to those relevant terminal pages.
Finally, the system uses partial evaluation to simplify the program. By "plugging in" the user's known interest, the system removes redundant conditional logic and collapses the hierarchy into a streamlined version.
Results and Discussion
The proposed framework successfully reduces complex hierarchies while preserving their structural context. The authors demonstrated a qualitative proof of concept using a controlled model.
Structural Reduction
As shown in Figure 3, a tree with 14 nodes can be automatically reduced to a personalized view containing only the paths relevant to the user's query. Unlike flat search results, this "sliced" hierarchy maintains the relationship between categories—for instance, showing that "music" exists under both "Arts" and "Computers"—while removing irrelevant branches like "Business" or "Hardware."
Automation and Implementation
This approach eliminates the need for designers to manually anticipate user paths or create symbolic shortcuts. Because it is based on formal program transformations, the logic is implementation-neutral and can be applied to various data formats like HTML or XML using technologies such as XSLT.
Conclusion and Future Work
While currently focused on hierarchical structures, this research demonstrates the power of applying software engineering principles to UX design. Future work will explore scaling this method to non-hierarchical graphs and incorporating more advanced programmatic techniques like currying and reflection to further refine real-time interaction models.
Summary updated