×

Sort and merge system using tags associated with the current records being sorted to lookahead and determine the next record to be sorted

  • US 5,349,684 A
  • Filed: 07/22/1992
  • Issued: 09/20/1994
  • Est. Priority Date: 06/30/1989
  • Status: Expired due to Term
First Claim
Patent Images

1. A sorting system for serially processing records comprising:

  • input means for serially supplying groups of unordered record;

    sorting means for serially receiving said groups of unordered records from said input means and serially outputting strings of said records in sorted order;

    output means for serially receiving said strings of sorted records from said sorting means and for serially storing said strings of sorted records;

    sort control means having an initial mode and a merge mode of operation and being connected to said input means, said sorting means and said output means;

    said sort control means operating in said initial mode to effect serial inputting of said unordered records from each of said groups from said input means to said sorting means and to effect storage of said strings of sorted records in said output means;

    said sort control means thereafter operating in said merge mode to effect serial inputting of said sorted records from said strings of sorted records stored in said output means to said input means and from said input means to said sorting means for sorting of said sorted records from said strings into another string comprising all of said records of said strings in sorted order and to effect storage of said another string in said output means;

    said sort control means having a sort sequencer means for operating in said merge mode to initially supply the smallest record of each of said strings of sorted records to said input means;

    said input means having tagging means for adding to each of said sorted records a tag identifying the string into which each of said sorted records was sorted and serially supplying said sorted records with tags to said sorting means;

    said sorting means serially receiving said sorted records with tags from said input means and having means for selecting one of said records to be outputted and for generating a signal indicating that one of said record has been selected and means, responsive to said indicating signal for examining the tag of said one of aid records in said sorting means that is about to be outputted before said one record is completely outputted from said sorting means and identifying the string into which said one record was sorted;

    said sort sequencer means responsive to said identification of said string from said tag of said one record to be outputted to select the smallest of any remaining records in said identified string, which is the only record that could be smaller than any record in said sorting means, to be inputted to said sorting means;

    said sort sequencer means responsive to said identification of said string from said tag of said one record to be outputted to determine when said identified string is empty and then to select the smallest record in any non-empty one of said strings to be inputted to said sorting means;

    said sorting means sorting said records from said strings into said another string comprising all of said records of said strings in sorted order and serially outputting said another string of said records in sorted order;

    said output means serially receiving said another string of sorted records from said sorting means and serially storing said another string of sorted records.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×