Search device, search method, program, and information recording medium
AssigneeRakuten, Inc.
InventorsHiroaki IWASE, Junji TORII
Life of this patent
Estimating the term…
Loading patent…
AssigneeRakuten, Inc.
InventorsHiroaki IWASE, Junji TORII
Estimating the term…
A device searches a file being recorded that includes lines sorted in accordance with keys included in the lines to find a line that matches a pattern. When the device receives a pattern, it initializes upper and lower limits of a search range and calculates a middle position between the limits. It acquires, from the file, a middle line that starts at or before the middle position and ends after it. If the key included in the middle line matches the pattern, it outputs the middle line and re-sets the upper or lower limit based on whether the key included in the middle line is greater or less than the pattern and, if there is a distance greater than a length of a newline between the limits, repeats the procedure starting from the middle position. Otherwise, it outputs a result to the effect that no matching line has been found.
A search device comprising:
A method for searching a recorder recording a text file that includes an array of a plurality of lines sorted in an order of keys, each of the keys being included in each of the plurality of lines, each of the lines including a newline placed at an end of the line, the method comprising:
8-9. (canceled)
A non-transitory computer-readable information recording medium recording a program for causing a computer that comprises:
Dependencies are inferred from the claim text.