# US 9,355,132 B1 · Tiered arrays

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,132 B1
- Document ID: US9355132B1
- Status: Granted
- Kind: B1
- Application number: 14/871,934
- Filed: 2015-09-30
- Granted: 2016-05-31
- Earliest claimed: 2015-09-30
- Assignees: Semmle Limited
- Applicants: Semmle Limited
- Inventors: Joshua George Hale
- Web page: https://patentgrep.com/patent/US9355132B1

## CPC

- G06F 8/22: {Procedural}
- G06F 3/0481: based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 8/443: {Optimisation}
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 8/74: Reverse engineering; Extracting design information from source code
- G06F 8/75: Structural analysis for program understanding
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 11/3668: Testing of software
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/245: Query processing
- G06T 11/26: Drawing of charts or graphs
- H04L 67/133: Protocols for remote procedure calls [RPC]
- G06F 8/24: {Object-oriented}
- G06F 8/35: model driven
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 8/73: Program documentation
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for using tiered arrays to represent aggregated software dependencies. One of the methods includes receiving a request to generate a range of contiguous indexes having non-default values represented by a tiered array having a plurality of tiers, wherein each non-default element of each tier is a reference to a catalog at a lower tier except for a bottom-most tier of the tiered array that stores non-default values, wherein the request specifies a start index. After descending one or more tiers in the tiered array to identify a first index that (i) is greater than or equal to the start index and (ii) has a non-default value, a system ascends one or more tiers in the tiered array and subsequently descends again to identify a second index that is a last index in a contiguous sequence of indexes having non-default values from the first index up to and including the second index.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a request for a plurality of dependencies inbound to or outbound from a node in a raw dependency graph of software elements in a project, wherein each node in the raw dependency graph represents a software element in the project, and wherein each link in the raw dependency graph represents a software dependency of a first software element on a second software element;
identifying a tiered array representing the plurality of dependencies for the node in the raw dependency graph, the tiered array having a plurality of tiers, wherein each tier of the tiered array comprises one or more catalogs,
wherein each catalog in each tier, except for a bottom-most tier, stores (i) non-default elements that each identify a respective catalog at a lower tier and (ii) default elements that do not identify any catalogs, and
wherein each bottom-most catalog in the bottom-most tier stores one or more non-default values, each non-default value being stored at a respective index value in the bottom-most catalog, the non-default value representing that the plurality of dependencies for the node includes a dependency identified by the index value;
setting a reference index to be initially equal to a minimum index, the minimum index corresponding to a dependency that is first in an ordering of the plurality of dependencies;
repeatedly performing a search, from the reference index, for a next contiguous sequence of indexes having non-default values to generate pairs of index values representing ranges of contiguous indexes having non-default values until reaching an end of indexes having non-default values in the tiered array, including:
converting the reference index into a first subindex into a top-level catalog of the tiered array;
iterating through the top-level catalog from the first subindex to identify a first non-default element in the top-level catalog;
descending one or more tiers from the first non-default element in the top-level catalog to identify a first index that (i) is greater than or equal to the reference index and (ii) has a non-default value,
after identifying the first index, ascending one or more tiers in the tiered array and subsequently descending to identify a second index that is a last index in a contiguous sequence of indexes having non-default values from the first index up to and including the second index,
generating a pair of indexes comprising the first index and the second index, and
updating the reference index to be equal to an index greater than the second index; and
providing the generated pairs of index values identifying the plurality of dependencies for the node in response to the request.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
after ascending one tier in the tiered array to a first catalog, determining that the next element in the first catalog is a non-default element; and
in response, descending one tier to a catalog identified by the non-default element.

### Claim 3 (depends on 1)

The method of claim 1, wherein descending one or more tiers in the tiered array comprises:
identifying, at each catalog in the one or more tiers, a first non-default element; and
descending to a lower-tier catalog identified by the first non-default element.

### Claim 4 (depends on 1)

The method of claim 1, wherein ascending one or more tiers in the tiered array comprises determining that a particular catalog does not have any more non-default elements.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining that a particular non-bottom-most catalog does not have a subsequent non-default element; and
designating the last index of the bottom-most catalog as the last index in a range of indexes having non-default values.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element and a last non-default element of the catalog; and
limiting the search within the catalog to elements between the first non-default element and the last non-default element of the catalog.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element of the catalog, a last non-default element of the catalog, and a number of non-default elements in the catalog;
determining that a difference between index values for the first non-default element and the last non-default element indicates that all elements in the catalog are non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
obtaining, for a particular catalog, auxiliary data that specifies a number of non-default elements in the catalog;
determining that the auxiliary data indicates that the particular catalog has no non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 9 (depends on 1)

The method of claim 1, further comprising providing a user interface presentation that presents data representing one or more of the plurality of dependencies inbound to or outbound from the node.

### Claim 10

A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
receiving a request for a plurality of dependencies inbound to or outbound from a node in a raw dependency graph of software elements in a project, wherein each node in the raw dependency graph represents a software element in the project, and wherein each link in the raw dependency graph represents a software dependency of a first software element on a second software element;
identifying a tiered array representing the plurality of dependencies for the node in the raw dependency graph, the tiered array having a plurality of tiers, wherein each tier of the tiered array comprises one or more catalogs,
wherein each catalog in each tier, except for a bottom-most tier, stores (i) non-default elements that each identify a respective catalog at a lower tier and (ii) default elements that do not identify any catalogs, and
wherein each bottom-most catalog in the bottom-most tier stores one or more non-default values, each non-default value being stored at a respective index value in the bottom-most catalog, the non-default value representing that the plurality of dependencies for the node includes a dependency identified by the index value;
setting a reference index to be initially equal to a minimum index, the minimum index corresponding to a dependency that is first in an ordering of the plurality of dependencies;
repeatedly performing a search, from the reference index, for a next contiguous sequence of indexes having non-default values to generate pairs of index values representing ranges of contiguous indexes having non-default values until reaching an end of indexes having non-default values in the tiered array, including:
converting the reference index into a first subindex into a top-level catalog of the tiered array;
iterating through the top-level catalog from the first subindex to identify a first non-default element in the top-level catalog;
descending one or more tiers from the first non-default element in the top-level catalog to identify a first index that (i) is greater than or equal to the reference index and (ii) has a non-default value,
after identifying the first index, ascending one or more tiers in the tiered array and subsequently descending to identifying a second index that is a last index in a contiguous sequence of indexes having non-default values from the first index up to and including the second index,
generating a pair of indexes comprising the first index and the second index, and
updating the reference index to be equal to an index greater than the second index; and
providing the generated pairs of index values identifying the plurality of dependencies for the node in response to the request.

### Claim 11 (depends on 10)

The system of claim 10, wherein the operations further comprise:
after ascending one tier in the tiered array to a first catalog, determining that the next element in the first catalog is a non-default element; and
in response, descending one tier to a catalog identified by the non-default element.

### Claim 12 (depends on 10)

The system of claim 10, wherein descending one or more tiers in the tiered array comprises:
identifying, at each catalog in the one or more tiers, a first non-default element; and
descending to a lower-tier catalog identified by the first non-default element.

### Claim 13 (depends on 10)

The system of claim 10, wherein ascending one or more tiers in the tiered array comprises determining that a particular catalog does not have any more non-default elements.

### Claim 14 (depends on 10)

The system of claim 10, wherein the operations further comprise:
determining that a particular non-bottom-most catalog does not have a subsequent non-default element; and
designating the last index of the bottom-most catalog as the last index in a range of indexes having non-default values.

### Claim 15 (depends on 10)

The system of claim 10, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element and a last non-default element of the catalog; and
limiting the search within the catalog to elements between the first non-default element and the last non-default element of the catalog.

### Claim 16 (depends on 10)

The system of claim 10, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element of the catalog, a last non-default element of the catalog, and a number of non-default elements in the catalog;
determining that a difference between index values for the first non-default element and the last non-default element indicates that all elements in the catalog are non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 17 (depends on 10)

The system of claim 10, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a number of non-default elements in the catalog;
determining that the auxiliary data indicates that the particular catalog has no non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 18 (depends on 10)

The system of claim 10, wherein the operations further comprise providing a user interface presentation that presents data representing one or more of the plurality of dependencies inbound to or outbound from the node.

### Claim 19

A computer program product, encoded on one or more non-transitory computer storage media, comprising instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
receiving a request for a plurality of dependencies inbound to or outbound from a node in a raw dependency graph of software elements in a project, wherein each node in the raw dependency graph represents a software element in the project, and wherein each link in the raw dependency graph represents a software dependency of a first software element on a second software element;
identifying a tiered array representing the plurality of dependencies for the node in the raw dependency graph, the tiered array having a plurality of tiers, wherein each tier of the tiered array comprises one or more catalogs,
wherein each catalog in each tier, except for a bottom-most tier, stores (i) non-default elements that each identify a respective catalog at a lower tier and (ii) default elements that do not identify any catalogs, and
wherein each bottom-most catalog in the bottom-most tier stores one or more non-default values, each non-default value being stored at a respective index value in the bottom-most catalog, the non-default value representing that the plurality of dependencies for the node includes a dependency identified by the index value;
setting a reference index to be initially equal to a minimum index, the minimum index corresponding to a dependency that is first in an ordering of the plurality of dependencies;
repeatedly performing a search, from the reference index, for a next contiguous sequence of indexes having non-default values to generate pairs of index values representing ranges of contiguous indexes having non-default values until reaching an end of indexes having non-default values in the tiered array, including:
converting the reference index into a first subindex into a top-level catalog of the tiered array;
iterating through the top-level catalog from the first subindex to identify a first non-default element in the top-level catalog;
descending one or more tiers from the first non-default element in the top-level catalog to identify a first index that (i) is greater than or equal to the reference index and (ii) has a non-default value,
after identifying the first index, ascending one or more tiers in the tiered array and subsequently descending to identifying a second index that is a last index in a contiguous sequence of indexes having non-default values from the first index up to and including the second index,
generating a pair of indexes comprising the first index and the second index, and
updating the reference index to be equal to an index greater than the second index; and
providing the generated pairs of index values identifying the plurality of dependencies for the node in response to the request.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
after ascending one tier in the tiered array to a first catalog, determining that the next element in the first catalog is a non-default element; and
in response, descending one tier to a catalog identified by the non-default element.

### Claim 21 (depends on 19)

The computer program product of claim 19, wherein descending one or more tiers in the tiered array comprises:
identifying, at each catalog in the one or more tiers, a first non-default element; and
descending to a lower-tier catalog identified by the first non-default element.

### Claim 22 (depends on 19)

The computer program product of claim 19, wherein ascending one or more tiers in the tiered array comprises determining that a particular catalog does not have any more non-default elements.

### Claim 23 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
determining that a particular non-bottom-most catalog does not have a subsequent non-default element; and
designating the last index of the bottom-most catalog as the last index in a range of indexes having non-default values.

### Claim 24 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element and a last non-default element of the catalog; and
limiting the search within the catalog to elements between the first non-default element and the last non-default element of the catalog.

### Claim 25 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a first non-default element of the catalog, a last non-default element of the catalog, and a number of non-default elements in the catalog;
determining that a difference between index values for the first non-default element and the last non-default element indicates that all elements in the catalog are non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 26 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise:
obtaining, for a particular catalog, auxiliary data that specifies a number of non-default elements in the catalog;
determining that the auxiliary data indicates that the particular catalog has no non-default elements; and
in response, bypassing a linear search of the particular catalog.

### Claim 27 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise providing a user interface presentation that presents data representing one or more of the plurality of dependencies inbound to or outbound from the node.
