# US 2015/0145866 A1 · Method and apparatus for graphical processing unit (gpu) accelerated large-scale web community detection

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

- Number: US 2015/0145866 A1
- Document ID: US20150145866A1
- Status: Published application
- Kind: A1
- Application number: 14/089,307
- Filed: 2013-11-25
- Published: 2015-05-28
- Earliest claimed: 2013-11-25
- Assignees: Xerox Corporation
- Applicants: Xerox Corporation
- Inventors: Changjun Wu; Tong Sun
- Web page: https://patentgrep.com/patent/US20150145866A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- G06T 11/23: using straight lines or curves
- G06T 11/26: Drawing of charts or graphs
- G06T 11/20: Drawing from basic elements
- G06T 2210/32: Image data format
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method, non-transitory computer readable medium, and apparatus for large-scale web community detection using a graphical processing unit (GPU) are disclosed. For example, the method receives an input graph formatted into one or more first adjacency lists from a central processing unit (CPU), performs a first level shingling on the one or more first adjacency lists, sends the first level shingling to the CPU to generate an aggregate graph based upon the first level shingling, receives the aggregate graph formatted into one or more second adjacency lists from the CPU, performs a second level shingling on the one or more second adjacency lists and sends the second level shingling to the CPU to generate a dense sub-graph that identifies one or more web communities.

## Claims

### Claim 1

A method for large-scale web community detection using a graphical processing unit (CPU), comprising:
receiving, by the GPU, an input graph formatted into one or more first adjacency lists from a central processing unit (CPU);
performing, by the GPU, a first level shingling on the one or more first adjacency lists;
sending, by the GPU, the first level shingling to the CPU to generate an aggregate graph based upon the first level shingling;
receiving, by the GPU, the aggregate graph formatted into one or more second adjacency lists from the CPU;
performing, by the GPU, a second level shingling on the one or more second adjacency lists; and
sending, by the GPU, the second level shingling to the CPU to generate a dense sub-graph that identifies one or more web communities.

### Claim 2 (depends on 1)

The method of claim 1, wherein receiving the input graph formatted into one or more first adjacency lists comprises:
loading the one or more first adjacency lists into a continuous memory space of a global memory of the GPU; and
creating a data structure on the GPU to mark each boundary between the one or more first adjacency lists, wherein the data structure is used by the CPU to merge the one or more first adjacency lists that are split during the performing of the first level shingling.

### Claim 3 (depends on 1)

The method of claim 1, wherein the performing the first level shingling comprises:
performing a random hash operation to generate a random permutation of the one or more first adjacency lists; and
performing a segmented sorting operation to reorganize each segment of the random permutation of the one or more first adjacency lists that is generated.

### Claim 4 (depends on 3)

The method of claim 3, wherein the performing the random hash operations comprises repeating the random hash operation with a different hash function for each iteration.

### Claim 5 (depends on 3)

The method of claim 3, wherein the performing the segmented sorting operation comprises:
processing in parallel the each segment of the random permutation of the one or more first adjacency lists in a thread block of a plurality of thread blocks of a shared memory of the GPU, wherein each one of the plurality of thread blocks comprises a fixed size.

### Claim 6 (depends on 5)

The method of claim 5, wherein a segment of the random permutation of the one or more first adjacency lists is split into multiple thread blocks when the segment is larger than the fixed size of the thread block.

### Claim 7 (depends on 5)

The method of claim 5, wherein the processing the each segment comprises:
performing a segmented sorting operation on the each segment.

### Claim 8 (depends on 7)

The method of claim 7, wherein the segmented sorting operation comprises a parallel counting sort.

### Claim 9 (depends on 8)

The method of claim 8, wherein the parallel counting sort comprises:
calculating a left side counter by counting a number of elements that need to be moved to a left side;
calculating a right side counter by counting a number of elements that need to be moved to a right side; and
determining a position of an element based upon a difference of the left side counter and the right side counter.

### Claim 10

A non-transitory computer-readable medium storing a plurality of instructions which, when executed by a graphical processing unit (GPU), cause the GPU to perform operations for large-scale web community detection, the operations comprising:
receiving an input graph formatted into one or more first adjacency lists from a central processing unit (CPU);
performing a first level shingling on the one or more first adjacency lists;
sending the first level shingling to the CPU to generate an aggregate graph based upon the first level shingling;
receiving the aggregate graph formatted into one or more second adjacency lists from the CPU;
performing a second level shingling on the one or more second adjacency lists; and
sending the second level shingling to the CPU to generate a dense sub-graph that identifies one or more web communities.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein receiving the input graph formatted into one or more first adjacency lists comprises:
loading the one or more first adjacency lists into a continuous memory space of a global memory of the GPU; and
creating a data structure on the GPU to mark each boundary between the one or more first adjacency lists, wherein the data structure is used by the CPU to merge the one or more first adjacency lists that are split during the performing of the first level shingling.

### Claim 12 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the performing the first level shingling comprises:
performing a random hash operation to generate a random permutation of the one or more first adjacency lists; and
performing a segmented sorting operation to reorganize each segment of the random permutation of the one or more first adjacency lists that is generated.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the performing the random hash operations comprises repeating the random hash operation with a different hash function for each iteration.

### Claim 14 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the performing the segmented sorting operation comprises:
processing in parallel the each segment of the random permutation of the one or more first adjacency lists in a thread block of a plurality of thread blocks of a shared memory of the GPU, wherein each one of the plurality of thread blocks comprises a fixed size.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein a segment of the random permutation of the one or more first adjacency lists is split into multiple thread blocks when the segment is larger than the fixed size of the thread block.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the processing the each segment comprises:
performing a segmented sorting operation on the each segment.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the segmented sorting operation comprises a parallel counting sort.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the parallel counting sort comprises:
calculating a left side counter by counting a number of elements that need to be moved to a left side;
calculating a right side counter by counting a number of elements that need to be moved to a right side; and
determining a position of an element based upon a difference of the left side counter and the right side counter.

### Claim 19

A method for large-scale web community detection using a graphical processing unit (GPU), comprising:
receiving, by the GPU, in a global memory of the GPU an input graph formatted into one or more first adjacency lists from a central processing unit (CPU), wherein one or more boundaries between the one or more first adjacency lists is marked;
performing, by the GPU, a first level shingling on the one or more first adjacency lists comprising a first plurality of random hash operations to generate a first plurality of different random permutations of the one or more first adjacency lists, wherein each one of the first plurality of random hash operations applies a different hash function and performing a first segmented sorting operation one each one of the first plurality of different random permutations using each one of a plurality of threads in a shared memory of the GPU in parallel;
sending, by the GPU, the first level shingling to the CPU to generate an aggregate graph based upon the first level shingling;
receiving, by the GPU, the aggregate graph formatted into one or more second adjacency lists from the CPU), wherein one or more boundaries between the one or more second adjacency lists is marked;
performing, by the GPU, a second level shingling on the one or more second adjacency lists comprising a second plurality of random hash operations to generate a second plurality of different random permutations of the one or more second adjacency lists, wherein each one of the second plurality of random hash operations applies a different hash function and performing a second segmented sorting operation one each one of the second plurality of different random permutations using each one of a plurality of threads in a shared memory of the GPU in parallel; and
sending, by the GPU, the second level shingling to the CPU to generate a dense sub-graph that identifies one or more web communities.

### Claim 20 (depends on 19)

The method of claim 19, wherein one or more segments of the first plurality of different random permutation or the second plurality of different random permutations is split into multiple thread blocks when the one or more segments is larger than a fixed size of the thread block.
