首页>
外国专利>
Method and apparatus for finding longest and closest matching string in history buffer prior to current string
Method and apparatus for finding longest and closest matching string in history buffer prior to current string
展开▼
机译:在当前字符串之前在历史缓冲区中找到最长和最接近的匹配字符串的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
The invention provides a method and apparatus for finding a longest and closest matching string in a history buffer prior to a current string. A search algorithm in accordance with the invention first tries to find the longest matching old string (MOS) in the history buffer as its major task, and in a case where two MOS's are found to have the same longest matching length, the search algorithm tries to select the MOS closest to the current position as its minor task. Linked lists are constructed as searching progresses to speed the search process. The linked lists define a fast-path array which points to all locations within the history buffer containing a specified code sequence. Pointers to locations outside the history buffer are optionally removed and their space returned to memory free space.
展开▼