Tree Structure Comparison for Software Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing software comparison tests often fail to detect meaningful differences between modified or new software systems and current systems, particularly in tree structures, due to issues like random differences or different representations of values, leading to incomplete or misleading results.

Innovation Solution

A testing service that intercepts requests and compares tree structures between candidate and authority software systems, using a tree comparator to identify meaningful differences by serializing data in formats like XML, YAML, or JSON, and employing advanced comparison logic to address issues such as attribute mismatches and different node orderings.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If comparison tests stop at the first imperfect match, then comparison speed is improved, but measurement precision deteriorates because meaningful differences are not detected

Engineering Contradiction:
Improvecomparison speedVSAvoiddifference detection accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The patent segments the tree structure comparison into multiple levels or passes. Instead of stopping at the first mismatch, the comparison is divided into segments that allow traversal through different portions of the tree structures, enabling detection of differences at various levels while maintaining organized comparison flow.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary actions by identifying and categorizing types of differences before making final comparison decisions. It prepares by establishing comparison rules and data structures in advance that allow it to continue comparing beyond first mismatches, transforming the comparison process into a multi-stage evaluation rather than a single-pass check.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If comprehensive tree structure comparison is performed, then measurement precision is improved, but loss of time increases due to extended comparison duration

Engineering Contradiction:
Improvedifference detection accuracyVSAvoidcomparison time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The comparison process is segmented into discrete steps that can be executed efficiently. By dividing the tree comparison into manageable segments (such as comparing specific node types, attributes, or hierarchical levels), the system achieves comprehensive comparison without requiring excessive time, as each segment can be processed independently and optimally.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by focusing comparison efforts on relevant portions of the tree structures rather than uniformly comparing every node. It performs excessive action in strategic areas where differences are most likely to occur or where meaningful differences are most critical, while reducing comparison depth in areas where differences are less significant.

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If detailed comparison of all tree nodes is performed, then measurement precision is improved, but device complexity increases

Engineering Contradiction:
Improvecomparison accuracyVSAvoidcomparison system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the complex tree comparison task into smaller, more manageable comparison units. Each segment handles specific aspects of tree node comparison (such as attribute matching, structural validation, or value comparison), which reduces the complexity of individual comparison operations while maintaining overall comprehensive comparison capability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces intermediary data structures or comparison objects that mediate between the raw tree structures and the final comparison results. These intermediaries simplify the comparison logic by providing standardized interfaces and abstraction layers, reducing the apparent complexity of the comparison system while enabling detailed node-by-node analysis.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS9483387B1Tree comparison functionality for services
Publication Date: 2016.11.01 AMAZON TECH INC
  • US9483387B1 patent drawing
  • US9483387B1 patent drawing
  • US9483387B1 patent drawing

AI summary

The techniques described herein provide for comparison of tree structures. In some examples, a system according to this disclosure may receive at least a first item including a first tree structure and a second item including a second tree structure. The system may compare the first item and the second item. In particular, in performing the comparison, the system may detect a sub-tree structure type in the first tree structure and in the second tree structure. In some examples, the sub-tree structure type is one of one or more sub-tree structure types that have corresponding matching processes. Once determined, the system described herein may perform the corresponding matching process of the detected sub-tree structure type for the first tree structure and the second tree structure.