JPH0581093A - Duplex chain processing system - Google Patents
Duplex chain processing systemInfo
- Publication number
- JPH0581093A JPH0581093A JP3240707A JP24070791A JPH0581093A JP H0581093 A JPH0581093 A JP H0581093A JP 3240707 A JP3240707 A JP 3240707A JP 24070791 A JP24070791 A JP 24070791A JP H0581093 A JPH0581093 A JP H0581093A
- Authority
- JP
- Japan
- Prior art keywords
- entry
- link information
- information storage
- index
- duplex chain
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002457 bidirectional effect Effects 0.000 claims description 17
- 238000003672 processing method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 2
- COCAUCFPFHUGAA-MGNBDDOMSA-N n-[3-[(1s,7s)-5-amino-4-thia-6-azabicyclo[5.1.0]oct-5-en-7-yl]-4-fluorophenyl]-5-chloropyridine-2-carboxamide Chemical compound C=1C=C(F)C([C@@]23N=C(SCC[C@@H]2C3)N)=CC=1NC(=O)C1=CC=C(Cl)C=N1 COCAUCFPFHUGAA-MGNBDDOMSA-N 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、双方向チェーン処理方
式、特に、リンク情報を用いて双方向チェーンを処理す
る双方向チェーン処理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bidirectional chain processing system, and more particularly to a bidirectional chain processing system for processing a bidirectional chain using link information.
【0002】[0002]
【従来の技術】従来の双方向チェーン処理方式は、一つ
の例では双方向チェーンを持つテーブル構造が、前後の
エントリのインデックス値、あるいはアドレス値を、す
べてのエントリに前方向および後方向のリンク情報とし
てそれぞれ保持させることにより実現している。2. Description of the Related Art In a conventional bidirectional chain processing method, in one example, a table structure having a bidirectional chain is used to link index values or address values of preceding and following entries to all entries in forward and backward directions. This is realized by holding each as information.
【0003】また、従来の双方向チェーン処理方式は他
の例では、「テーブル処理における双方向リスト構成方
式(特開昭63−219032)」に掲載されているよ
うに次のようにすることで1つのリンク情報で実現して
いる。In another example, the conventional bidirectional chain processing method is performed as follows, as described in "Bidirectional list construction method in table processing (Japanese Patent Laid-Open No. 63-219032)". It is realized with one link information.
【0004】あらかじめ前方向と後方向の隣り合うテー
ブルのアドレスの排他的論理和を算出し、各テーブルの
ポインタ領域に格納しておく。An exclusive OR of the addresses of adjacent tables in the forward and backward directions is calculated in advance and stored in the pointer area of each table.
【0005】順方向の場合、現在処理しているテーブル
のポインタ領域の内容と順方向で1つ前のテーブルのア
ドレスとの排他的論理和を算出することにより、順方向
で1つ後のテーブルのアドレスを求める。In the forward direction, the exclusive OR of the contents of the pointer area of the table currently being processed and the address of the immediately preceding table in the forward direction is calculated. Ask for the address.
【0006】また、逆方向の場合、現在処理しているテ
ーブルのポインタ領域の内容と逆方向で1つ前のテーブ
ルのアドレスとの排他的論理和を算出することにより、
逆方向で1つ後のテーブルのアドレスを求める。In the reverse direction, the exclusive OR of the contents of the pointer area of the currently processed table and the address of the immediately preceding table in the reverse direction is calculated.
In the reverse direction, the address of the next table is obtained.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、このよ
うな上述した従来の双方向チェーン処理方式は、前方向
および後方向のリンク情報を格納する処理方式では、二
つのリンク情報格納領域が必要であるため、リンク情報
格納領域が占有するメモリサイズがエントリ数の大きな
テーブル程、無視できなくなるという欠点がある。However, the above-described conventional bidirectional chain processing method requires two link information storage areas in the processing method for storing the forward and backward link information. Therefore, there is a drawback that the memory size occupied by the link information storage area cannot be ignored in a table having a large number of entries.
【0008】また、前後のエントリのアドレス値の排他
的論理和を格納する処理方式では、リンク情報格納領域
を一つにすることでメモリを節約できるが、アドレスに
ついてブール演算が扱えるプログラム言語を必要とする
という欠点があった。Further, in the processing method for storing the exclusive OR of the address values of the preceding and succeeding entries, the memory can be saved by making the link information storage area one, but a programming language that can handle the Boolean operation for the address is required. There was a drawback to say.
【0009】[0009]
【課題を解決するための手段】本発明の双方向チェーン
処理方式は、双方向チェーンを持つテーブルの各エント
リに物理的な順番を示すインデックスを付し、前後のエ
ントリが持つインデックスの合計をリンク情報としてリ
ンク情報格納領域に格納するように構成される。According to the bidirectional chain processing method of the present invention, an index indicating a physical order is attached to each entry of a table having a bidirectional chain, and a total of indexes of preceding and following entries is linked. The information is configured to be stored in the link information storage area.
【0010】[0010]
【実施例】次に、本発明の実施例について、図面を参照
して詳細に説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0011】図1は本発明の一実施例を示すリンク状態
図である。FIG. 1 is a link state diagram showing an embodiment of the present invention.
【0012】図1に示す双方向チェーン処理方式におい
て、エントリ1は始端となるエントリでありインテック
ス値=1を持ち、エントリ2は終端となるエントリであ
りインデックス値=2を持つ。エントリ3〜5は中間に
位置するエントリである。In the bidirectional chain processing system shown in FIG. 1, entry 1 is an entry at the beginning and has an index value = 1, and entry 2 is an entry at the end and has an index value = 2. Entries 3 to 5 are entries located in the middle.
【0013】リンク情報格納領域6〜10は、(1)式
の結果であるリンク情報Aを格納している。なお、リン
ク情報格納領域6を計算する場合の前方向エントリのイ
ンデックス値は“0”とし、リンク情報格納領域7を計
算する場合の後方向エントリのインデックス値は“0”
とする。The link information storage areas 6 to 10 store the link information A which is the result of the equation (1). The index value of the forward entry when calculating the link information storage area 6 is “0”, and the index value of the backward entry when calculating the link information storage area 7 is “0”.
And
【0014】さらに、リンク状態a〜dは各エントリ間
の正順方向のリンク状態を示し、リンク状態e〜hは各
エントリ間の逆順方向のリンク状態を示す。Further, the link states a to d indicate the link states in the forward direction between the entries, and the link states e to h indicate the link states in the reverse forward direction between the entries.
【0015】順方向チェーンは、エントリ1→エントリ
4→エントリ3→エントリ5→エントリ2とし、逆順方
向のチェーンは、前記順方向チェーンの逆向きとする。The forward chain is entry 1 → entry 4 → entry 3 → entry 5 → entry 2, and the reverse forward chain is the reverse of the forward chain.
【0016】以下の説明では、チェーンを辿ってi番目
のエントリのインデックス値をI(i)として表す。In the following description, the index value of the i-th entry in the chain is represented as I (i).
【0017】ここで、正順検索の場合はエントリ1を1
番目と数え、逆順検索の場合はエントリ2を1番目と数
える。Here, in the case of the normal order search, the entry 1 is set to 1
The second entry is counted as the first entry in the case of reverse search.
【0018】インデックスI(i)のエントリiのリン
ク情報格納領域の値であるリンク情報Aは次の(1)式
で示される。The link information A which is the value of the link information storage area of the entry i of the index I (i) is expressed by the following equation (1).
【0019】 A=I(i−1)+I(i+1)・・・(1) また、後続エントリ(i+1)のインデックス値I(i
+1)は、次の(2)式で示されるリンク値Bとして求
められる。A = I (i−1) + I (i + 1) (1) Further, the index value I (i) of the subsequent entry (i + 1)
+1) is obtained as the link value B shown in the following equation (2).
【0020】 B=A−I(i−1)・・・(2) さて、正順検索ではリンク状態a〜dを用いるが、エン
トリ3からエントリ5のインデックス値I(4)を求め
る場合は、式(3)に示すようとなる。B = A−I (i−1) (2) Now, the link states a to d are used in the forward order search, but when the index values I (4) of the entries 3 to 5 are obtained. , As shown in equation (3).
【0021】 エントリ5の エントリ3の エントリ4の インデックス値=リンク情報格納領域8の値−インデックス ={I(2)+I(4)}−I(2) ・・・(3) =I(4) また、逆順検索はリンク状態e〜hを用いるが、エント
リ3からエントリ4のインデックス値I(2)を求める
場合は、式(4)に示すようとなる。Index value of entry 5 of entry 3 of entry 5 = value of link information storage area 8-index = {I (2) + I (4)}-I (2) ... (3) = I (4 In addition, although the reverse order search uses the link states e to h, when the index value I (2) of the entry 3 to the entry 4 is obtained, the expression (4) is obtained.
【0022】 エントリ4の エントリ3の エントリ5の インデックス値=リンク情報格納領域8の値−インデックス ={I(2)+I(4)}−I(4) ・・・(4) =I(2) なお、式(2)で示されるリンク情報Bが“1”か
“2”かを判定することで、検索の終了を判断できる。Index value of entry 4 of entry 4 of entry 4 = value of link information storage area 8-index = {I (2) + I (4)}-I (4) (4) = I (2 It should be noted that it is possible to determine the end of the search by determining whether the link information B represented by the equation (2) is “1” or “2”.
【0023】[0023]
【発明の効果】本発明の双方向チェーン処理方式は、唯
一のリンク情報格納領域を各エントリに確保することに
より、双方向チェーンのテーブル構造を実現することが
できるため、メモリの節約を達成できるとともに、イン
デックスと加減算を使用しているため、アドレスやプー
ル演算を扱えないコンピュータ言語でも使用できるの
で、メモリを節約しつつ双方向チェーンのテーブルを構
築達成できるという効果がある。According to the bidirectional chain processing method of the present invention, the memory structure can be saved because the bidirectional chain table structure can be realized by securing a unique link information storage area for each entry. At the same time, since indexes and addition / subtraction are used, it is possible to use even in computer languages that cannot handle addresses and pool operations, so that it is possible to construct a bidirectional chain table while saving memory.
【図1】本発明の一実施例を示すリンク状態図。FIG. 1 is a link state diagram showing an embodiment of the present invention.
1〜4 エントリ 6〜10 リンク情報格納領域 a〜h リンク状態 1-4 entries 6-10 link information storage area ah link status
───────────────────────────────────────────────────── フロントページの続き (72)発明者 市川 博之 新潟県新潟市万代四丁目4番27号新潟日本 電気ソフトウエア株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hiroyuki Ichikawa 4-4 27 Bandai 4-chome, Niigata City, Niigata Prefecture Niigata Nippon Electric Software Co., Ltd.
Claims (2)
トリに物理的の順番を示すインデックスを付し、前後の
チェーンのエントリが持つインデックスの合計を当該エ
ントリのリンク情報としてリンク情報格納領域に格納す
ることを特徴とする双方向チェーン処理方式。1. An index indicating a physical order is attached to each entry of a table having a bidirectional chain, and the total of indexes of the entries of the preceding and following chains is stored in a link information storage area as link information of the entry. A bidirectional chain processing method characterized in that
ントリのリンク情報と先行するエントリのインデックス
値との差により求めることを特徴とする双方向チェーン
処理方式。2. A bidirectional chain processing method, wherein an index value of a subsequent entry is obtained by a difference between link information of the entry and an index value of a preceding entry.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3240707A JPH0581093A (en) | 1991-09-20 | 1991-09-20 | Duplex chain processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3240707A JPH0581093A (en) | 1991-09-20 | 1991-09-20 | Duplex chain processing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0581093A true JPH0581093A (en) | 1993-04-02 |
Family
ID=17063514
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3240707A Pending JPH0581093A (en) | 1991-09-20 | 1991-09-20 | Duplex chain processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0581093A (en) |
-
1991
- 1991-09-20 JP JP3240707A patent/JPH0581093A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0181516A2 (en) | Data processing apparatus having efficient min and max functions | |
| KR920004962A (en) | Virtual long command memory device for digital signal processing device and method of generating the command | |
| JPH0581093A (en) | Duplex chain processing system | |
| US5751999A (en) | Processor and data memory for outputting and receiving data on different buses for storage in the same location | |
| JPH0371327A (en) | Binary magnitude comparator executing nonsynchronous comparing operation and method for the same | |
| JPH01273132A (en) | Microprocessor | |
| KR100457040B1 (en) | Apparatus and method for data processing using multiply-accumulate instructions | |
| JPS619766A (en) | Data transfer device | |
| JPH05108345A (en) | Branch instruction processor | |
| JPH0743942B2 (en) | Compound associative memory | |
| JP2511063B2 (en) | Pipeline control method | |
| JPS60136866A (en) | Estimating device of character | |
| JP3473506B2 (en) | Pipeline processing equipment | |
| JPH0991139A (en) | Information processing device | |
| JPH0553805A (en) | Electronic computer | |
| JP2570407B2 (en) | Programmable controller | |
| JPS61109145A (en) | Calculation system for memory address | |
| US20030126401A1 (en) | Carry generation in address calculation | |
| JPH04245333A (en) | information processing equipment | |
| JPS60129833A (en) | Storage device | |
| JPS59189451A (en) | Information processing device | |
| JPS59158443A (en) | Data flow processing | |
| JPH04326151A (en) | Buffer control circuit | |
| JPH08221991A (en) | Multiple selection separation method and apparatus in associative memory | |
| JPH01296882A (en) | Teletext receiver |