Order Preserving Pattern Matching in 2D Data via Diagonal Encoding
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing techniques fail to effectively solve the Order Preserving Pattern Matching problem for two-dimensional data, which involves identifying sequences of characters that match magnitude relations in character strings, as they do not consider diagonal directions necessary for accurate pattern matching.
Innovation Solution
An order preserving pattern matching apparatus and method that includes a matching direction pattern conversion unit, index generation unit, encode processing unit, matching unit, and output unit to set ID numbers for diagonal directions, generate indices, encode patterns, perform matching, and output matching positions within two-dimensional text data, enabling the identification of matching patterns across diagonal directions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If existing pattern matching techniques are applied to two-dimensional data, then the matching process can be performed using conventional methods, but the Order Preserving Pattern Matching problem cannot be solved accurately because diagonal directions are not considered
Solution Approach 1:
The patent extends pattern matching from one-dimensional to two-dimensional data by introducing diagonal directions as additional matching dimensions. The apparatus considers horizontal, vertical, and diagonal directions simultaneously, transforming the conventional single-dimension matching approach into a multi-dimensional matching framework that can accurately solve OPPM problems for two-dimensional data structures
2Measurement precision
If multiple matching directions including diagonal directions are considered, then the pattern matching accuracy for two-dimensional data is improved, but the complexity of the matching process increases
Solution Approach 1:
The patent divides the two-dimensional pattern matching process into separate directional components: horizontal direction matching, vertical direction matching, and diagonal direction matching. Each direction is processed independently through dedicated processing units, and the results are combined to determine the final match. This segmentation reduces the overall complexity by breaking down the multi-dimensional problem into manageable one-dimensional sub-problems
Solution Approach 2:
The patent introduces diagonal directions as additional independent dimensions for pattern matching. By treating diagonal matching as a separate dimension rather than attempting to solve all directions simultaneously in a complex unified framework, the patent manages complexity while improving accuracy for two-dimensional data structures
Data Source
AI summary
An order preserving pattern matching apparatus according to the present invention includes a matching direction pattern conversion unit for setting an ID number for each order preserving type of a character string in a retrieval pattern for a plurality of matching directions including at least one diagonal direction, and generating a list of the ID numbers as a matching direction pattern, an encoding processing unit configured to generate an encoded two-dimensional pattern assigned with a corresponding ID number for a pattern being a part of a two-dimensional pattern to be searched that matches an order preserving pattern assigned with an ID number, and a matching unit configured to perform matching whether an arrangement matching the matching direction pattern assigned with an ID number exists or not within the encoded two-dimensional pattern.


