Expanded Character Encoding for Regular Expression Filters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

General-purpose hardware limitations hinder efficient regular expression matching and querying in data stores, as software applications struggle to optimize performance for specific operations, leading to suboptimal query capabilities.

Innovation Solution

Implementing expanded character encoding and hardware-optimized regular expression filters using dedicated circuitry like FPGAs or ASICs, which support metacharacters, alternations, and Kleene closures, reducing state explosions and enhancing NFA state capabilities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If general-purpose hardware with software applications is used for regular expression matching, then versatility in deploying different query capabilities is improved, but query performance and efficiency deteriorate due to software limitations on general-purpose hardware

Engineering Contradiction:
Improvequery capability versatilityVSAvoidquery performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent replaces software-based regular expression matching on general-purpose CPUs with hardware-based matching using dedicated circuitry (FPGAs or ASICs). This substitution of mechanical/software system with hardware system achieves both high performance through dedicated optimization and versatility through reconfigurable logic, resolving the contradiction between performance and adaptability

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The hardware implementation uses reconfigurable logic elements that can be programmed to support multiple regular expression operations and metacharacters. This multi-functionality allows the same hardware to perform various query capabilities while maintaining optimized performance, addressing both versatility and productivity requirements

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Adaptability or versatility

If traditional character encoding is used in regular expression filters, then hardware resource utilization is simple, but the ability to support metacharacters and complex patterns deteriorates

Engineering Contradiction:
Improvemetacharacter supportVSAvoidhardware resource complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent expands the character encoding from traditional 8-bit to 9-bit encoding, creating additional encoding space that can represent metacharacters and complex pattern symbols. This parameter change in encoding capacity enables enhanced metacharacter support while the hardware efficiently manages the increased complexity through optimized state machine design

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

By adding an additional bit dimension to the character encoding (8-bit to 9-bit), the patent creates new encoding capacity without fundamentally redesigning the hardware architecture. This dimensional expansion allows metacharacter support while maintaining relatively simple hardware resource utilization through extended encoding rather than complex structural changes

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

3Adaptability or versatility

If expanded character encoding with 9-bit symbols is implemented, then metacharacter support and pattern capabilities are improved, but encoding complexity and processing overhead increase

Engineering Contradiction:
Improvepattern expression capabilityVSAvoidencoding processing complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent performs preliminary encoding of input strings into the expanded 9-bit symbol format before regular expression matching begins. This pre-encoding step converts the input data into a format that the hardware can efficiently process, reducing processing complexity during the actual matching operation and enabling comprehensive pattern expression capability

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11782983B1Expanded character encoding to enhance regular expression filter capabilities
Publication Date: 2023.10.10 AMAZON TECH INC
  • US11782983B1 patent drawing
  • US11782983B1 patent drawing
  • US11782983B1 patent drawing

AI summary

Expanded encoding may be implemented to enhance regular expression filter capabilities. Two or more adjacent characters in a stream of characters to be processed by a regular expression filter may be recognized and replaced with a symbol. The symbol may be used instead of the two or more adjacent characters for processing through non-deterministic finite automaton (NFA) states. The output of the NFA states may indicate whether a match for a regular expression is present in the stream of characters.