DOM Mining with SiSTeR Edit Distance Algorithm

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing algorithms for mining HTML Document Object Model (DOM) structures face significant computational challenges in efficiently identifying patterns and subtrees within complex web applications, particularly due to the high execution time required for computing tree edit distances, which hinders interactive pattern discovery and data mining tasks.

Innovation Solution

The implementation of the Restricted Top-Down edit Metric (RTDM) and its variant, Similar Sibling Trees-aware RTDM (SiSTeR), which compute edit distances between subtrees in a bottom-up manner using dynamic programming, allowing for efficient detection of similar subtrees regardless of their quantity and structure, thereby reducing computation time from O(n^4) to O(n^2) and enabling improved performance in DOM mining tasks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If tree edit distance is computed for all subtrees using existing algorithms, then similarity measurement between DOM structures is achieved, but execution time becomes magnitudes of order higher

Engineering Contradiction:
Improvesimilarity measurement accuracyVSAvoidexecution time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent segments the DOM tree into smaller subtrees and processes them hierarchically from leaves to root. By dividing the computation into manageable segments (subtrees) and processing them in a bottom-up manner, the algorithm avoids computing edit distances for all possible subtree combinations, thus reducing execution time while maintaining measurement accuracy through systematic comparison of segmented structures.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary actions by pre-computing edit distances between leaf nodes and storing them in a distance matrix before proceeding to higher levels of the tree hierarchy. This preliminary computation of base cases enables efficient calculation of parent node distances without re-computing from scratch, significantly reducing overall execution time while preserving accurate similarity measurements.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If patterns are searched in web pages with many elements, then comprehensive pattern discovery is achieved, but computation time increases significantly

Engineering Contradiction:
Improvepattern discovery comprehensivenessVSAvoidcomputation speed
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent segments the large DOM tree into smaller subtrees and processes them hierarchically. By dividing the comprehensive pattern search into segmented subtree comparisons rather than evaluating all possible patterns across the entire tree, the algorithm maintains pattern discovery comprehensiveness while reducing computation time through manageable processing units.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a hierarchical dimension to the pattern search process by organizing computations from leaf nodes upward through intermediate levels to the root. This dimensional transformation from flat exhaustive search to hierarchical structured computation enables comprehensive pattern discovery across all tree levels while improving productivity through systematic organization of the search space.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Ease of operation

If interactive pattern discovery is enabled in large DOM structures, then user interaction is achieved, but computation time remains an issue

Engineering Contradiction:
Improveinteractive capabilityVSAvoidcomputation time
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The patent performs preliminary computations by pre-calculating and storing edit distances between leaf nodes in a distance matrix before interactive queries are made. This preliminary action creates a ready-to-use foundation that enables fast responsive interaction for pattern discovery without requiring time-consuming computations during user interactions, thus maintaining ease of operation while reducing perceived computation time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent segments the computation into hierarchical levels, allowing interactive pattern discovery to focus on specific subtree regions rather than re-computing entire tree structures. This segmentation enables responsive user interaction by limiting computation to relevant segments while maintaining the ability to perform comprehensive analysis when needed.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS8886679B2Mining web applications
Publication Date: 2014.11.11 MICRO FOCUS LLC
  • US8886679B2 patent drawing
  • US8886679B2 patent drawing
  • US8886679B2 patent drawing

AI summary

Systems and methods of mining Web applications are disclosed. An example method may include selecting a distance measure between subtrees of the Web applications. The method may also include computing an edit distance for the subtrees. The method may also include finding sets of similar subtrees using the edit distance with a Similar Sibling-Trees-aware RTDM (SiSTeR) approach.