×

Trie specialization allowing storage of value keyed by patterns and retrieval by tokens

  • US 8,380,758 B1
  • Filed: 11/30/2011
  • Issued: 02/19/2013
  • Est. Priority Date: 11/14/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method of invoking a program associated with a command string, the method comprising:

  • receiving the command string;

    dividing the command string into a plurality of tokens, wherein one or more of the plurality of tokens include a plurality of adjacent characters in the command string;

    using a processor, identifying a node-path within a trie data structure corresponding to the plurality of tokens, wherein;

    the trie data structure comprises a plurality of nodes arranged in a tree-like manner;

    each node in the plurality of nodes includes a lookup key in the form of a regular expression;

    one or more nodes in the plurality of nodes includes a value in the form of a program; and

    identifying the node-path comprises identifying a series of sequential, connected, descending nodes in the trie data structure such that the regular expression lookup key included in each node in the series matches a respective sequential token in the command string;

    determining that the lookup key included in a final node is a wildcard;

    extracting a program included in the final node in the node-path; and

    in response to determining the lookup key included in the final node is a wildcard, executing the program associated with the final node by providing one or more tokens subsequent to the token that matches the final node as arguments to the program.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×