• Patent Title: Text file binary search device, search method, program, and information recording medium
  • Application No.: US16334862
    Application Date: 2016-09-20
  • Publication No.: US11645040B2
    Publication Date: 2023-05-09
  • Inventor: Hiroaki IwaseJunji 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
Text file binary search device, search method, program, and information recording medium
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.
Information query
Patent Agency Ranking
0/0