Invention Grant
- Patent Title: Text file binary search device, search method, program, and information recording medium
-
Application No.: US16334862Application Date: 2016-09-20
-
Publication No.: US11645040B2Publication Date: 2023-05-09
- Inventor: Hiroaki Iwase , Junji Torii
- Applicant: Rakuten Group, Inc.
- Applicant Address: JP Tokyo
- Assignee: Rakuten Group, Inc.
- Current Assignee: Rakuten Group, Inc.
- Current Assignee Address: JP Tokyo
- Agency: Sughrue Mion, PLLC
- International Application: PCT/JP2016/077742 2016.09.20
- International Announcement: WO2018/055680A 2018.03.29
- Date entered country: 2019-03-20
- Main IPC: G06F7/02
- IPC: G06F7/02

Abstract:
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.
Public/Granted literature
- US20200026491A1 SEARCH DEVICE, SEARCH METHOD, PROGRAM, AND INFORMATION RECORDING MEDIUM Public/Granted day:2020-01-23
Information query