Search Box Auto-Complete Prediction Using Trie Tree

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional search box auto-complete systems lack prediction functionality, resulting in increased load on remote servers and delayed responses, as they require multiple trips to match keywords against prefixes, inefficiently utilizing HTTP connection throughput.

Innovation Solution

Implementing a predictive algorithm that uses a trie tree structure to anticipate and predict keywords based on prior searches, allowing for concurrent transmission of multiple responses within a single TCP packet, reducing server load and response time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If traditional search box auto-complete is implemented without prediction functionality, then the system is simple to implement, but the server load increases and response time delays occur

Engineering Contradiction:
Improvesystem complexityVSAvoidserver efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The system pre-computes and stores prediction results in a data structure (trie tree) before they are needed. When a user enters a prefix, the system retrieves pre-computed predictions rather than computing them in real-time, thereby reducing server load and response time without significantly increasing system complexity

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates a copy of the search index in a specialized data structure (trie tree) that is optimized for prefix-based predictions. This copy allows for efficient retrieval of prediction results without querying the main search index repeatedly, improving server efficiency while maintaining manageable system complexity

Inventive Principle:
Principle #26Copying

2Ease of manufacture

If traditional search box auto-complete requests are processed sequentially, then the implementation is straightforward, but HTTP connection throughput is not optimized

Engineering Contradiction:
Improveimplementation easeVSAvoidconnection throughput efficiency
Core Design Contradiction:
Ease of manufactureVSUse of energy by moving object

Solution Approach 1:

The system merges multiple prediction requests into a single batch operation by utilizing the trie tree structure. Instead of processing each prefix request separately, the system can serve multiple predictions from a single data structure traversal, optimizing HTTP connection throughput while keeping the implementation relatively straightforward

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The trie tree data structure enables continuous traversal and prediction generation without requiring repeated setup and teardown of search operations. This continuous action optimizes the use of HTTP connections by maintaining an active search state across multiple prediction requests, improving throughput efficiency

Inventive Principle:
Principle #20Continuity of useful action

3Reliability

If multiple keyword matching trips are made to the remote server, then comprehensive results are obtained, but response time increases

Engineering Contradiction:
Improveresult completenessVSAvoidresponse time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system pre-computes prediction results for all possible prefixes and stores them in the trie tree structure before they are needed. When a user enters a prefix, the system retrieves pre-computed predictions immediately without making multiple trips to the server, thereby reducing response time while maintaining result completeness

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates a localized copy of prediction data in the trie tree structure that can be queried without repeated server trips. This copy contains all necessary prediction information locally, enabling comprehensive results to be returned in a single fast operation rather than multiple slower trips

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10997220B2Search box auto-complete
Publication Date: 2021.05.04 EBAY INC
  • US10997220B2 patent drawing
  • US10997220B2 patent drawing
  • US10997220B2 patent drawing

AI summary

In various exemplary embodiments, a system and associated method predict auto-complete recommendations for a partial search request. A search engine receives a partial search request with one or more characters from a client device. A first set of auto-complete recommendations corresponding to the one or more characters of the partial search request are identified. A second partial search request is predicted that comprises a set of characters with one or more additional characters added to the one or more characters from the partial search request. A second set of auto-complete recommendations corresponding to the second partial search request is identified. The first set of auto-complete recommendations and the second set of auto-complete recommendations are returned to the client device as a response to the partial search request.