# US 2018/0121509 A1 · Information processing device, information processing method, and recording medium

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

- Number: US 2018/0121509 A1
- Document ID: US20180121509A1
- Status: Published application
- Kind: A1
- Application number: 15/571,870
- Filed: 2016-04-26
- Published: 2018-05-03
- Earliest claimed: 2015-05-07
- Assignees: NEC Corporation
- Applicants: NEC Corporation
- Inventors: Masafumi OYAMADA
- Web page: https://patentgrep.com/patent/US20180121509A1

## CPC

- G06F 16/24545: {Selectivity estimation or determination}
- G06F 16/00: Information retrieval; Database structures therefor; File system structures therefor
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This information processing device is provided with: a statistical value storing means that stores a statistical value for each block, said block being a division of a data set; a query history storing unit that stores information related to a past query as a query history; an estimating means that, on the basis of the query history, estimates a block size when dividing the data set into at least two blocks so as to minimize the cost of statistical processing carried out using a statistical value for each block; and a block creating means that divides the data set using the block size estimated by the estimating means, and, for each divided block, calculates a statistical value related to the data included in the block and causes the statistical value storing means to store the statistical value.

## Claims

### Claim 1

An information processing device comprising:
a statistical value holding unit configured to hold a statistical value of data included in each of two or more blocks into which a data set is divided;
a query history holding unit configured to hold information about a past query on the data set as a query history;
an estimation unit configured to, based on the query history, estimate a block size that minimizes an average cost of deriving an answer to a query by using the statistical value of at least one of the blocks; and
a block creation unit configured to, based on the block size estimated by the estimation unit, create two or more blocks by dividing the data set, calculate the statistical value for each of the created blocks and cause the statistical value holding unit to hold the calculated statistical values.

### Claim 2 (depends on 1)

The information processing device according to claim 1, wherein
when the query is made, the estimation unit acquires, based on the query history, an average value of a number of blocks whose data was used instead of the statistical values and, using the average value, estimates the block size.

### Claim 3 (depends on 1)

The information processing device according to claim 1, wherein
the estimation unit has a cost function for calculating the average cost taking the block size as a variable and, using the cost function, estimates the block size for minimizing the average cost.

### Claim 4 (depends on 1)

The information processing device according to claim 1, wherein
the estimation unit takes, as the average cost, a sum of a cost of referring to the statistical values calculated in advance for each of the blocks and a cost of reading the blocks including necessary data for deriving an answer to the query, and estimates the block size for minimizing the average cost.

### Claim 5 (depends on 4)

The information processing device according to claim 4, wherein
the estimation unit calculates the cost of referring to the statistical values (ReadMetaCost) by the use of a following equation, the equation including a total number of blocks B, an average value of a number of blocks whose data was used instead of using the statistical values P, a number of bytes to be used for holding statistical value of one block Sagg and a page size of a storage Spage.
ReadMetaCost
=
⌈
(
B
-
P
)


Sagg
Spage
⌉
[
Equation
.

1
]

### Claim 6 (depends on 4)

The information processing device according to claim 4, wherein
the estimation unit calculates the cost of reading blocks (ReadBlockCost) by the use of a following equation, the equation including a number of data elements N, a total number of blocks B, an average value of a number of blocks whose data was used instead of using the statistical values P, a size of one data element Stuple and a page size of a storage Spage.
ReadBlockCost
=
⌈
P

⌈
N
B
⌉


Stuple
Spage
⌉
[
Equation
.

2
]

### Claim 7 (depends on 1)

The information processing device according to claim 1, wherein
the estimation unit estimates the block size for minimizing the average cost of deriving the answer, in such a way that a holding size of the statistical value holding unit configured to hold of the statistical values does not exceed an upper limit value set in advance.

### Claim 8 (depends on 1)

The information processing device according to claim 1, wherein
the data set is configured as a table including two or more records having an attribute; and
the block creation unit creates the table in which the records are rearranged in terms of the attribute, and subsequently divides the table into two or more blocks each including one or more of the records.

### Claim 9

A information processing method comprising:
holding information about a past query on a data set as a query history;
based on the query history, estimating a block size that minimizes an average cost of deriving an answer to a query by using statistical value of at least one of blocks; and
based on the block size estimated creating two or more blocks by dividing the data set, and also calculating statistical values for each of the created blocks.

### Claim 10

A non-transitory computer-readable recording medium storing an information processing program for causing a computer to execute:
holding information about a past query on a data set as a query history;
based on the query history, estimating a block size the minimizes an average cost of deriving an answer to a query by using statistical value of at least one of the blocks; and
based on the block size estimated, creating two or more blocks by dividing the data set, calculating the statistical value for each of the created blocks.
