KR19990058595A - Same data processing in binary tree - Google Patents
Same data processing in binary tree Download PDFInfo
- Publication number
- KR19990058595A KR19990058595A KR1019970078734A KR19970078734A KR19990058595A KR 19990058595 A KR19990058595 A KR 19990058595A KR 1019970078734 A KR1019970078734 A KR 1019970078734A KR 19970078734 A KR19970078734 A KR 19970078734A KR 19990058595 A KR19990058595 A KR 19990058595A
- Authority
- KR
- South Korea
- Prior art keywords
- binary tree
- data
- subtree
- node
- processing
- Prior art date
Links
Abstract
본 발명은 이동통신 시스템의 홈 위치 등록기 또는 인증 센터의 데이터 관리 및 처리에 사용되는 이진 트리에서의 동일 데이터 처리방법에 관한 것으로,The present invention relates to a method of processing the same data in a binary tree used for data management and processing of a home location register or an authentication center of a mobile communication system.
루트(56), 좌측 서브트리(52), 우측 서브트리(54) 및 중복 서브트리(58)를 포함하는 노드(50)로 구성되는 이진 트리가 사용되어 데이터가 처리되는 것을 특징으로 한다.A binary tree consisting of a node 50 comprising a root 56, a left subtree 52, a right subtree 54, and a redundant subtree 58 is used to process data.
이것에 의해, 이진 트리의 특성이 그대로 활용되면서 중복 데이터의 처리가 가능해진다.This makes it possible to process duplicate data while utilizing the characteristics of the binary tree as it is.
Description
본 발명은 이진 트리에서의 동일 데이터 처리방법에 관한 것으로, 보다 상세하게는 이동통신 시스템의 홈 위치 등록기(HLR : Home Location Register)또는 인증 센터(AC : Authentication Center)의 데이터 관리 및 처리에 사용되는 이진 트리에서의 동일 데이터 처리방법에 관한 것이다.The present invention relates to a method of processing the same data in a binary tree, and more particularly, to the data management and processing of a home location register (HLR) or authentication center (AC) of a mobile communication system. A method of processing the same data in a binary tree.
종래의 경우를 도 1 및 도 2를 참조하여 설명하기로 한다.A conventional case will be described with reference to FIGS. 1 and 2.
일반적으로 데이터를 관리하는데 있어서는 물리적인 데이터 베이스를 디스크에 구축하여 데이터를 관리 및 처리하였으나, 네트워크를 이용한 통신에 있어서는 빠른 데이터 전송의 필요성이 부각되고 있는 바, 이를 위하여는 데이터의 신속한 처리가 요청되어 메모리상에 데이터 베이스를 구축하여 데이터의 관리 및 처리가 이루어진다.In general, in managing data, a physical database is built on a disk to manage and process data. However, in the case of communication using a network, a need for fast data transmission is emerging. The database is built on the memory to manage and process data.
전술한 데이터 베이스의 생성방법에 하나로서 이진 트리가 이용될 수 있는데, 종래의 이진 트리는 루트(36)와 좌측 서브트리(32) 및 우측 서브트리(34)를 포함하는 노드(30)로 구성되며, 각각의 노드는 상위 노드의 서브트리가 될 수 있도록 구성된다.A binary tree may be used as one of the above-described methods for generating a database. A conventional binary tree is composed of a node 30 including a root 36, a left subtree 32, and a right subtree 34. Each node is configured to be a subtree of a higher node.
이진 트리에서 데이터 검색의 예를 들면, 1 부터 7 까지의 키(Key) 값을 갖는 데이터 베이스는 도 1과 같이 구성된다. 여기서, 킷값이란 데이터 베이스를 구성하는 데이터의 하나로서, 검색·처리 등을 위하여 관련 데이터 군을 대표하는 데이터이다.For example of data retrieval in a binary tree, a database having a key value of 1 to 7 is configured as shown in FIG. Here, the kit value is one of the data constituting the database, and is a data representing a related data group for searching and processing.
키값 "7"과 관련된 데이터를 검색하고자 하는 경우 먼저, 키값 7 이 최상위 노드의 루트 값 4 와 비교된다. 이 때, 7 > 4 이므로 다시 우측 서브트리의 루트 값과 비교되고, 7 > 6 이므로 다시 한 번 우측 서브트리의 루트 값 7 과 비교되어 같은 값을 갖는 것이 확인되면, 키값 7 에 관련된 데이터가 호출(억세스)된다.When searching for data related to the key value "7", first, the key value 7 is compared with the root value 4 of the top node. In this case, when 7> 4, the result is compared with the root value of the right subtree again, and because 7> 6, the result is compared with the root value 7 of the right subtree once again and confirmed to have the same value. (Accessed).
순차적인 데이터 베이스의 검색 기법에서는 위와 같은 경우 최대 7번(1부터 7까지)의 비교가 필요하나, 이진 트리에서는 최대 3번의 비교만으로 원하는 데이터가 검색되므로 데이터의 처리속도가 항상된다.In the sequential database search technique, the maximum 7 times (from 1 to 7) comparison is required in the above cases, but the binary data is always processed because the desired data is searched by only the maximum 3 comparisons.
그런데, 이와 같이 방식의 종래 이진 트리에서는 그 노드(30)의 유한성으로 인하여 - 다시 말하면, 중복되는 데이터가 할당될 공간이 없으므로 - 동일한 데이터가 중복되는 데이터 베이스의 경우 이진 트리에 의한 처리가 불가능해지는 문제점이 남게된다.However, in the conventional binary tree of the scheme, due to the finiteness of the node 30-that is, since there is no space to be allocated with duplicate data-in the case of a database where the same data is duplicated, processing by the binary tree becomes impossible. The problem remains.
따라서, 본 발명은 상술한 종래의 문제점을 극복하기 위한 것으로서, 본 발명의 목적은 이진 트리를 변형 처리하여 중복 데이터의 처리를 가능하게 하면서 이진 트리의 특성이 유지되는 이진 트리에서의 동일 데이터 처리방법을 제공하는데 있다.Accordingly, an object of the present invention is to overcome the above-mentioned problems, and an object of the present invention is to modify a binary tree to allow processing of duplicate data, while maintaining the characteristics of the binary tree, and thereby maintaining the same data in the binary tree. To provide.
상기 본 발명의 목적을 달성하기 위한 이진 트리에서의 동일 데이터 처리방법의 일예로서, 본 발명은As an example of the same data processing method in a binary tree to achieve the object of the present invention, the present invention
루트, 좌측 서브트리, 우측 서브트리 및 중복 서브트리를 포함하는 노드로 구성되는 이진 트리가 사용되어 데이터가 처리되는 것을 특징으로 한다.A binary tree consisting of a node comprising a root, a left subtree, a right subtree, and a duplicate subtree is used to process data.
이러한 구성에 의해, 이진 트리의 특성이 그대로 활용되면서 중복 데이터의 처리가 가능해진다.This configuration enables the processing of duplicate data while utilizing the characteristics of the binary tree as it is.
도 1은 일반적인 이진 트리에서 사용되는 노드의 형식을 도시한 구성도1 is a block diagram showing the format of a node used in a general binary tree
도 2는 일반적인 이진 트리의 구성을 도시한 개념도2 is a conceptual diagram showing the configuration of a general binary tree
도 3은 본 발명에 따른 노드의 형식을 도시한 구성도3 is a block diagram showing the format of a node according to the present invention;
도 4는 본 발명에 따른 이진 트리의 구성을 도시한 개념도4 is a conceptual diagram showing the configuration of a binary tree according to the present invention;
〈도면의 주요 부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>
10,30,50 : 노드 32,52 : 좌측 서브트리10,30,50: Node 32,52: Left subtree
34,54 : 우측 서브트리 36,56 : 루트34,54: right subtree 36,56: root
58 : 중복 서브트리58: duplicate subtree
이하, 본 발명의 실시예를 첨부도면을 참조하여 상세히 설명하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 3을 참조하면, 본 발명에 따른 이진 트리에서의 동일 데이터 처리방법에 사용되는 노드(50)에는 중복되는 동일한 데이터의 처리가 가능하도록 루트(56), 좌측 서브트리(52) 및 우측 서브트리(54)외에 중복 서브트리(58)가 추가된다. 상기 중복 서브트리(58)에는 중복되는 데이터의 개수등 관련 정보가 할당되어, 데이터가 관리된다.Referring to FIG. 3, the node 50 used in the same data processing method in the binary tree according to the present invention has a root 56, a left subtree 52, and a right subtree so that the same data can be processed repeatedly. In addition to (54), a duplicate subtree 58 is added. The redundant subtree 58 is assigned relevant information such as the number of redundant data and data is managed.
도 4를 참조하면, 중복되는 키값이 포함된 28+, 103, 120+, 28+, 70+, 148, 120+, 95, 70+, 158, 207, 245 의 데이터(여기서, "+"는 중복되는 동일한 키값을 표시하기 위함이다)로 구축된 이진 트리가 제시된다.Referring to FIG. 4, data of 28 + , 103, 120 + , 28 + , 70 + , 148, 120 + , 95, 70 + , 158, 207, and 245 containing duplicate key values, where " + " To represent duplicate identical key values).
중복 데이터인 키값 "70"의 노드(50)를 예로 들면, 좌측 서브트리(52)에는 "28"과 관련된 데이터, 우측 서브트리(54)에는 "95"와 관련된 데이터, 루트(56)는 "70"과 관련된 데이터, 중복 서브트리(58)는 중복되는 "70"의 개수 등 관련 정보가 할당된다.Taking the node 50 of the key value "70" which is duplicate data as an example, the data related to "28" in the left subtree 52, the data related to "95" in the right subtree 54, and the root 56 are " Data related to "70", the redundant subtree 58 is assigned related information such as the number of "70" overlap.
중복 데이터가 아닌 키값 "207"이 처리되는 과정은 종래와 같다. 먼저, 207 은 최상위 노드의 루트 값 103 과 비교되는데, 207 > 103 이므로 다시 우측 서브트리의 루트 값과 비교된다. 이 때, 207 > 148 이므로 다시 한 번 우측 서브트리의 루트 값 207 과 비교되어 같은 값을 갖는 것이 확인되면, 207 에 관련된 정보가 호출(억세스)된다.The process of processing the key value " 207 " rather than the duplicate data is the same as the conventional method. First, 207 is compared with the root value 103 of the highest node. Since 207> 103, the value is again compared with the root value of the right subtree. At this time, since it is 207> 148, once compared with the root value 207 of the right subtree and confirming that it has the same value, the information related to 207 is called (accessed).
한편, 중복 데이터인 키값 "70" 의 경우, 최상위 노드의 루트 값 103 과 비교되는데, 70 < 103 이므로 다시 좌측 서브트리의 루트 값과 비교된다. 이 때, 70 = 70 으로 같은 값을 갖는 것이 확인되면, 70 에 관련된 중복 서브트리내의 정보가 호출된다. 따라서, 검색하고자 하는 키값 "70"의 개수 및 관련 데이터가 이진 트리의 특성이 유지된 채 처리된다.On the other hand, in the case of the key value "70" which is duplicate data, it is compared with the root value 103 of the top node, since it is 70 <103, it is compared with the root value of the left subtree again. At this time, if it is confirmed that 70 = 70 has the same value, the information in the duplicate subtree related to 70 is called. Thus, the number of key values " 70 " to be retrieved and the associated data are processed with the characteristics of the binary tree maintained.
상술한 바와 같이, 본 발명에 따른 이진 트리에서의 동일 데이터 처리방법은 이진 트리의 단점인 중복 데이터의 처리를 가능하게 함으로써, 중복 데이터의 처리시 이진 트리의 특성이 유지되는 효과를 제공한다.As described above, the same data processing method in the binary tree according to the present invention enables the processing of duplicate data, which is a disadvantage of the binary tree, thereby providing an effect of maintaining the characteristics of the binary tree when processing the duplicate data.
이상에서 설명한 것은 본 발명에 따른 이진 트리에서의 동일 데이터 처리방법을 실시하기 위한 하나의 실시예에 불과한 것으로서, 본 발명은 상기한 실시예에 한정되지 않고, 이하의 특허청구의 범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 분야에서 통상의 지식을 가진자라면 누구든지 다양한 변경 실시가 가능할 것이다.What has been described above is only one embodiment for carrying out the same data processing method in the binary tree according to the present invention, and the present invention is not limited to the above-described embodiment, but is claimed in the following claims. Various changes can be made by those skilled in the art without departing from the gist of the invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970078734A KR19990058595A (en) | 1997-12-30 | 1997-12-30 | Same data processing in binary tree |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970078734A KR19990058595A (en) | 1997-12-30 | 1997-12-30 | Same data processing in binary tree |
Publications (1)
Publication Number | Publication Date |
---|---|
KR19990058595A true KR19990058595A (en) | 1999-07-15 |
Family
ID=66180059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970078734A KR19990058595A (en) | 1997-12-30 | 1997-12-30 | Same data processing in binary tree |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR19990058595A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100590460B1 (en) * | 2001-06-13 | 2006-06-19 | 인터디지탈 테크날러지 코포레이션 | Binary-tree method and system for multiplexing scheduling |
-
1997
- 1997-12-30 KR KR1019970078734A patent/KR19990058595A/en not_active Application Discontinuation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100590460B1 (en) * | 2001-06-13 | 2006-06-19 | 인터디지탈 테크날러지 코포레이션 | Binary-tree method and system for multiplexing scheduling |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6490592B1 (en) | Method of and apparatus for generating a tree data structure supporting longest match lookup | |
US6915340B2 (en) | System and method for deriving future network configuration data from the current and previous network configuration data | |
US6411957B1 (en) | System and method of organizing nodes within a tree structure | |
KR100285265B1 (en) | Db management system and inverted index storage structure using sub-index and large-capacity object | |
US7403494B2 (en) | Method for generating nodes in multiway search tree and search method using the same | |
US6353873B1 (en) | Apparatus and method to determine a longest prefix match in a content addressable memory | |
JP3250544B2 (en) | Transfer destination search method, transfer destination search device, search table recording medium, and search program recording medium | |
KR970066947A (en) | Data management system and method for replicated data | |
CN107391758A (en) | Database switching method, device and equipment | |
CN108829880B (en) | Method for configuration management of optical network terminal equipment | |
US6735600B1 (en) | Editing protocol for flexible search engines | |
US7251659B1 (en) | Method and system for managing resource indexes in a networking environment | |
CN108134739B (en) | Route searching method and device based on index trie | |
CN115795539A (en) | Authority management method, device, equipment and storage medium | |
JPH0748220B2 (en) | Method and apparatus for configuring, managing or retrieving data | |
US20050163122A1 (en) | System and methods for packet filtering | |
CN116756253B (en) | Data storage and query methods, devices, equipment and media of relational database | |
EP0647034B1 (en) | A variable word length code decoding method, and a decoder for performing the same | |
KR20020006464A (en) | Route retrieving system, method therefor and a router device to be used in the same | |
US7154892B2 (en) | Method and apparatus for managing LPM-based CAM look-up table, and recording medium therefor | |
KR19990058595A (en) | Same data processing in binary tree | |
US20190215242A1 (en) | Method and server for assigning topological addresses to network switches, corresponding computer program and server cluster | |
US6839749B1 (en) | Network representation and manipulation thereof | |
CN100361088C (en) | Method for realizing device test | |
KR20010064226A (en) | Compacting, searching and insert method reflecting memory hierarchy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |