×

Enumeration of trees from finite number of nodes

  • US 7,636,727 B2
  • Filed: 12/06/2004
  • Issued: 12/22/2009
  • Est. Priority Date: 12/06/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • executing instructions on one or more processors to;

    enumerate possible trees configurable from a finite number (N) of nodes greater than one, said possible trees being representative of possible answers to a query, by;

    identifying N−

    1 arrangements of subtree slots coupled to a root node; and

    determining possible allocations of N−

    1 nodes among subtree slots in arrangements of subtree slots;

    for a subtree slot in a possible allocation of the N−

    1 nodes, determining one or more natural numerals for possible configurations of a subtree from nodes allocated to the subtree slot;

    allocating a portion of N−

    1 nodes to a subtree slot in an arrangement of subtree slots;

    for a subtree slot in the arrangement of subtree slots, enumerating one or more possible subtrees configurable from the portion of the N−

    1 nodes allocated to the subtree slot; and

    performing a push operation on the enumerated one or more possible subtrees configurable from the portion of the N−

    1 nodes allocated to the subtree slot to determine one or more natural numerals, each natural numeral being associated with a corresponding one of said pushed one or more possible subtrees configurable from the portion of the N−

    1 nodes allocated to the subtree slot; and

    determine for the enumerated trees particular natural numerals associated with particular ones of the enumerated trees, the natural numerals associated with said particular ones of enumerated trees being based, at least in part, on an association between trees and natural numerals,wherein each of said particular natural numerals associated with particular ones of the enumerated trees is associated with exactly one of said enumerated trees.

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