KR101069667B1 - Method and System for storing telephone numbers - Google Patents

Method and System for storing telephone numbers Download PDF

Info

Publication number
KR101069667B1
KR101069667B1 KR1020090114420A KR20090114420A KR101069667B1 KR 101069667 B1 KR101069667 B1 KR 101069667B1 KR 1020090114420 A KR1020090114420 A KR 1020090114420A KR 20090114420 A KR20090114420 A KR 20090114420A KR 101069667 B1 KR101069667 B1 KR 101069667B1
Authority
KR
South Korea
Prior art keywords
numbers
phone
stored
station
telephone
Prior art date
Application number
KR1020090114420A
Other languages
Korean (ko)
Other versions
KR20110057846A (en
Inventor
이용규
Original Assignee
동국대학교 산학협력단
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 동국대학교 산학협력단 filed Critical 동국대학교 산학협력단
Priority to KR1020090114420A priority Critical patent/KR101069667B1/en
Publication of KR20110057846A publication Critical patent/KR20110057846A/en
Application granted granted Critical
Publication of KR101069667B1 publication Critical patent/KR101069667B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/23Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0283Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for data storage and retrieval
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2237Vectors, bitmaps or matrices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

본 발명의 실시예는 전화번호 저장 방법에 관한 것으로, 보다 상세하게는 전화번호 저장 기능을 갖는 디바이스에 전화번호를 저장하는 경우 최소한의 저장 용량으로 전화번호를 저장할 수 있는 방법에 관한 것이다.An embodiment of the present invention relates to a method for storing a phone number, and more particularly, to a method for storing a phone number with a minimum storage capacity when storing a phone number in a device having a phone number storage function.

본 발명의 실시예는 전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들에 대해 각 전화번호의 국번과 국번 다음의 번호를 정수(integer)로 변환하고, 이 정수 중 최소치 또는 최대치에 해당하는 정수를 기본값으로 하여 이의 이진수(binary number)를 저장하는 단계; 상기 기본값에 해당하는 전화번호 외에 다른 전화번호들을 저장할 경우, 상기 다른 각 전화번호의 국번과 국번 다음의 번호를 정수로 변환하고 이 정수와 상기 기본값과의 차를 산출하는 단계; 및 상기 차의 이진수만으로 상기 다른 각 전화번호를 저장하는 단계를 포함하여 본 발명의 실시예의 기술적 과제를 해결한다.An embodiment of the present invention converts the station number of each phone number and the number after the station number into an integer for the phone numbers to be stored in a device having a phone number storage function, and an integer corresponding to the minimum or maximum of these integers. Storing a binary number thereof by default; When storing other telephone numbers other than the telephone number corresponding to the default value, converting the station number of each of the other telephone numbers and the number following the station number into an integer and calculating a difference between the integer and the default value; And it solves the technical problem of the embodiment of the present invention, including the step of storing each of the other phone number only with the binary number of the car.

Description

전화번호 저장 방법 및 저장 시스템{Method and System for storing telephone numbers}Method and System for storing telephone numbers

본 발명의 실시예는 전화번호 저장 방법 및 저장 시스템에 관한 것으로, 보다 상세하게는 전화번호 저장 기능을 갖는 디바이스에 전화번호를 저장하는 경우 최소한의 저장 용량으로 전화번호를 저장할 수 있는 방법 및 시스템에 관한 것이다.Embodiments of the present invention relate to a method and a system for storing a telephone number, and more particularly, to a method and system for storing a telephone number with a minimum storage capacity when storing a telephone number in a device having a telephone number storage function. It is about.

디지털 시대 및 유비쿼터스(ubiquitous) 시대를 맞이하여 개인 통신 단말 특히 이동 통신 단말은 PC 못지않게 각 개인의 생활 필수품화 되었다. 사용자는 자신의 이동 통신 단말에 전화번호를 저장하여 두고 사용함으로써, 통화를 시도할 때에 일일이 전화번호를 누르지 아니하여도 저장된 전화번호를 간단한 검색을 통해 찾아 바로 통화를 할 수 있다.In the digital age and ubiquitous era, personal communication terminals, especially mobile communication terminals, have become a necessity for each individual's life as much as a PC. By storing and using a phone number in a user's mobile communication terminal, a user can directly call a stored phone number through a simple search without having to press the phone number when attempting a call.

한편 이동 통신 단말은 고정형 단말에 비해 적은 용량의 메모리가 장착되는 것이 일반적이다. 이는 이동 통신 단말의 '이동성' 속성으로 인해 배터리를 전원으로 사용하므로 전력 소모의 최소화를 꾀하고, 아울러 휴대하기에 편리함이 수반되어야 하므로 단말 자체의 소형 구현을 요하는 바 메모리의 용량이 어느 정도 제한 적일 수밖에 없기 때문이다.On the other hand, mobile communication terminals are generally equipped with less memory than fixed terminals. Since the battery is used as a power source due to the 'mobility' property of the mobile communication terminal, it is necessary to minimize power consumption and to be convenient to carry, and thus requires a small implementation of the terminal itself. Because it can only be enemy.

따라서 저장 공간의 크기가 제한되는 이동 통신 환경이나 또는 일반 컴퓨터 환경에서 전화번호를 되도록 적은 용량으로 저장할 수 있는 방안이 필요하다.Therefore, there is a need for a method capable of storing a phone number in a small capacity in a mobile communication environment or a general computer environment where the storage space size is limited.

본 발명의 실시예는 상기와 같은 필요를 인식하여 창안된 것으로, 본 발명의 실시예가 해결하고자 하는 과제는 최소한의 저장 용량으로 전화번호를 저장할 수 있는 방안을 제시하는 것이다.An embodiment of the present invention was conceived by recognizing the above needs, and an object of the present invention is to propose a method for storing a telephone number with a minimum storage capacity.

본 발명의 실시예에 의한 전화번호 저장 방법은 전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들의 국번과 국번 다음의 번호를 정수(integer)로 변환하고, 이들 정수 중 최소치 또는 최대치에 해당하는 정수를 기본값으로 하여 이의 이진수(binary number)를 저장하는 단계; 상기 기본값에 해당하는 전화번호 외에 다른 전화번호들을 저장할 경우, 상기 다른 각 전화번호의 국번과 국번 다음의 번호를 정수로 변환하고 이 정수와 상기 기본값과의 차를 산출하여 상기 차의 이진수만으로 상기 다른 각 전화번호를 저장하는 단계를 포함한다.The method for storing a phone number according to an embodiment of the present invention converts the station number and the number following the station number of the phone numbers to be stored in the device having the phone number storage function into an integer, and an integer corresponding to the minimum or maximum of these integers. Storing a binary number thereof by default; When storing other telephone numbers other than the telephone number corresponding to the default value, the station number of each of the other telephone numbers and the number following the station number are converted to an integer, and the difference between the integer and the default value is calculated and the other only with the binary number of the difference. Storing each telephone number.

또한, 본 발명의 실시예에 의한 전화번호 저장 방법은 전화번호 저장 기능을 가진 디바이스에 새로운 전화번호를 저장하는 경우, 상기 디바이스에 기 저장된 전화번호들 중 상기 저장 대상 전화번호의 국번과 동일한 국번을 가진 전화번호들이 기 저장되어 있는지 판단하는 단계; 및 상기 판단 결과, 동일한 국번이 있는 경우 에는 상기 저장 대상 전화번호의 국번 다음의 번호를 정수로 변환하고 기 저장된 기본값과의 차를 저장하는 단계를 포함한다.In addition, the phone number storage method according to an embodiment of the present invention, when storing a new phone number in a device having a phone number storage function, the same station number as the station number of the storage target phone number among the phone numbers previously stored in the device; Determining whether the telephone numbers are stored in advance; And if the same station number is found, converting a number following the station number of the storage target phone number into an integer and storing a difference from a previously stored default value.

또한, 본 발명의 실시예에 의한 전화번호 저장 방법은 전화번호 저장 기능을 가진 디바이스에 새로운 전화번호를 저장하는 경우, 직전에 저장된 전화번호와 상기 저장 대상 전화번호의 차(difference)를 산출하여 차의 이진수만으로 상기 저장 대상 전화번호를 저장한다.In addition, the phone number storage method according to an embodiment of the present invention, when storing a new phone number in a device having a phone number storage function, the difference is calculated by calculating the difference (difference) between the immediately stored phone number and the target phone number stored; The storage target phone number is stored only with a binary number.

또한, 본 발명의 실시예에 의한 전화번호 저장 방법은 전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들의 국번과 국번 다음의 번호를 정수(integer)로 변환하는 단계; 및 상기 변환된 정수의 이진수로써 상기 저장 대상 전화번호를 저장하는 단계를 포함한다.In addition, the telephone number storage method according to an embodiment of the present invention comprises the steps of converting the station number and the number after the station number of the telephone numbers to be stored in the device with the telephone number storage function to an integer; And storing the storage target phone number as a binary number of the converted integer.

본 발명의 실시예에 의하면, 저장 공간의 크기가 제한되는 이동 통신 단말을 비롯하여 일반 컴퓨터의 저장 공간에서도 제한된 저장 용량에서 전화번호를 매우 효율적으로 저장할 수 있다.According to an embodiment of the present invention, a phone number can be stored very efficiently with limited storage capacity even in a mobile communication terminal including a limited storage space and a storage space of a general computer.

이하, 첨부 도면을 참조하여 상세히 설명하되, 도면의 구성요소들에 참조번호를 부여함에 있어서 동일 구성요소에 대해서는 비록 다른 도면상에 있더라도 동일 참조번호를 부여하였으며 당해 도면에 대한 설명이 필요한 경우 다른 도면의 구성요소를 인용할 수 있음을 미리 밝혀둔다. 아울러 본 발명과 관련된 공지 기능 혹은 구성에 대한 구체적인 설명 그리고 그 이외의 제반 사항이 본 발명의 요지를 불 필요하게 흐릴 수 있다고 판단되는 경우, 그 상세한 설명을 생략한다.Hereinafter, with reference to the accompanying drawings, in the reference numerals to the components of the drawings, the same reference numerals are assigned to the same components, even if on the other drawings, even if on the other drawings and the description of the corresponding drawings if necessary Note that you can cite the component of. In addition, when it is determined that the detailed description of the known function or configuration and other matters related to the present invention may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

기존의 전화번호 저장 방식은 ASCII 코드로 저장될 경우 전화번호를 이루는 각 숫자에 1 바이트(byte)의 저장 공간을 필요로 한다. 예를 들어 010-1234-5678을 저장하기 위해서는 최소 11 바이트의 공간을 필요로 한다. 이는 저장 대상 전화번호가 많은 경우에는 특히 고정형 단말보다 상대적으로 매우 적은 용량의 메모리를 갖는 이동 통신 단말의 경우에는 문제가 된다. 본 발명의 실시예는 이의 문제를 극복하기 위한 방안인 것이다.Conventional phone number storage method requires 1 byte of storage space for each number that constitutes a phone number when stored as an ASCII code. For example, to store 010-1234-5678, you need at least 11 bytes of space. This is a problem when there are many phone numbers to be stored, especially in the case of a mobile communication terminal having a relatively much smaller memory than a fixed terminal. Embodiment of the present invention is a way to overcome the problem.

도 1은 본 발명의 실시예의 바람직한 일 흐름을 제시한 것이다.1 shows a preferred flow of an embodiment of the present invention.

본 발명의 실시예의 동작 설명 및 이해의 편의를 위해 전화번호의 체계가 다음과 같다고 가정한다. 이는 이하에서 설명될 도 1의 경우뿐만 아니라 다른 모든 경우에 대해서도 적용된다.For convenience of explanation and understanding of the operation of the embodiment of the present invention, it is assumed that the telephone number system is as follows. This applies not only to the case of FIG. 1 to be described below, but also to all other cases.

전화번호의 체계(종류)는 다음과 같다.The system of telephone numbers is as follows.

(1)이동 통신 번호(1) mobile communication number

- 이동 통신 회사별 번호 : 010, 011, 016, 017, 018, 019.-Mobile communication company number: 010, 011, 016, 017, 018, 019.

- 핸드폰 번호 : 7자리 또는 8자리, 010은 8자리, 나머지는 7자리와 8자리 번호를 혼용.-Cell phone number: 7 or 8 digits, 010 is 8 digits, the rest 7 and 8 digits mixed.

(2)일반전화번호(2) General phone number

- 지역번호 : 2자리 또는 3자리.Area code: 2 or 3 digits.

서울 02 경기 031 인천 032 강원 033 충남 041 대전 042 충북 043 부산 051 울산 052 대구 053 경북 054 경남 055 전남 061 광주 062 전북 063 제주 064.Seoul 02 Gyeonggi 031 Incheon 032 Gangwon 033 Chungnam 041 Daejeon 042 Chungbuk 043 Busan 051 Ulsan 052 Daegu 053 Gyeongbuk 054 Gyeongnam 055 Jeonnam 061 Gwangju 062 Jeonbuk 063 Jeju 064.

- 전화번호 : 서울은 7자리 또는 8자리, 기타 지역은 7자리.-Phone number: 7 or 8 digits in Seoul, 7 digits in other regions.

(3)인터넷 전화번호(3) Internet telephone number

- 구분번호 070, 전화번호 8자리.-Classification number 070, phone number 8 digits.

(4)무료전화번호(4) Toll free number

- 구분번호 080, 전화번호 8자리.-Segment number 080, phone number 8 digits.

(5)전국대표번호(5) National representative number

- 8자리 번호 1544, 1566, 1577, 1588 등 번호.-8-digit number 1544, 1566, 1577, 1588, etc.

도 1에 제시된 본 발명의 실시예는 전화번호의 일부를 정수로 변환하여(정수로 취급하여) 이의 이진수를 저장하고 다른 일부는 코드화하여 압축하는 것이다.The embodiment of the present invention shown in FIG. 1 converts a part of a telephone number into an integer (treated as an integer), stores its binary number, and encodes and compresses another part.

도 1에 제시된 실시예를 이용하면 전화번호를 저장하기 위해 4 바이트(byte)용량이면 충분하다. 따라서 기존의 전화번호 저장 방식에 비해 필요한 저장 공간이 63.6[%](=7/11) 감소된다. 따라서 이동 통신 단말 등 특히 데이터 저장 공간이 제한된 환경에서 매우 효과적이다.Using the embodiment shown in Fig. 1, four bytes are sufficient to store a telephone number. Therefore, the required storage space is reduced by 63.6 [%] (= 7/11) compared to the conventional phone number storage method. Therefore, it is very effective in the environment where data storage space is limited, such as a mobile communication terminal.

도 1에 제시된 실시예의 구체적인 동작을 예를 들어 설명하면 다음과 같다.Referring to the specific operation of the embodiment shown in Figure 1 as an example.

전화번호의 국번과 국번 다음의 번호 8자리(또는 7자리)를 정수(integer)로 변환하여(s11) 이의 이진수(binary number)로 저장한다(s12). 예를 들어 1234-5678 (국번 1234, 국번 다음 번호 5678) 형식의 전화번호를 정수 12,345,678로 변환하여 27 비트(bit)로 표현(저장)한다. 27 비트로는 최대 134,217,728(=227)까지의 양의 정수를 저장(표현)할 수 있으므로 8자리 정수(최대치 99,999,999)를 표현(저장)할 수 있다.The station number of the telephone number and the 8 digits (or 7 digits) following the station number are converted into integers (s11) and stored as binary numbers thereof (s12). For example, a telephone number of the form 1234-5678 (station number 1234, number 5678 after the station number) is converted into an integer 12,345,678 and represented (stored) in 27 bits. Since 27 bits can store (represent) a positive integer up to 134,217,728 (= 2 27 ), an 8-digit integer (maximum value 99,999,999) can be represented (stored).

전화번호의 국번과 국번 다음의 번호를 제외한 번호(이하 '식별 번호'라고 칭한다)에는 순번을 부여하여 그 순번을 코드화하여 저장하는데 이는 그 순번의 이진수를 저장하는 것이다. 순번은 식별 번호의 총 개수를 표현할 수 있는 비트수로 코드화한다. 예를 들어 식별 번호의 총 개수가 32(=25)개라고 하면 5 비트 코드(이진수)로 표현할 수 있으며, 식별 번호가 더 늘어나면 코드의 비트수는 증가할 수 있다. 이러한 코드의 예는 다음의 <표 1>과 같이 구현될 수 있다.Numbers other than the station number of the telephone number and the number after the station number (hereinafter referred to as 'identification number') are assigned a sequence number and stored by encoding the sequence number, which stores the binary number of the sequence number. The sequence number is coded into the number of bits that can represent the total number of identification numbers. For example, if the total number of identification numbers is 32 (= 2 5 ), it can be expressed as a 5-bit code (binary number). If the identification number is further increased, the number of bits of the code may increase. An example of such code may be implemented as shown in Table 1 below.

<표 1>TABLE 1

식별 번호Identification number 순번 (5비트 코드)Sequence number (5-bit code) 휴대전화 010Mobile phone 010 0 (00000)0 (00000) 휴대전화 011 7자리Cell phone 011 7 digits 1 (00001)1 (00001) 휴대전화 011 8자리Mobile Phone 011 8 Digits 2 (00010)2 (00010) 휴대전화 016 7자리Mobile Phone 016 7 Digits 3 (00011)3 (00011) 휴대전화 016 8자리Mobile Phone 016 8 Digits 4 (00100)4 (00100) 휴대전화 017 7자리Mobile phone 017 7 digits 5 (00101)5 (00101) 휴대전화 017 8자리Mobile Phone 017 8 Digits 6 (00110)6 (00110) 휴대전화 018 7자리Cell phone 018 7 digits 7 (00111)7 (00111) 휴대전화 018 8자리Cell Phone 018 8 Digits 8 (01000)8 (01000) 휴대전화 019 7자리Mobile phone 019 7 digits 9 (01001)9 (01001) 휴대전화 019 8자리Mobile phone 019 8 digits 10 (01010)10 (01010) 일반전화 02 7자리Landline 02 7 digits 11 (01011)11 (01011) 일반전화 02 8자리Landline 02 8 digits 12 (01100)12 (01100) 일반전화 031Landline 031 13 (01101)13 (01101) 일반전화 032Landline 032 14 (01110)14 (01110) 일반전화 033Landline 033 15 (01111)15 (01111) 일반전화 041Landline 041 16 (10000)16 (10000) 일반전화 042Landline 042 17 (10001)17 (10001) 일반전화 043Landline 043 18 (10010)18 (10010) 일반전화 051Landline 051 19 (10011)19 (10011) 일반전화 052Landline 052 20 (10100)20 (10100) 일반전화 053Landline 053 21 (10101)21 (10101) 일반전화 054Landline 054 22 (10110)22 (10110) 일반전화 055Landline 055 23 (10111)23 (10111) 일반전화 061Landline 061 24 (11000)24 (11000) 일반전화 062Landline 062 25 (11001)25 (11001) 일반전화 063Landline 063 26 (11010)26 (11010) 일반전화 064Landline 064 27 (11011)27 (11011) 일반전화 065Landline 065 28 (11100)28 (11100) 인터넷전화 070Internet Phone 070 29 (11101)29 (11101) 수신자부담전화 080Toll free number 080 30 (11110)30 (11110) 1544 1566 1588 등
전국대표번호
1544 1566 1588 etc
National Representative Number
31 (11111)31 (11111)

따라서 도 1의 실시예에 의한 전화번호의 저장은 식별 번호 순번의 코드(5 비트)와 전화번호(27 비트)를 합하여 32 비트(4바이트)로 가능하다. 아울러 상기 <표 1>에 의한 코드 테이블은 미리 저장된다. Therefore, the telephone number can be stored in 32 bits (4 bytes) by adding the code (5 bits) and the telephone number (27 bits) of the identification number sequence. In addition, the code table according to Table 1 is stored in advance.

본 예보다 더 많은 식별 번호를 표현하거나, 또는 앞으로 전화번호의 종류가 더욱 다양해져 더 많은 식별 번호를 표현하려면, 순번의 코드의 비트수를 5 비트에서 6 비트, 7 비트, …로 늘리면 된다. 그렇게 하면 전체는 33 비트, 34 비트, … 등으로 확대되고, 바이트 단위로 저장하게 되면 5 바이트로 표현할 수 있다.To express more identification numbers than in this example, or to represent more identification numbers in the future with more types of telephone numbers, the number of bits of the sequence code is 5 to 6 bits, 7 bits,... To increase. That way, the whole is 33 bits, 34 bits,... If it is enlarged to the back and stored in byte unit, it can be expressed as 5 bytes.

도 2a 내지 도 2c는 본 발명의 실시예의 바람직한 또 다른 일실시예의 흐름을, 도 2d는 본 발명의 실시예의 바람직한 일 구성을 제시한 도면이다. 도 2(이하 도 2a 내지 도 2d를 도 2로 일괄 표시함을 원칙으로 한다)에 제시된 실시예는 전화번호간의 차(difference)에 해당하는 값만으로 전화번호를 저장할 수 있게 하는 것이다.Figure 2a to 2c is a flow of another preferred embodiment of the embodiment of the present invention, Figure 2d is a view showing a preferred configuration of an embodiment of the present invention. In the embodiment shown in FIG. 2 (hereinafter, FIGS. 2A to 2D are collectively displayed as FIG. 2), the phone number can be stored only by a value corresponding to a difference between the phone numbers.

차를 이용하여 전화번호를 저장하므로, 차를 산정하기 위한 기준 전화번호(reference number)가 필요하다. 이를 위해 제1 변환부(21)는 저장될 전화번호들의 국번과 국번 다음의 번호들을 정수(integer)로 변환하고(s21), 제1 저장 실행부(22)는 이들 정수 중 최소치(또는 최대치)에 해당하는 정수를 기본값으로 정하여 이의 이진수(binary number)를 저장 장치에 저장한다(s22). 이 기본값에 해당하는 전화번호가 상기 기준 전화번호가 된다.Since the phone number is stored using the car, a reference number is required to calculate the car. To this end, the first converting unit 21 converts the station number of the telephone numbers to be stored and the numbers following the station number into integers (s21), and the first storage executing unit 22 converts the minimum (or maximum) of these integers into numbers. By default, the integer corresponding to the binary number (binary number) is stored in the storage device (s22). The telephone number corresponding to this default value becomes the reference telephone number.

문자 코드(ASCII, 한글 완성형 코드 등)로 표현된 전화번호는 기호(예를 들면 국번과 국번 다음을 구분하는 기호, -)를 제외한 숫자로만 구성되는 전화번호를 추출한 후에, 상기 추출된 전화번호를 정수로 변환하는 것은 프로그래밍 언어들에서 제공되는 정수 변환 함수를 이용하여도 되고, 또는 전화번호를 구성하는 각 자리의 문자 코드를 정수의 대응되는 각 자리의 값으로 변환함으로써 정수로 변환할 수도 있다. 또한 정수로 저장된 전화번호는 저장 과정과 역으로 정수를 문자 코드로 표현된 전화번호로 변환할 수 있다.The phone number represented by the character code (ASCII, Korean complete code, etc.) is extracted from the phone number consisting of only numbers except for symbols (for example, a symbol separating a station number and a station number,-), and then the extracted phone number. Conversion to an integer may be performed using an integer conversion function provided in programming languages, or may be converted to an integer by converting a character code of each digit constituting a telephone number into a value of each corresponding digit of an integer. In addition, the phone number stored as an integer can be converted into a phone number expressed as a character code in the reverse of the storage process.

이때 저장될 전화번호들이 오름차순으로 정렬되어 있는 경우에는 처음 전화번호의 정수에 해당되는 최소치를 기본값으로 사용하며, 기본값에 해당되지 않는 다른 전화번호들을 변환한 정수는 기본값보다 크다. 그러나 저장될 전화번호들이 내림차순으로 정렬되어 있는 경우에는 최대치를 기본값으로 사용하며, 기본값에 해당되지 않는 다른 전화번호들을 변환한 정수는 기본값보다 작다.Will be stored If the telephone numbers are sorted in ascending order, the integer corresponding to the first telephone number The minimum value is used as the default value. The integer converted from other phone numbers that does not correspond to the default value is larger than the default value. But to be saved Phone numbers are sorted in descending order In this case, the maximum value is used as the default value, and an integer converted from other phone numbers not corresponding to the default value is smaller than the default value.

그러나 저장될 전화번호들이 정렬되어 있지 않은 경우에는 저장될 전화번호들을 정수로 변환하고 이 중에서 최소치(또는 최대치)를 선택하여 기본값으로 정하면 된다. 따라서 이 실시예는 전화번호들이 정렬되어 있는 경우뿐만 아니라 정렬되어 있지 않은 경우에도 적용이 가능하다. 여기서 최소치를 기본값으로 할지 최대치를 기본값으로 할지는 정렬의 방법에 따라서 선택되거나 전화번호들이 정렬되어 있지 않은 경우에는 임의로 선택할 수 있다. 이하에서는 기본값을 최소치로 정한 가정하에 설명한다.However, if the phone numbers to be stored are not sorted, convert the phone numbers to be stored into integers and select the minimum value (or the maximum value) among them and set the default value. Therefore, this embodiment is applicable not only when the telephone numbers are arranged but also when they are not. Here, the minimum value or the maximum value can be selected according to the sorting method or arbitrarily selected when the telephone numbers are not sorted. The following description is based on the assumption that the default value is set to the minimum value.

앞의 전화번호 체계에 의하면 전화번호에 해당되는 정수의 범위는 00,000,000부터 99,999,999까지이다. 이 경우 정수의 범위는 8자리 전화번호에 해당되며, 7자리 전화번호인 경우는 정수의 범위가 0,000,000부터 9,999,999까지이다. 따라서 기본값의 저장에는 32 비트(= 식별 번호 코드 5 비트 + 나머지 27 비트)가 필요하다. 왜냐하면 27 비트로 134,217,728까지 표현 가능하기 때문이다.According to the previous telephone number system, the range of integers corresponding to the telephone numbers is 00,000,000 to 99,999,999. In this case, the range of integers corresponds to 8-digit telephone numbers. For 7-digit telephone numbers, the range of integers ranges from 0,000,000 to 9,999,999. Therefore, the storage of the default value requires 32 bits (= 5 bits of identification number code + 27 bits remaining). This is because up to 134,217,728 can be represented by 27 bits.

다음으로 최소치에 해당하는 전화번호(기본값에 해당하는 전화번호) 외에 다른 전화번호들을 저장할 경우, 다른 각 전화번호의 국번과 국번 다음의 번호를 정수로 변환하고, 이 정수와 저장된 기본값(최소치)과의 차를 산출하여 산출된 차의 이진수만으로 다른 각 전화번호를 저장하게 된다(s22). 예를 들어 저장될 전화번호들이 오름차순으로 정렬되어 저장되는 경우 최초의 전화번호(최소치)를 정수로 변 환한 값을 기본값으로 정하여 이의 이진수를 저장하고, 다른 각 전화번호에 대해서는 정수로 변환한 후에 기본값과의 차만을 저장함으로써 다른 각 전화번호를 저장할 수 있다.Next, when storing other phone numbers besides the minimum phone number (the phone number corresponding to the default value), the station number of each other phone number and the number after the station number are converted to an integer, and this integer and the stored default value (minimum value) Calculate the difference of the different numbers are stored only in the binary number of the calculated difference (s22). For example, if the phone numbers to be stored are stored sorted in ascending order, the default value of the first phone number (minimum value) converted to an integer is stored as the default value, and the binary number is stored for each other phone number before the default value. By storing only the difference between, you can save each other phone number.

만일 저장될 전화번호들이 정렬되어 있지 않은 경우에는 저장될 전화번호들을 정수로 변환한 후에 이 중에서 최소치를 기본값으로 정하여 이의 이진수를 저장하고, 다른 전화번호들에 대해서는 변환된 정수와 기본값과의 차만을 저장함으로써 각 다른 전화번호를 저장할 수 있다.If the phone numbers to be stored are not sorted, convert the phone numbers to be stored into integers and set the minimum value as the default value to store the binary number. For other phone numbers, only the difference between the converted integer and the default value is used. You can save each different phone number by saving.

한편 모든 전화번호의 식별 번호에는, 도 1의 실시예에서와 같이, 순번을 부여하여 그 순번의 이진수(코드)를 미리 저장한다(예를 들어 표 1의 식별 번호 코드 테이블). 그리고 최소치(또는 최대치)에 해당하는 정수의 이진수는 식별 번호의 코드와 함께 기본 저장된다.On the other hand, in the identification numbers of all the telephone numbers, as in the embodiment of Fig. 1, a sequence number is assigned and a binary number (code) of the sequence is stored in advance (for example, the identification number code table in Table 1). The binary number of the integer corresponding to the minimum (or maximum) value is stored with the code of the identification number.

그리고 모든 전화번호는 식별 번호가 동일한 것끼리 그룹핑(grouping)되어 저장되며, 이는 도 1의 실시예의 경우도 마찬가지이다. 아울러 상기 차의 이진수의 비트수가 동일한 것끼리 그룹핑(grouping)되어 저장된다. 여기서 그룹핑은 기본값과 그와 관련된 차들을 하나의 그룹으로 묶어서 저장하는 것을 의미하고, 저장 공간에는 각 그룹이 별도로 저장할 수도 있으며, 또는 동일 페이지 내에 여러 개의 그룹들이 함께 저장될 수도 있다, 또한 각 그룹의 크기는 서로 다르게 설정될 수도 있고, 또는 동일하게 설정될 수도 있다. 따라서 각 그룹의 저장방식은 다양하게 선택할 수 있다. 이는 앞으로의 설명에도 적용된다.And all the phone numbers are stored in the same identification number grouping (grouping) are stored, which is also the case in the embodiment of FIG. In addition, the same number of bits of the binary number are stored in groups. Here, grouping means storing a group of default values and related differences in a group, and each group may be stored separately in the storage space, or several groups may be stored together in the same page. The sizes may be set differently or may be set identically. Therefore, the storage method of each group can be variously selected. This also applies to future descriptions.

위의 전화번호 체계에 의하면, 차의 이진수의 비트수는 최소 1에서 최대 27 까지 가능하다. 예를 들어 저장 대상 전화번호와 기본값과의 차가 65,536(=216) 이하이고 순번의 코드(식별 번호)가 동일하다면 저장 대상 전화번호는 16 비트(2 바이트)로 저장할 수 있으며, 차가 16,777,216(=224) 이하이면 24 비트(3 바이트)로 저장할 수 있다.According to the above telephone number system, the number of bits of the binary number of the car can be from 1 to 27 at least. For example, if the difference between the target phone number and the default value is less than 65,536 (= 2 16 ) and the sequence code (identification number) is the same, the target phone number can be stored as 16 bits (2 bytes), and the difference is 16,777,216 (= 2 24 ) can be stored as 24 bits (3 bytes).

이러한 저장 방식은 메모리 용량의 압축을 기할 수 있을 뿐만 아니라, 전화번호가 보조기억장치에 저장되어 있을 경우에 메인 메모리로 로드되는 데이터량이 줄어들게 되므로 저장된 전화번호의 검색을 보다 빠르게 진행할 수 있는 이점도 제공한다. 물론 본 발명의 실시예에 의한 전화번호 저장 방식은 보조기억장치뿐만 아니라 메인 메모리를 비롯한 다양한 저장 장치들의 전화번호 저장 방식으로 모두 활용 가능하다. 어떤 이동통신단말에서는 보조기억장치를 사용하지 않고 메인 메모리만 사용하는 경우도 있으며, 저장장치의 활용 방식은 시스템과 환경에 따라 상이할 수 있다. 따라서 본 발명의 실시예는 특정 저장 장치에만 국한되어 구현되는 것이 아니며, 모든 저장 장치에 대한 전화번호 저장 방식으로 활용 가능하다.This storage method not only compresses the memory capacity but also reduces the amount of data that is loaded into the main memory when the phone number is stored in the secondary memory, thereby providing a faster search of the stored phone number. . Of course, the telephone number storage method according to an embodiment of the present invention can be utilized both as the auxiliary memory device as well as the telephone number storage method of various storage devices including the main memory. Some mobile communication terminals use only main memory instead of auxiliary memory, and the method of using the storage device may vary depending on the system and environment. Therefore, the embodiment of the present invention is not limited to a specific storage device, and may be implemented as a phone number storage method for all storage devices.

저장된 이진수로부터 원래의 전화번호를 얻는 것은 저장 절차를 역으로 실행하면 가능하다. 즉, 기본값과 함께 저장되어 있는 식별 번호의 코드로부터 식별 번호의 순번을 알아내어 이 순번에 해당하는 식별 번호를 얻는다. 다음으로 해당 전화번호에 해당되는 이진수로부터 차를 얻어, 이를 기본값에 더하여 구한 정수를 원래의 전화번호로 변환하면 된다. 이때 식별 번호의 코드를 이용하여 정확한 전화번호로의 변환이 가능하다. 예를 들면, 식별 번호의 코드가 00000(순번 0)인 경우 <표 1>에 의해 '010' 이하의 8자리 전화번호로 정확히 변환할 수 있고, 식별 번호의 코드가 00001(순번 1)인 경우 <표 1>에 의해 '011' 이하의 7자리 전화번호로 정확하게 변환할 수 있다.To get the original phone number from the stored binary number, we can reverse the stored procedure. That is, the sequence number of the identification number is found from the code of the identification number stored with the default value, and an identification number corresponding to the sequence number is obtained. Next, you can get the difference from the binary number corresponding to the phone number and add it to the default to convert the integer to the original phone number. At this time, the code of the identification number can be converted to the correct telephone number. For example, if the code of the identification number is 00000 (sequence 0), it can be correctly converted to an 8-digit telephone number of '010' or less according to <Table 1>, and the code of the identification number is 00001 (sequence 1). <Table 1> can be used to accurately convert 7-digit phone numbers with '011' or less.

도 2에 제시된 실시예의 구현 방식을 간단한 예를 들어 설명하면 다음과 같다.The implementation manner of the embodiment shown in FIG. 2 will be described below with a simple example.

저장 대상 전화번호를 [010-1234-5600, 010-1235-5780, 010-1236-5888, 010-1237-5990]라 하자. 각 전화번호의 국번과 국번 다음의 번호는 8자리 정수(12,345,600/12,355,780/12,365,888/12,375,990)로 변환된다. 이들 정수 중에서 최소치는 010-1234-5600에 해당되는 12,345,600이며, 이 최소치를 기본값으로 정하여 이 기본값의 이진수를 저장한다. 그리고 상기 전화번호들의 식별 번호인 '010'의 코드(<표 1>의 예에서는 0으로 이진수 코드는 00000)가 상기 기본값의 이진수와 함께 저장된다.Let's call the target phone number [010-1234-5600, 010-1235-5780, 010-1236-5888, 010-1237-5990]. The station number of each telephone number and the number after the station number are converted to an eight-digit integer (12,345,600 / 12,355,780 / 12,365,888 / 12,375,990). Among these integers, the minimum value is 12,345,600, which corresponds to 010-1234-5600. The minimum value is set as the default value and the binary value of this default value is stored. A code of '010' which is an identification number of the telephone numbers (0 in the example of <Table 1> and a binary code of 00000) is stored together with the default binary number.

다음으로 010-1235-5780에 해당되는 12,355,780은 기본값과의 차인 10,180을, 010-1236-5888에 해당되는 12,365,888은 기본값과의 차인 20,288을, 010-1237-5990에 해당되는 12,375,990은 기본값과의 차인 30,390을 이진수로 각각 저장한다. 따라서 다음과 같이 저장된다(모두 이진수로 저장됨).Next, 12,355,780, which corresponds to 010-1235-5780, is 10,180, which is the difference from the default, 12,365,888, which is equivalent to 010-1236-5888, and 20,288, which is different from the default. Store 30,390 binary digits each. Thus it is stored as follows (all in binary):

[0 + 12,345,600 | 10,180 | 20,288 | 30,390].[0 + 12,345,600 | 10,180 | 20,288 | 30,390].

상기 예에서 '0 + 12,345,600'은 식별 번호 순번 0의 코드(이진수 00000)와 정수 12,345,600에 해당하는 이진수가 함께 32 비트로 저장되는 것을 나타낸다. 그 리고 기본값과 나머지 전화번호들의 정수와의 차는 모두 32,768(=215) 이하이므로, 나머지 각 전화번호는 15 비트(바이트 단위 저장이면 2 바이트)로 저장이 가능하다. 따라서 상기 4개 전화번호 전체를 저장하는 경우, 기존 방식의 352 비트(44 바이트)에서 77 비트(10 바이트)로 줄어들게 된다.In the above example, '0 + 12,345,600' indicates that a code of binary number 0 (binary 00000) and a binary number corresponding to the integer 12,345,600 are stored together in 32 bits. And since the difference between the default value and the integer of the rest of the phone numbers is 32,768 (= 2 15 ) or less, each remaining phone number can be stored in 15 bits (2 bytes if stored in bytes). Therefore, when storing all four phone numbers, in the 352 bits (44 bytes) of the conventional method It is reduced to 77 bits (10 bytes).

한편 도 2의 실시예에 의한 전화번호 저장 방식은 각 전화번호의 소유자의 이름군 또는 페이지 단위로 이루어지게 하는 것이 바람직하며, 이는 상기 언급한 도 1의 경우 및 하기에서 언급될 다른 실시예에 의한 저장 방식에 대해서도 마찬가지이다. 이름군 단위란, 예를 들어, 각 전화번호의 소유자의 이름을 가나다순으로 정렬하는 경우 가 군, 나 군, 다 군, … 등 각 군을 의미하며 개별 이름은 해당하는 군에서 가나다순으로 정렬된다. 이는 전화번호 검색을 보다 용이하게 하기 위함인데, 통상적으로 각 개인은 어느 수신자에게 전화를 거는 경우 전화번호를 직접 입력하는 경우도 있으나, 수신자의 이름으로 전화번호를 검색하여 전화를 거는 것이 훨씬 더 효율적이기 때문이다.On the other hand, the phone number storage method according to the embodiment of FIG. 2 is preferably made in the name group or page unit of the owner of each phone number, which is the case of FIG. 1 mentioned above and other embodiments to be described below. The same applies to the storage method. Name-group units are, for example, sorting the names of the owners of each phone number alphabetically. Each group, and the individual names are sorted alphabetically in that group. This is to make it easier to search phone numbers. In general, when an individual calls a recipient, the individual may enter the phone number directly. However, it is much more efficient to search by phone number by the recipient's name. Because it is.

이름군 단위로 저장하는 경우 저장 공간의 페이지(page)의 크기(또는 블록 크기)를 고려한다. 전화번호는 디스크, 플래시 메모리, 메모리 카드 등 다양한 보조기억장치의 저장 공간에 저장되어 있다가 검색시에 메인 메모리(main memory)로 로드(load)될 수 있다. 그리고 저장 공간에의/으로부터의 입/출력 단위는 저장 공간의 페이지의 크기이다. 페이지의 크기는 512[bytes], 1[Kbyte], 4[Kbytes], 16[Kbytes], 32[Kbytes] 등을 비롯하여 다양하며, 시스템에 따라 다르게 사용할 수 있다. 또한 메인 메모리에서도 데이터는 저장 공간에 페이지 단위로 저장될 수 있다. 환경에 따라 보조기억장치를 사용하지 않고 메인 메모리만 사용할 수도 있다. 따라서 메인 메모리에서도 페이지 단위의 저장방법을 사용할 수 있다. 한편 각 이름군은 다른 이름군과 분리하여 별도로 저장할 수도 있고, 또는 이름군들을 순서대로 연속해서 함께 저장할 수도 있다.When storing in the name group unit, consider the size (or block size) of the page of the storage space. The telephone number may be stored in a storage space of various auxiliary storage devices such as a disk, a flash memory, a memory card, and then loaded into main memory at the time of retrieval. And the input / output unit to / from storage space is the size of the page of storage space. The page size varies, including 512 [bytes], 1 [Kbyte], 4 [Kbytes], 16 [Kbytes], 32 [Kbytes], and can be used differently depending on the system. In the main memory, data may also be stored in page units in the storage space. Depending on the environment, only main memory may be used without using auxiliary memory. Therefore, the page-based storage method can be used in the main memory. On the other hand, each name group may be stored separately from other name groups, or the name groups may be stored together in sequence.

소유자의 이름은 한글 이름일 때 세 글자라고 가정한다. 3글자 한글 이름을 저장하기 위해서는 각 글자 당 2 바이트씩 총 6 바이트가 필요하다. 따라서 기존 방안에 의하면 이름을 지정하여 하나의 전화번호를 저장하는데 최소 17 바이트(= 이름 6 바이트 + 전화번호 11 바이트)가 필요하다. 앞에서 이름이 3글자라고 가정했지만, 이름의 길이는 실제 전화번호의 이름에 따라 고정 길이(fixed length) 또는 가변 길이(variavle length)로 정할 수 있다. 예를 들어 3글자의 이름이 대부분이라면 이름을 3글자의 고정 길이로 저장하고, 4글자 이상의 이름에 해당되는 전화번호는 별도로 저장할 수도 있다. 또는 가변 길이 형식으로 저장해도 된다. 이 경우는 일례로써 이름의 길이를 이름과 함께 저장하든가 또는 이름의 끝을 표시하는 코드를 사용하여 구분해도 된다.The owner's name is assumed to be three letters when it is a Hangul name. To store 3 letter Hangul name, 6 bytes are needed, 2 bytes for each letter. Therefore, according to the existing scheme, at least 17 bytes (= name 6 bytes + phone number 11 bytes) are required to store a single phone number by designating a name. Assuming that the name is three characters earlier, the length of the name can be fixed length or variable length, depending on the name of the actual telephone number. For example, if the three-character name is mostly, the name can be stored with a fixed length of three characters, and a phone number corresponding to a name longer than four letters can be stored separately. Alternatively, it can be stored in a variable length format. In this case, for example, the length of the name may be stored together with the name or may be distinguished using a code indicating the end of the name.

본 명세서에서는 한글 이름을 예로 들어 설명하지만, 본 발명의 실시예는 한글 이름뿐만 아니라 언어에 관계없이 적용할 수 있으며, 해당 언어의 이름의 길이에 맞추어 저장 공간의 크기를 결정하면 된다. 또한 상기 이름은 전화번호의 소유자인 사람의 이름뿐만 아니라 회사명, 상호, 별명 등 전화번호에 부여될 수 있는 어떠한 형태의 이름이라도 가능하다.In the present specification, a Korean name is described as an example. However, embodiments of the present invention can be applied regardless of a language as well as a Korean name, and the size of the storage space may be determined according to the length of the name of the language. The name may be any name that can be assigned to a telephone number, such as a company name, a business name, an alias, as well as the name of the person who is the owner of the telephone number.

이름을 3글자라고 가정할 때, 도 1에 제시된 실시예에 의하면, 하나의 전화번호를 저장하는데 10 바이트[=이름 6 바이트 + 전화번호 4 바이트(=식별 번호 코드 5 비트 + 전화번호 정수 표현 27 비트)]만이 필요하다.Assuming that the name is three letters, according to the embodiment shown in Fig. 1, 10 bytes [= name 6 bytes + phone number 4 bytes (= identification number code 5 bits + phone number integer representation) are stored to store one telephone number. Bit)] only.

아울러 도 2에 제시된 실시예에 의하면, 기본 저장되는 전화번호에 대해서는 [이름, 식별 번호 코드, 전화번호의 8자리 정수]의 형태로, 다음부터 저장되는 하나의 전화번호에 대해서는 [이름, 차]의 형태로 저장할 수 있어 저장 공간을 더욱 줄일 수 있다. 즉 전화번호의 차가 16,777,216(=224) 이하라면, 이 경우의 차는 24 비트(3 바이트)로 표현할 수 있으므로 기본 저장되는 전화번호에 대해서는 이름과 전화번호를 위해 10 바이트, 차후에 저장되는 전화번호에 대해서는 이름과 전화번호를 위해 9 바이트(=이름 6 바이트 + 차 3 바이트)의 저장 공간을 필요로 한다. 전화번호간의 차가 더 작다면 더 적은 비트(바이트)로 표현할 수 있다. 즉, 각 전화번호의 차가 65,536 이하라면, 16 비트(2 바이트)로 차를 표현할 수 있다.In addition, according to the embodiment shown in Figure 2, the basic stored telephone number in the form of [name, identification number code, telephone number 8 digit integer], and for one telephone number stored from the next [name, difference] It can be stored in the form of to reduce the storage space further. In other words, if the difference of the phone number is 16,777,216 (= 2 24 ) or less, the difference in this case can be represented by 24 bits (3 bytes). Therefore, the default stored telephone number is 10 bytes for the name and the telephone number, and the telephone number stored later. Requires 9 bytes of storage (= name 6 bytes + difference 3 bytes) for the name and phone number. If the difference between phone numbers is smaller, it can be expressed in fewer bits (bytes). That is, if the difference of each telephone number is 65,536 or less, the difference can be represented by 16 bits (2 bytes).

전화번호가 보조기억장치에 저장되는 경우에, 전화번호를 검색하는 시간 중 가장 오래 걸리는 것은 보조기억장치의 전화번호를 메인 메모리로 로드(load)하는 시간이다. 메모리 내에서 하나의 페이지를 검색하는 시간은 디스크 접근 시간에 비하면 비교할 수 없을 정도로 적게 걸린다. 따라서 데이터를 압축하면 보조기억장치에서 로드되는 데이터량이 줄게 되어 검색 시간도 단축할 수 있다. 물론 본 발명의 실시예에 의한 전화번호 저장 방식은 보조기억장치뿐만 아니라 메인 메모리를 비롯한 다양한 저장 장치에서의 전화번호 저장에 모두 활용 가능하다.When the phone number is stored in the auxiliary memory, the longest time for searching for the phone number is the time to load the phone number of the auxiliary memory into the main memory. Searching for a page in memory takes less than comparable disk access time. Therefore, if the data is compressed, the amount of data loaded from the auxiliary storage device is reduced, so that the search time can be shortened. Of course, the telephone number storage method according to the embodiment of the present invention can be utilized both for storing the telephone number in various storage devices including main memory as well as auxiliary memory.

저장 공간의 페이지 크기가 1 [Kbyte]이고 식별 번호의 코드가 동일하고 이름이 3글자라고 하면, 도 2에 제시된 저장 방식에 의한 저장 용량은 다음과 같다.If the page size of the storage space is 1 [Kbyte], the code of the identification number is the same, and the name is 3 letters, the storage capacity according to the storage method shown in FIG. 2 is as follows.

- 기존 방식은 60개의 이름과 전화번호를 저장할 수 있다.-The existing method can store 60 names and phone numbers.

[17 바이트(=이름 6 바이트 + 전화번호 11 바이트) * 60 = 1,020 바이트].[17 bytes (= 6 bytes of name + 11 bytes of phone number) * 60 = 1,020 bytes].

- 정수 방식(도 1에 제시된 실시예)은 102개의 이름과 전화번호를 저장할 수 있다.The integer scheme (the embodiment shown in FIG. 1) can store 102 names and telephone numbers.

[10 바이트(=이름 6 바이트 + 전화번호 4 바이트) * 102 = 1,020 바이트].[10 bytes (= 6 bytes of name + 4 bytes of phone number) * 102 = 1,020 bytes].

- 차 방식(도 2에 제시된 실시예)에 의해 3 바이트(24 비트)로 차(차가 16,777,216 이하)를 표현할 수 있다면, 113개의 이름과 전화번호를 저장할 수 있다.If the difference (the difference is 16,777,216 or less) can be represented in 3 bytes (24 bits) by the difference scheme (the embodiment shown in FIG. 2), 113 names and telephone numbers can be stored.

[10 바이트(=이름 6 바이트 + 기본 저장 전화번호 4 바이트) + (9 바이트(이름 6 바이트 + 차 3 바이트)) * 112 = 1,018 바이트].[10 bytes (= 6 bytes of name + 4 bytes of primary storage phone number) + (9 bytes (6 bytes of name + 3 bytes of difference)) * 112 = 1,018 bytes].

- 차 방식에 의해 2 바이트(16 비트)로 차(차가 65,536 이하)를 표현할 수 있다면, 127개의 이름과 전화번호를 저장할 수 있다.If the difference can be represented by two bytes (16 bits) by the difference method (the difference is less than 65,536), 127 names and telephone numbers can be stored.

[10 바이트(=이름 6 바이트 + 기본 저장 전화번호 4 바이트) + (8 바이트(이름 6 바이트 + 차 2 바이트)) * 126 = 1,018 바이트].[10 bytes (= 6 bytes of name + 4 bytes of basic storage phone number) + (8 bytes (6 bytes of name + 2 bytes of difference)) * 126 = 1,018 bytes].

상기 실시예에서는 한 이름에 대해 하나의 전화번호가 저장되는 고정 길이 레코드(fixed length record) 형식의 저장 방법을 설명하였다. 그러나 한 이름에 대해 복수개의 전화번호가 함께 저장될 수도 있다. 이 경우에 상기 실시예에서는 [이름, 전화번호] 쌍을 저장하므로, 한 이름으로 복수개의 전화번호를 저장하는 경 우 각각의 전화번호에 대해 이름을 복사하여 이름과 전화번호를 함께 저장할 수 있다.In the above embodiment, a method of storing a fixed length record in which one telephone number is stored for one name has been described. However, a plurality of telephone numbers may be stored together for one name. In this case, since the embodiment stores the [name, phone number] pair, when storing a plurality of phone numbers with one name, the name and the phone number can be stored together by copying the name for each phone number.

그러나 이름의 중복 저장으로 인한 공간의 낭비가 발생하게 된다. 따라서 이와는 다른 방식으로 한 이름에 대한 복수개의 전화번호들을 [이름, 전화번호 개수, 전화번호1, 전화번호2, 전화번호3, …] 형식의 가변 길이 레코드(variable length record)로 저장할 수 있다. 또는 전화번호의 개수 대신에 각 레코드를 구분하는 코드(예를 들면 레코드 끝을 나타내는 EOR 코드)를 사용할 수도 있다. 이처럼 가변 길이 레코드를 저장하는 알려져 있는 방법들 중에서 선택하여 사용해도 된다. 각 이름에 대해 복수개의 전화번호를 저장하는 경우에도 상기 실시예처럼 각 전화번호를 정수로 변환하여 기본값과의 차를 저장할 수 있다. 따라서 본 발명은 고정 길이의 레코드 저장방식과 가변 길이의 레코드 저장방식에 모두 적용 가능하며, 이는 이름과 전화번호를 함께 저장하는 다른 실시예에도 적용되는 것으로 이해되어야 한다. However, space wasted due to duplicate storage of names. Thus, in a different way, a plurality of phone numbers for a name are [name, number of phone numbers, phone number 1, phone number 2, phone number 3,... ] Can be stored as a variable length record. Alternatively, instead of the number of telephone numbers, a code that distinguishes each record (for example, an EOR code indicating the end of the record) may be used. You may choose to use any of these known methods of storing variable-length records. Even when a plurality of telephone numbers are stored for each name, each telephone number can be converted into an integer and stored as a difference from the default value as in the above-described embodiment. Therefore, the present invention is applicable to both fixed length record storage and variable length record storage, and it should be understood that the present invention also applies to other embodiments of storing names and telephone numbers together.

한편, 도 2의 실시예에 의한 저장 방법은 저장장치의 각 페이지 단위로 이루어지게 할 수도 있다. 물론 본 발명의 실시예에 의한 저장 방식은 전화번호를 보조기억장치뿐만 아니라 메인 메모리에 저장하는 방법으로 활용할 수도 있다.On the other hand, the storage method according to the embodiment of Figure 2 may be made in units of pages of the storage device. Of course, the storage method according to the embodiment of the present invention may be utilized as a method of storing the telephone number in the main memory as well as the auxiliary memory device.

이는 이하에서 설명할 또 다른 실시예에 대해서도 마찬가지이다. 이 경우 저장 대상은 예를 들어 [이름, 전화번호]의 필드들로 구성된 파일이며, 이 필드들 외의 추가 필드들도 존재할 수 있다.The same is true for another embodiment to be described below. In this case, the storage target is a file composed of fields of [name, phone number], for example, and there may be additional fields other than these fields.

먼저 이 파일을 이름순으로 정렬한다. 이름을 1순위로 전화번호를 2순위로 하여 정렬할 수도 있다. 그리고 정렬된 파일을 저장장치의 페이지의 크기(예를 들어 1[Kbyte]) 단위로 나눈 후(저장장치의 입출력 단위는 페이지임), 각 페이지 단위로 도 2의 실시예에 의한 저장 방법을 적용하여 저장하는 것이다.First sort this file by name. You can sort names first by number and second by phone number. After dividing the sorted file by the page size (for example, 1 [Kbyte]) of the storage device (the input / output unit of the storage device is a page), the storage method according to the embodiment of FIG. 2 is applied to each page unit. To save.

페이지는 1 페이지부터 마지막 m 번째 페이지까지 존재하게 되며(m은 파일의 크기를 페이지의 크기로 나눈 값의 올림(ceiling) 값이며, 크기의 단위는 바이트임), 이름에 의한 전화번호의 검색은 이진 검색(Binary search)을 이용하여 해당 이름이 들어있는 페이지를 먼저 찾은 후에, 해당 페이지 내에서 해당 전화번호를 찾으면 빠른 검색이 가능하다. 또한 빠른 검색을 위한 인덱스를 구축하여 사용할 수도 있다.The page will exist from page 1 to the last m pages (m is the ciling of the file size divided by the page size). Value, and the unit of size is bytes). To search for a phone number by name, first search the page containing the name using Binary search, and then find the phone number within the page. This is possible. You can also build and use indexes for faster searching.

한편, 기본값에 해당하는 전화번호와 다른 전화번호들이 도 2에 제시된 실시예에 따라 기본값과 각 산출된 기본값과의 차가 저장되어 있을 경우, 새로운 전화번호를 저장하는 경우가 발생하였을 때의 새로운 전화번호의 저장은 다음과 같이 이루어진다. 도 2에 제시된 실시예에 의한 새로운 전화번호를 저장하는 경우의 흐름이 도 2b에 제시되어 있다. 여기서 새로운 전화번호를 저장할 공간이 충분하다고 가정한다. 만일 새로운 전화번호를 저장할 페이지의 공간이 부족하다면 잘 알려져 있는 오버플로우(overflow) 처리 방식을 사용하면 된다.On the other hand, when the phone number corresponding to the default value and other phone numbers are stored in the difference between the default value and each calculated default value according to the embodiment shown in FIG. 2, a new phone number when a new phone number is stored The storage of is done as follows. The flow of storing a new telephone number according to the embodiment shown in FIG. 2 is shown in FIG. 2B. It is assumed here that there is enough space to store the new phone number. If there is not enough space on the page to store the new phone number, you can use the well-known overflow handling.

제2 변환부(23)는 새로운 저장 대상 전화번호를 상기한 방법대로 정수로 변환한다(s23). 제2 저장 실행부(24)는 그리고 이 정수와 저장되어 있는 기본값과 비교한다. 제2 저장 실행부(24)는 상기 새로운 저장 대상 전화번호가 변환된 정수가 기본값보다 크면(기본값이 최소치일 때) 기본값과의 차를 상기한 방법대로 저장한 다(s24). 그러나 기본값보다 작을 경우에는 새로운 전화번호를 변환한 정수를 새로운 기본값으로 저장하고, 기존에 저장된 모든 전화번호들을 새로운 기본값과의 차를 산정하여 다시 저장한다(s24).The second converting unit 23 converts the new storage target phone number into an integer as described above (s23). The second storage execution unit 24 then compares this integer with the stored default value. The second storage execution unit 24 stores the difference from the default value as described above if the new stored target phone number is greater than the default value (when the default value is the minimum value) (s24). However, if it is smaller than the default value, the new phone number is converted to the new default value, and all existing phone numbers are stored again by calculating a difference from the new default value (s24).

한편, 저장된 전화번호를 삭제하는 경우도 발생할 수 있는데, 이 경우의 삭제 처리는 다음과 같이 이루어진다. 도 2에 제시된 실시예에 의한 기 저장된 전화번호를 삭제하는 경우의 흐름이 도 2c에 제시되어 있다.On the other hand, there may be a case where the stored telephone number is deleted. In this case, the deletion process is performed as follows. The flow of deleting a pre-stored phone number according to the embodiment shown in FIG. 2 is shown in FIG. 2C.

삭제 대상 전화번호가 기본값에 해당하는 전화번호가 아니라면 삭제하려는 전화번호에 해당되는 차를 삭제한다. 그러나 만일 삭제하려는 전화번호가 기본값에 해당하는 전화번호이면, 기본값을 다른 값으로 대체해야 한다. 이때는 다른 전화번호들을 정수로 변환한 값 중에서 가장 작은 것을 새로운 기본값으로 정하는데(최소치가 기본값인 경우), 저장되어 있는 차들 중에서 가장 작은 차를 선택하여 삭제하고, 상기 차를 삭제되는 기본값과 더하여 새로운 기본값으로 저장한다. 아울러 기존에 저장된 전화번호들에 대해 새로운 기본값과의 차를 새로 산정하여 변경 저장한다. 한편 삭제되는 전화번호가 해당 페이지의 마지막 전화번호라면 해당 페이지를 삭제할 수도 있다.If the phone number to be deleted is not the default phone number, delete the car corresponding to the phone number to be deleted. However, if the phone number you want to delete is the phone number corresponding to the default value, you must replace the default value with another value. In this case, the smallest of the values converted from other phone numbers to an integer is set as the new default value (if the minimum value is the default value). The smallest car is selected and deleted from the stored cars, and the new car is added to the deleted default value. Save as default. In addition, the difference between the new default value and the existing stored telephone numbers are newly calculated and stored. If the phone number to be deleted is the last phone number of the page, the page can be deleted.

한편 전술한 이름군 저장 방법에서 이름군(예를 들어 가군 나군 등)들을 순서대로 연속해서 함께 페이지 저장방식에 의해 저장할 수도 있다. 이 경우에는 한 페이지에 복수개의 이름군이 함께 저장될 수 있으며, 각 이름군에 대한 인덱스 또는 각 이름으로 전화번호를 검색하기 위한 인덱스가 구축될 수도 있다. 다른 방법으로는 각 이름군을 다른 이름군과 별도로 페이지 저장방식에 의해 저장하는 것도 가능하다. 이때는 각 이름군을 검색하기 위한 인덱스와 각 이름군 내에서 이름에 의해 전화번호를 찾기 위한 인덱스가 각각 구축될 수도 있다.On the other hand, in the above-described name group storage method, name groups (for example, Gagunna group, etc.) may be sequentially stored together in a page storing method. In this case, a plurality of name groups may be stored together on one page, and an index for each name group or an index for searching a phone number by each name may be constructed. Alternatively, it is possible to save each name group separately from other name groups by the page storage method. In this case, an index for searching each name group and an index for finding a telephone number by name in each name group may be respectively constructed.

도 3a 내지 도 3c는 본 발명의 실시예의 바람직한 또 다른 흐름을, 도 3d는 본 발명의 실시예의 바람직한 일 구성을 제시한 것이다. 도 3(이하 도 3a 내지 도 3d를 도 3으로 일괄 표시함을 원칙으로 한다)에 제시된 실시예에 제시된 저장 방식은 국번 다음의 번호만을 이용하여 전화번호를 저장하는 방식이다.3A-3C show another preferred flow of an embodiment of the present invention, and FIG. 3D shows a preferred configuration of an embodiment of the present invention. The storage method shown in the embodiment shown in FIG. 3 (hereinafter, FIGS. 3A to 3D are collectively displayed in FIG. 3) is a method of storing a phone number using only the number following the station number.

도 3에 의한 저장 방식은 저장 대상 전화번호를 저장하기 위해 우선 판단부(31)는 기 저장된 전화번호들 중 저장 대상 전화번호의 국번과 동일한 국번을 가진 전화번호들이 기 저장되어 있는지 판단한다(s31). 저장부(32)는 상기한 판단에 근거하여 동일한 국번이 있는 경우에는 저장 대상 전화번호의 국번 다음의 번호만을 이용하여 새로운 전화번호를 저장한다(s32). 이때 기 저장된 전화번호들은 도 2의 실시예에와 유사하게 차(difference)를 이용한 저장 방식에 따라 저장되어 있다. 즉, 자신의 국번 다음의 번호들이 정수(integer)로 변환되어, 이들 정수 중 최소치 또는 최대치에 해당하는 정수(기본값)와의 차(difference)로써 저장되어 있다.In the storage method of FIG. 3, in order to store the storage target phone number, the determination unit 31 first determines whether telephone numbers having the same station number as the station number of the storage target phone number are already stored among the previously stored telephone numbers (s31). ). If the same station number is found based on the above determination, the storage unit 32 stores the new phone number using only the number following the station number of the target phone number (s32). In this case, the stored phone numbers are stored according to a storage method using a difference, similarly to the embodiment of FIG. 2. That is, the numbers following their station number are converted into integers and stored as a difference from an integer (default) corresponding to the minimum or maximum of these integers.

아울러 도 3의 실시예에 의한 저장 방식의 경우에도, 도 1과 도 2의 실시예에 의한 저장 방식의 경우와 마찬가지로, 식별 번호에는 순번을 부여하고, 그 순번의 이진수 코드를 저장한다. 그리고 도 1과 도 2의 실시예의 경우와 마찬가지로, 모든 전화번호는 식별 번호가 동일한 것끼리 그룹핑(grouping)되어 저장된다.In addition, even in the case of the storage method according to the embodiment of FIG. 3, the identification number is assigned to the identification number and the binary code of the sequence is stored, similarly to the case of the storage method according to the embodiment of FIGS. 1 and 2. As in the case of the embodiment of Fig. 1 and Fig. 2, all phone numbers are stored with the same identification numbers grouped together.

한편, 도 3에 제시된 실시예의 경우에는 모든 전화번호는 국번이 동일한 것 끼리도 그룹핑되어 저장되는데, 이는 도 3에 제시된 실시예가 국번 다음의 번호를 근간으로 하여 저장이 이루어지기 때문이다.On the other hand, in the case of the embodiment shown in FIG. 3, all phone numbers are stored even if the same station numbers are grouped together, since the embodiment shown in FIG. 3 is stored based on the number following the station number.

저장 대상 전화번호의 국번을 가진 전화번호가 기 저장되어 있으면, 차 산출부(321)는 상기 기본값과 저장 대상 전화번호의 국번 다음의 번호의 차를 산출하고(s321), 저장 완료부(322)는 산출된 차의 이진수만으로 저장 대상 전화번호의 저장을 완료하게 된다(s322).If a phone number having a station number of the storage target phone number is already stored, the difference calculating unit 321 calculates a difference between the default value and the number following the station number of the storage target phone number (s321), and the storage completion unit 322 Completion of storing the storage target phone number only with the calculated binary number (s322).

만일 저장 대상 전화번호의 국번을 가진 전화번호가 기 저장되어 있지 아니하다면(s33), 국번 그룹 형성부(33)는 저장 대상 전화번호의 국번으로 새로운 국번 그룹을 형성하고(s331), 저장 완료부(322)는 저장 대상 전화번호의 국번 다음의 번호를 새로운 국번 그룹의 기본값으로 저장하여 저장 대상 전화번호의 저장을 완료하게 된다(s332).If the phone number having the station number of the storage target phone number is not already stored (s33), the station number group forming unit 33 forms a new station number group with the station number of the storage target telephone number (s331), and the storage completion unit 322 save destination The number following the station number of the phone number is stored as a default value of the new station number group, thereby completing the storing of the target phone number (s332).

저장 대상 전화번호의 국번을 가진 전화번호가 기 저장되어 있는 경우에 저장 대상 전화번호를 저장하는 방식을 예를 들어 설명하면 다음과 같다.An example of a method of storing a storage target phone number when a phone number having a station number of a storage target phone number is stored is as follows.

기 저장된 전화번호를 010-1234-5600이라 하고 1234 국번 그룹의 번호 중 최소치인 5600이 기본값으로 식별 번호인 '010'의 코드(<표 1>의 예에서는 0으로 이진수 코드는 00000)와 함께 저장되어 있다고 하자. 그리고 저장 대상 전화번호를 [010-1234-5780, 010-1234-5888, 010-1234-5990]라 하자. 각 전화번호의 국번 다음의 번호는 4자리 정수(5,780/5,888/5,990)로 변환된다.The previously saved phone number is 010-1234-5600, and the minimum number of 1234's group number 5600 is saved with the code of identification number '010' (0 in the example of <Table 1> and 00000 in binary code) by default. Let's say The storage target phone number is [010-1234-5780, 010-1234-5888, 010-1234-5990]. The number after the station number of each telephone number is converted to a four-digit integer (5,780 / 5,888 / 5,990).

다음으로 010-1234-5780에 해당되는 정수 5,780은 기본값과의 차인 180을, 010-1234-5888에 해당되는 정수 5,888은 기본값과의 차인 288을, 010-1234-5990에 해당되는 정수 5,990은 기본값과의 차인 390을 이진수로 각각 저장한다. 따라서 다음과 같이 저장된다(모두 이진수로 저장됨).Next, the integer 5,780 for 010-1234-5780 is 180, the difference from the default value, the integer 5,888 for 010-1234-5888 is 288, the difference from the default value, and the integer 5,990 for 010-1234-5990 is the default value. Store 390, the difference between and, in binary. Thus it is stored as follows (all in binary):

[0 + 12,345,600 | 180 | 288 | 390].[0 + 12,345,600 | 180 | 288 | 390].

상기 예에서 '0 + 12,345,600'은 식별 번호 순번 0의 코드(이진수 00000)과 정수 12,345,600에 해당하는 이진수(27 비트)가 함께 32 비트로 저장되는 것을 나타낸다. 그리고 기본값과 나머지 전화번호들의 정수와의 차는 모두 512(=29) 이하이므로, 나머지 각 전화번호는 9 비트(바이트 단위 저장이면 2 바이트)로 저장이 가능하다. 따라서 상기 4개의 전화번호 전체를 저장하는 경우, 기존 방식의 352 비트(44 바이트)에서 59 비트(8 바이트)로 줄어들게 된다. 만일 각 전화번호에 해당되는 차를 바이트 단위로 저장하더라도 80 비트(10바이트)면 저장이 가능하다.In the above example, '0 + 12,345,600' indicates that a code of binary number 0 (binary 00000) and a binary number (27 bits) corresponding to the integer 12,345,600 are stored together in 32 bits. And since the difference between the default value and the integer of the remaining phone numbers is less than 512 (= 2 9 ), each remaining phone number can be stored in 9 bits (2 bytes if the byte unit is stored). Therefore, when storing all four telephone numbers, the number is reduced from 352 bits (44 bytes) to 59 bits (8 bytes). Even if the difference corresponding to each telephone number is stored in byte unit, it is possible to save if it is 80 bits (10 bytes).

새로운 저장 대상 새로운 전화번호의 국번을 가진 전화번호가 기 저장되어 있지 아니한 경우에 새로운 전화번호를 저장하는 방식을 예를 들어 설명하면 다음과 같다.New storage destination A method of storing a new phone number when a phone number having a new phone number has not been stored is described as an example.

저장 대상 새로운 전화번호가 010-1234-5678이면, 국번인 1234로 새로운 국번 그룹을 형성하고 국번 1234 이후의 번호인 5678의 정수를 기본값으로 하여 식별 번호 010에 해당하는 식별 번호 순번 0의 코드(이진수 00000)과 함께 이진수로 저장함으로써 011-1234-5678에 대한 저장이 이루어진다.If the save destination new phone number is 010-1234-5678, a new station number group is formed with the station number 1234, and the number after the station number 1234 To an integer of 5678 By default, the data is stored in 011-1234-5678 by storing in binary with the code of the identification number 0 (binary 00000) corresponding to the identification number 010.

한편, 도 3의 경우에도, 이렇게 산출된 차의 이진수의 비트수가 동일한 것끼리 그룹핑되어 저장된다. 그리고 식별 번호, 국번 및 이진수의 비트수가 모두 동일 한 것끼리 그룹핑(grouping)된다.On the other hand, in the case of Fig. 3, the same number of bits of the binary number of the difference thus calculated are grouped and stored. The same number of bits of the identification number, the station number, and the binary number are grouped together.

한편 도 3에 의한 전화번호 저장 방식도 각 전화번호의 소유자의 이름군 또는 페이지 단위로 이루어지게 하는 것이 바람직하다. 이에 관련된 사항은 상기에서 설명한 바와 동일하므로 이에 대한 상세한 설명은 생략한다. 다만 차이점에 대해서만 언급하면,On the other hand, the telephone number storage method of FIG. 3 is also preferably made in the name group or page unit of the owner of each telephone number. The matters related to this are the same as described above, so a detailed description thereof will be omitted. Just to mention the difference,

기본 저장되는 전화번호에 대해서는 [이름, 식별 번호 코드, 국번, 4자리 정수(국번 이후의 번호)]의 형태로, 다음부터 저장되는 각 전화번호에 대해서는 [이름, 차]의 형태로 저장할 수 있어 저장 공간을 더욱 줄일 수 있다. 즉 페이지내의 모든 선후의 전화번호의 차가 4,096(=212) 이하라면, 이 경우의 차는 12 비트(2 바이트)로 표현할 수 있으므로 기본 저장되는 전화번호에 대해서는 이름과 전화번호를 위해 10 바이트, 차후에 저장되는 동일 국번의 전화번호에 대해서는 이름과 전화번호를 위해 8 바이트(=이름 6 바이트 + 차 2 바이트)의 저장 공간만이 필요로 한다. 전화번호간의 차가 더 작다면 더 적은 비트(바이트)로 표현할 수 있다. 즉, 선후 전화번호의 차가 256(=28) 이하라면, 8 비트(1 바이트)로 차를 표현할 수 있다.Basically stored phone numbers can be stored in the form of [name, identification number code, station number, 4-digit integer number]. The storage space can be further reduced. In other words, if the difference between all the telephone numbers in the page is 4,096 (= 2 12 ) or less, the difference in this case can be represented by 12 bits (2 bytes). Therefore, the default stored telephone number is 10 bytes for the name and the telephone number. For the telephone number of the same station number to be stored, only 8 bytes of storage space for the name and the telephone number are required. If the difference between phone numbers is smaller, it can be expressed in fewer bits (bytes). That is, if the difference between the front and rear telephone numbers is 256 (= 2 8 ) or less, the difference can be represented by 8 bits (1 byte).

한편, 도 3에 제시된 실시예의 경우도 [이름, 전화번호]의 필드들로 구성된 파일에 대해 도 2의 경우와 마찬가지로 저장 공간의 페이지 단위로 저장 방식을 구현할 수 있다.Meanwhile, in the case of the embodiment illustrated in FIG. 3, a storage method may be implemented in units of pages of a storage space, similarly to the case of FIG. 2, for a file composed of fields of [name, phone number].

한편, 기본값에 해당하는 전화번호와 다른 전화번호들이 도 3에 제시된 실시 예에 따라 기본값과 각 산출된 기본값과의 차가 저장되어 있을 경우, 새로운 전화번호를 저장하는 경우가 발생하였을 때의 새로운 전화번호의 저장 방식은 도 2의 실시예에 의한 방식을 응용할 수 있다. 도 3에 제시된 실시예에 의한 새로운 전화번호를 저장하는 경우의 흐름이 도 3b에 제시되어 있다. 전술한 내용과 중복되는 상세한 설명은 생략한다.On the other hand, when the phone number corresponding to the default value and other phone numbers are stored in the difference between the default value and each calculated default value according to the embodiment shown in FIG. 3, a new phone number when a new phone number is stored The storage method of may be applied to the method according to the embodiment of FIG. The flow of storing a new telephone number according to the embodiment shown in FIG. 3 is shown in FIG. 3B. Detailed description overlapping with the above description will be omitted.

한편, 도 3에 제시된 실시예에서도 기 저장된 전화번호를 삭제하는 경우가 발생할 수 있는데, 이 경우의 저장 처리도 도 2의 실시예에 의한 방식을 응용할 수 있다. 도 3에 제시된 실시예에 의한 기 저장된 전화번호를 삭제하는 경우의 흐름이 도 3c에 제시되어 있다. 전술한 내용과 중복되는 상세한 설명은 생략한다.Meanwhile, even in the embodiment shown in FIG. 3, a case in which a previously stored telephone number may be deleted may be applied. The storage process in this case may also apply the method according to the embodiment of FIG. 2. The flow of deleting a previously stored phone number according to the embodiment shown in FIG. 3 is shown in FIG. 3C. Detailed description overlapping with the above description will be omitted.

도 4는 본 발명의 실시예의 바람직한 또 다른 흐름을 제시한 것이다.4 presents another preferred flow of an embodiment of the present invention.

도 4에 제시된 저장 방식은 새로운 전화번호를 저장시에 직전에 저장된 전화번호와의 차(difference)만을 이용하여 저장하는 방식이다. 이 방식은 전화번호가 사전에 정렬되어 있는 경우에 적용하는 것이 바람직하다. 도 4에 제시된 실시예에 관한 설명에 있어서, 상기 도 1 내지 도 3의 경우에 설명된 거의 모든 제반 사항이 도 4의 경우에도 응용될 수 있음을 미리 밝힌다. 따라서 중복되는 사항에 대해서는 상세한 설명을 생략한다.The storage method shown in FIG. 4 is a method of storing a new phone number using only a difference with the immediately stored phone number when storing the new phone number. This method is preferably applied when the telephone numbers are arranged in advance. In the description of the embodiment shown in FIG. 4, it is revealed in advance that almost all matters described in the case of FIGS. 1 to 3 may be applied to the case of FIG. 4. Therefore, detailed descriptions of overlapping matters will be omitted.

도 4에 의한 저장 방식의 경우, 최초 저장되는 전화번호는 4 바이트(=식별 번호 코드 5 비트 + 전화번호 정수 표현 27 비트)가 필요하다. 한편 최초 저장되는 전화번호의 소유자의 이름을 같이 저장하는 경우에는 이름을 저장하기 위한 6 바이트가 추가 소요된다. 최초 저장되는 전화번호의 다음에 저장되는 번호들은 바로 직 전에 저장된 전화번호와의 차를 산출하여(s41), 이의 이진수만으로 저장될 수 있다(s42).In the case of the storage method according to Fig. 4, the first stored telephone number requires 4 bytes (= 5 bits of identification number code + 27 bits of integer number representation). On the other hand, if the name of the owner of the first stored phone number is stored together, it takes 6 bytes to store the name. The numbers stored next to the first stored telephone numbers are calculated by calculating the difference with the immediately stored telephone number (s41), and can be stored only with their binary numbers (s42).

예를 들어 저장 대상 전화번호를 [010-1234-5600, 010-1234-5780, 010-1234-5888, 010-1234-5990]라 하자. 최초 저장되는 전화번호인 010-1234-5600이 기본 전화번호로 저장된다. 기본 전화번호의 정수(12,345,600)를 기본값으로 상기 전화번호들의 식별 번호인 '010'의 코드(<표 1>의 예에서는 0이며 이진수는 00000)와 함께 이진수로 저장된다.For example, the storage target phone number is [010-1234-5600, 010-1234-5780, 010-1234-5888, 010-1234-5990]. The first stored telephone number, 010-1234-5600, is stored as the default telephone number. By default, the integer (12,345,600) of the basic telephone number is stored as a binary number along with a code of '010' which is an identification number of the telephone numbers (0 in the example of <Table 1> and binary is 00000).

다음 저장 대상 전화번호인 010-1234-5780의 국번과 국번 다음의 번호를 정수로 변환하고 이의 직전에 저장된 전화번호인 기본 전화번호 010-1234-5600에 해당되는 기본값과의 차인 180을 이진수로 저장한다. 마찬가지 방법으로 010-1234-5888의 국번과 국번 다음의 번호를 정수로 변환하고, 이의 직전에 저장된 전화번호인 010-1234-5780에 해당되는 정수와의 차인 108을, 010-1234-5990은 이의 국번과 국번 다음의 번호를 변환한 정수와 직전에 저장된 전화번호인 010-1234-5888에 해당되는 정수간의 차인 102를 이진수로 저장한다. 따라서 다음과 같이 저장된다(모두 이진수로 저장됨).Converts the station number of 010-1234-5780, the next target phone number, and the number after the station number into an integer, and stores 180, the difference between the default value corresponding to the basic telephone number 010-1234-5600, the telephone number stored immediately before it, as a binary number. do. In the same way, the station number of 010-1234-5888 and the number after the station number are converted into integers, and 108, which is the difference between the integer corresponding to the telephone number 010-1234-5780, stored immediately before the call, 010-1234-5990 102 is stored as a binary number between the integer converted from the station number and the number after the station number and the integer corresponding to the immediately stored telephone number 010-1234-5888. Thus it is stored as follows (all in binary):

[0 + 12,345,600, 180, 108, 102].[0 + 12,345,600, 180, 108, 102].

상기 예에서 '0 + 12,345,600'은 식별 번호 0의 코드(이진수 00000)과 정수 12,345,600에 해당하는 이진수(27 비트)가 함께 32 비트(4 바이트)로 저장되는 것을 나타낸다. 그리고 선후 전화번호의 차는 모두 128(=27) 이하이므로, 나머지 각 전화번호는 7 비트(1 바이트)로 저장이 가능하다. 따라서 상기 4개의 전화번호 전체를 저장하는 경우, 기존 방식에 의한 352 비트(44 바이트)에서 53 비트(7 바이트)로 줄어들게 된다.In the above example, '0 + 12,345,600' indicates that the code of identification number 0 (binary 00000) and the binary number (27 bits) corresponding to the integer 12,345,600 are stored together in 32 bits (4 bytes). Since the difference between the telephone numbers after the call is 128 or less (= 2 7 ), each remaining telephone number can be stored as 7 bits (1 byte). Therefore, when storing all four telephone numbers, the number is reduced from 352 bits (44 bytes) to 53 bits (7 bytes) according to the conventional method.

상기 예에서 저장된 각 전화번호에 해당되는 차를 원래의 전화번호로 변환하기 위해서는, 기본값과 처음의 차부터 자신에 해당되는 차까지의 모든 합을 구하여 전화번호로 변환하면 된다. 즉, 마지막의 차 102에 해당되는 전화번호는 12,345,600 + 180 + 108 + 102 = 12,345,990이므로 정수 12,345,990을 전화번호로 변환하고 식별 번호를 부가하면 010-1234-5990을 구할 수 있다.In order to convert the car corresponding to each stored phone number in the above example into the original phone number, all the sums of the default car and the car corresponding to the first car can be obtained and converted into the phone number. That is, since the telephone number corresponding to the last difference 102 is 12,345,600 + 180 + 108 + 102 = 12,345,990, the integer 12,345,990 is converted into a telephone number and an identification number is added to obtain 010-1234-5990.

한편 상기 저장 방식(직전 저장된 전화번호에 해당되는 정수와의 차를 저장하는 방식)에서도 전화번호의 삽입 및 삭제 처리가 가능하다. 먼저 삽입 및 삭제되는 전화번호에 해당되는 삽입 및 삭제 위치를 찾아야 한다. 그리고 삽입에서는 삽입되는 전화번호와 직전 전화번호에 해당되는 정수간의 차를 기본값과 처음부터 직전 전화번호에 해당되는 위치까지 저장된 차들의 모든 합을 구하여 계산하여야 하고, 삽입 위치에 저장된 차부터 마지막 차까지는 뒤로 한 자리씩 이동시키면서 차를 새로 계산하여야 한다. 또한 전화번호의 삭제시는 삭제되는 전화번호 다음의 전화번호들에 해당되는 차를 (필요에 따라서는 앞으로 한 자리씩 이동시키면서) 새로 계산하여야 한다.On the other hand, the storage method (a method of storing a difference from an integer corresponding to a previously stored telephone number) can also be inserted and deleted. First, the insertion and deletion positions corresponding to the telephone numbers to be inserted and deleted should be found. In the insertion, the difference between the telephone number to be inserted and the integer corresponding to the previous telephone number should be calculated by calculating the sum of all the cars stored from the default value and the position corresponding to the previous telephone number from the beginning to the last telephone number. You have to recalculate the car by moving back one digit. In addition, when the telephone number is deleted, the car corresponding to the telephone numbers following the deleted telephone number must be newly calculated (moving one digit forward if necessary).

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한 다.The present invention can also be embodied as computer-readable codes on a computer-readable recording medium. Computer-readable recording media include all types of recording devices that store data that can be read by a computer system.

컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시예를 중심으로 살펴보았다. 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다.The present invention has been described above with reference to preferred embodiments thereof. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention.

그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 균등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the equivalent scope will be construed as being included in the present invention.

도 1은 본 발명의 실시예의 바람직한 흐름을 제시한 도면이다.1 is a view showing a preferred flow of an embodiment of the present invention.

도 2a 내지 도 2c는 본 발명의 실시예의 바람직한 또 다른 흐름을 제시한 도면이다.2A-2C show another preferred flow of an embodiment of the invention.

도 2d는 본 발명의 실시예의 바람직한 구성을 제시한 도면이다.Figure 2d is a diagram showing a preferred configuration of an embodiment of the present invention.

도 3a 내지 도 3c는 본 발명의 실시예의 바람직한 또 다른 흐름을 제시한 도면이다.3A-3C illustrate another preferred flow of an embodiment of the present invention.

도 3d는 본 발명의 실시예의 바람직한 또 다른 구성을 제시한 도면이다.Figure 3d is a diagram showing another preferred configuration of the embodiment of the present invention.

도 4는 본 발명의 실시예의 바람직한 또 다른 흐름을 제시한 도면이다.4 is a view showing another preferred flow of an embodiment of the present invention.

Claims (30)

전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들의 국번과 국번 다음의 번호들을 정수(integer)로 변환하고, 상기 변환된 정수들 중 최소치 또는 최대치에 해당하는 정수를 기본값으로 정하여 상기 기본값의 이진수(binary number)를 저장하는 단계; 및Convert the station number of the phone numbers to be stored in the device with the phone number storage function and the number following the station number into an integer, and set the integer value corresponding to the minimum or maximum value among the converted integers as a default value to the binary number of the default value. storing a binary number); And 상기 기 저장된 전화번호 외에 다른 전화번호들을 저장할 경우, 상기 다른 각 전화번호의 국번과 국번 다음의 번호를 정수로 변환하고, 상기 다른 각 전화번호의 국번 및 국번 다음의 번호가 변환된 정수들과 상기 기본값과의 차를 산출하여 상기 차의 이진수만으로 상기 다른 각 전화번호를 저장하는 단계를 포함하는 전화번호 저장 방법.When storing other telephone numbers other than the pre-stored telephone numbers, the station number and the number following the station number of each of the other telephone numbers are converted into integers, and the integers converted from the station number and the number after the station number of each of the other telephone numbers and the Calculating a difference from a default value and storing each of the other phone numbers using only the binary number of the difference. 제 1 항에 있어서,The method of claim 1, 상기 모든 전화번호의 국번과 국번 다음의 번호를 제외한 나머지 번호(식별 번호)에는 순번을 부여하여 그 순번의 이진수를 저장하는 단계를 더 포함하고,And allocating a sequence number to the remaining numbers (identification numbers) except for the station number and the number after the station number of the all phone numbers, and storing the binary number of the sequence number, 상기 최대치 또는 최소치에 해당하는 정수의 이진수는 상기 식별 번호의 순번의 이진수와 함께 기본 저장되는 것을 특징으로 하는 전화번호 저장 방법.The binary number of the integer corresponding to the maximum value or the minimum value is basically stored with the binary number of the sequence number of the identification number. 제 2 항에 있어서, 상기 저장 방법은The method of claim 2, wherein the storage method 상기 각 전화번호의 소유자의 이름군 또는 상기 디바이스의 저장 공간의 페 이지 단위로 이루어지는 것을 특징으로 하는 전화번호 저장 방법.Telephone number storage method, characterized in that the name group of the owner of each telephone number or a page unit of the storage space of the device. 제 3 항에 있어서,The method of claim 3, wherein 상기 디바이스에 오름차순(내림차순)으로 전화번호를 정렬하는 경우에는 상기 최소치(최대치)를 상기 기본값으로 정하고, 이 경우 상기 다른 각 전화번호를 저장하는 단계는,In the case of sorting the phone numbers in ascending order (descending order) to the device, setting the minimum value (maximum value) as the default value, and in this case, storing each of the other phone numbers, 상기 각 다른 전화번호의 국번과 국번 다음의 번호를 정수로 변환하여 상기 기본값과 비교하는 단계;Converting the station number of each of the other phone numbers and the number following the station number into an integer and comparing the same with the default value; 상기 기본값보다 크면(작으면) 상기 기본값과의 차의 이진수만으로 상기 각 다른 전화번호를 저장하고, 상기 기본값보다 작은(큰) 경우에는 상기 각 다른 전화번호를 새로운 기본값으로 저장하는 단계; 및Storing each of the other phone numbers only with a binary number different from the default value if greater than the default value, and storing each other phone number as a new default value if less than the default value; And 상기 새로운 기본값이 저장된 경우, 기 저장된 전화번호들을 상기 새로운 기본값과의 차를 산정하여 변경 저장하는 단계를 포함하는 것을 특징으로 하는 전화번호 저장 방법.And when the new default value is stored, changing and storing previously stored phone numbers by calculating a difference from the new default value. 제 4 항에 있어서, 상기 디바이스에 기 저장된 전화번호가 삭제되는 경우에는The method of claim 4, wherein if the phone number previously stored in the device is deleted, 삭제 대상 전화번호가 상기 기본값에 해당하는 전화번호인지를 판단하는 단계;Determining whether the phone number to be deleted is a phone number corresponding to the default value; 상기 기본값에 해당하는 전화번호가 아니면, 상기 삭제 대상 전화번호에 해당되는 차를 삭제하는 단계;Deleting a car corresponding to the target phone number to be deleted if not the phone number corresponding to the default value; 상기 기본값에 해당하는 전화번호이면, 상기 삭제 대상 전화번호 이외의 기 저장 전화번호들의 최소치 또는 최대치를 대체 기본값으로 설정함으로써 상기 기본값을 대체하는 단계; 및If the phone number corresponds to the default value, replacing the default value by setting a minimum value or a maximum value of previously stored phone numbers other than the deleted target phone number as an alternative default value; And 상기 기 저장 전화번호들을 상기 대체 기본값과의 차를 산정하여 변경 저장하는 단계를 더 포함하는 것을 특징으로 하는 전화번호 저장 방법.And storing the previously stored telephone numbers by changing and calculating a difference from the substitute default value. 제 5 항에 있어서, 상기 모든 전화번호는6. The method of claim 5, wherein all of the telephone numbers are 상기 식별 번호 및 상기 기본값과의 차의 이진수의 비트수가 동일한 것, 또는 상기 식별 번호 및 상기 대체 기본값과의 차의 이진수의 비트수가 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.And storing the same number of bits of the binary number of the difference between the identification number and the default value, or storing the same number of bits of the binary number of the difference between the identification number and the substitute default value. Way. 전화번호 저장 기능을 가진 디바이스에 새로운 전화번호를 저장하는 경우, 상기 디바이스에 기 저장된 전화번호들 중 상기 저장 대상 전화번호의 국번과 동일한 국번을 가진 전화번호들이 기 저장되어 있는지 판단하는 단계; 및When storing a new telephone number in a device having a telephone number storage function, determining whether telephone numbers having the same station number as the station number of the target phone number are already stored among the telephone numbers previously stored in the device; And 상기 판단 결과, 동일한 국번이 있는 경우에는 상기 저장 대상 전화번호의 국번 다음의 번호만을 이용하여 상기 저장 대상 전화번호를 저장하는 단계를 포함하는 전화번호 저장 방법.If the same station number is found, storing the phone number to be stored using only the number after the station number of the phone number to be stored. 제 7 항에 있어서,The method of claim 7, wherein 상기 모든 전화번호의 국번과 국번 다음의 번호를 제외한 나머지 번호(식별 번호)에는 순번을 부여하고, 그 순번의 이진수를 저장하는 단계를 더 포함하는 것 을 특징으로 하는 전화번호 저장 방법.And assigning a sequence number to the remaining numbers (identification numbers) except for the station number and the number following the station number of the all phone numbers, and storing the binary numbers of the sequence numbers. 제 8 항에 있어서, 상기 저장 방법은The method of claim 8, wherein the storage method 상기 각 전화번호의 소유자의 이름군 또는 상기 디바이스의 저장 공간의 페이지 단위로 이루어지는 것을 특징으로 하는 전화번호 저장 방법.And a unit of a name of the owner of each telephone number or a page unit of a storage space of the device. 제 9 항에 있어서, The method of claim 9, 상기 기 저장된 전화번호들은 자신의 국번 다음의 번호들이 정수(integer)로 변환되어, 이들 정수 중 최소치 또는 최대치에 해당하는 정수(기본값)와의 차(difference)로써 저장되어 있고,The pre-stored phone numbers are stored as a difference with an integer (default value) corresponding to the minimum or maximum number of these integers after their station number is converted to an integer, 상기 동일한 국번이 있는 경우에 상기 저장 대상 전화번호의 국번 다음의 번호만을 저장하는 단계는 상기 기본값과 상기 저장 대상 전화번호의 국번 다음의 번호의 차를 산출하여 상기 차의 이진수만으로 상기 저장 대상 전화번호를 저장하여 구현되는 것을 특징으로 하는 전화번호 저장 방법.In the case where the same station number exists, the step of storing only the number after the station number of the storage target phone number may be performed by calculating a difference between the default value and the number after the station number of the storage target phone number and using only the binary number of the difference. Phone number storage method, characterized in that implemented by storing. 제 10 항에 있어서, 상기 저장 대상 전화번호의 국번과 동일한 국번을 갖는 기 저장 전화번호가 없는 경우에는,11. The method of claim 10, wherein if there is no previously stored telephone number having the same station number as the station number of the stored target telephone number, 상기 저장 대상 전화번호의 국번으로 새로운 국번 그룹을 형성하는 단계; 및Forming a new station number group with a station number of the storage target phone number; And 상기 저장 대상 전화번호의 국번 다음의 번호를 상기 새로운 국번 그룹의 기본값으로 저장하는 단계를 더 포함하는 것을 특징으로 하는 전화번호 저장 방법.And storing the number following the station number of the target phone number as a default value of the new station number group. 제 10 항에 있어서,11. The method of claim 10, 상기 디바이스에 오름차순(내림차순)으로 전화번호를 정렬하는 경우에는 상기 최소치(최대치)를 상기 기본값으로 정하고, 이 경우 상기 저장 대상 전화번호를 저장하는 단계는In the case of sorting the phone numbers in ascending order (descending order) to the device, setting the minimum value (maximum value) as the default value, and in this case, storing the storage target phone number. 상기 저장 대상 전화번호의 국번 다음의 번호를 정수로 변환하여 상기 기본값과 비교하는 단계;Converting a number following the station number of the storage target phone number into an integer and comparing it with the default value; 상기 기본값보다 크면(작으면) 상기 기본값과의 차의 이진수만으로 상기 저장 대상 전화번호를 저장하고, 상기 기본값보다 작은(큰) 경우에는 상기 저장 대상 전화번호의 국번 다음의 번호를 새로운 기본값으로 저장하는 단계; 및If the value is larger than the default value (if smaller), the storage target phone number is stored only with a binary number different from the default value. If the size is smaller than the default value, the number next to the station number of the storage target telephone number is stored as a new default value. step; And 상기 새로운 기본값이 저장되는 경우, 기 저장된 전화번호들을 상기 새로운 기본값과의 차를 산정하여 변경 저장하는 단계를 포함하는 것을 특징으로 하는 전화번호 저장 방법.And when the new default value is stored, changing and storing previously stored phone numbers by calculating a difference from the new default value. 제 12 항에 있어서, 상기 디바이스에 기 저장된 전화번호가 삭제되는 경우에는The method of claim 12, wherein when the telephone number previously stored in the device is deleted, 삭제 대상 전화번호가 상기 기본값에 해당하는 전화번호인지를 판단하는 단계;Determining whether the phone number to be deleted is a phone number corresponding to the default value; 상기 기본값에 해당하는 전화번호가 아니면, 상기 삭제 대상 전화번호에 해당되는 차를 삭제하는 단계;Deleting a car corresponding to the target phone number to be deleted if not the phone number corresponding to the default value; 상기 기본값에 해당하는 전화번호이면, 상기 삭제 대상 전화번호 이외의 기 저장 전화번호들의 최소치 또는 최대치를 대체 기본값으로 설정함으로써 상기 기본값을 대체하는 단계; 및If the phone number corresponds to the default value, replacing the default value by setting a minimum value or a maximum value of previously stored phone numbers other than the deleted target phone number as an alternative default value; And 상기 기 저장 전화번호들을 상기 대체 기본값과의 차를 산정하여 변경 저장하는 단계를 더 포함하는 것을 특징으로 하는 전화번호 저장 방법.And storing the previously stored telephone numbers by changing and calculating a difference from the substitute default value. 제 13 항에 있어서, 상기 모든 전화번호는The method of claim 13, wherein all the telephone numbers are 상기 식별 번호, 상기 기본값과의 차의 이진수의 비트수 및 국번이 동일한 것, 또는 상기 식별 번호, 상기 대체 기본값과의 차의 이진수의 비트수 및 국번이 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.The identification number, the number of bits and the station number of the binary number different from the default value being the same, or the identification number, the number of bits and the station number of the binary number different from the alternative default value being grouped together and stored Characterized in the phone number storage method. 전화번호 저장 기능을 가진 디바이스에 새로운 전화번호를 저장하는 경우, 직전에 저장된 전화번호와 상기 저장 대상 전화번호의 차(difference)를 산출하여 상기 차의 이진수만으로 상기 저장 대상 전화번호를 저장하는 전화번호 저장 방법.When storing a new telephone number in a device having a telephone number storage function, a telephone number for storing the stored target telephone number only with the binary number of the difference by calculating a difference between the immediately stored telephone number and the stored target telephone number. Storage method. 제 15 항에 있어서,The method of claim 15, 상기 모든 전화번호의 국번과 국번 다음의 번호를 제외한 나머지 번호(식별 번호)에는 순번을 부여하고, 그 순번의 이진수를 저장하는 단계를 더 포함하는 것을 특징으로 하는 전화번호 저장 방법.And allocating a sequence number to the remaining numbers (identification numbers) except for the station number and the number following the station number of the all phone numbers, and storing the binary numbers of the sequence numbers. 제 16 항에 있어서, 상기 저장 방법은The method of claim 16, wherein the storage method is 상기 각 전화번호의 소유자의 이름군 또는 상기 디바이스의 저장 공간의 페 이지 단위로 이루어지는 것을 특징으로 하는 전화번호 저장 방법.Telephone number storage method, characterized in that the name group of the owner of each telephone number or a page unit of the storage space of the device. 제 17 항에 있어서, 상기 모든 전화번호는18. The system of claim 17, wherein all of the telephone numbers are 상기 식별 번호가 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.And storing the same identification numbers grouped together. 제 18 항에 있어서, 상기 저장 대상 전화번호의 저장은19. The method of claim 18, wherein the storing of the storage target phone number 상기 저장 대상 전화번호의 국번과 국번 다음의 번호를 정수(integer)로 변환하고, 이 정수와 상기 직전 저장된 전화번호의 국번과 국번 다음의 번호가 변환된 정수의 차의 이진수를 저장하여 이루어지는 것을 특징으로 하는 전화번호 저장 방법.Converting the station number of the target phone number and the number after the station number into an integer, and storing the binary number of the difference between the integer and the integer number of the station number and the number immediately following the station number of the immediately stored telephone number. How to save your phone number. 제 19 항에 있어서, 상기 모든 전화번호는20. The system of claim 19, wherein all of the telephone numbers are 국번이 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.Phone number storage method, characterized in that the station number is stored in the same grouping (grouping). 제 20 항에 있어서, 상기 저장 대상 전화번호의 저장은21. The method of claim 20, wherein the storing of the storage target phone number 상기 저장 대상 전화번호의 국번 다음의 번호를 정수(integer)로 변환하고, 이 정수와 상기 직전 저장된 전화번호의 국번 다음의 번호가 변환된 정수의 차의 이진수를 저장하여 이루어지는 것을 특징으로 하는 전화번호 저장 방법.And converting the number following the station number of the target phone number into an integer, and storing the binary number of the difference between the integer and the number after the station number of the immediately stored phone number. Storage method. 제 21 항에 있어서, 상기 모든 전화번호는22. The system of claim 21, wherein all the telephone numbers are 상기 차의 이진수의 비트수가 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.And storing the same number of bits of the binary number in the group. 전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들의 국번과 국번 다음의 번호를 정수(integer)로 변환하는 단계; 및Converting a station number of a telephone number to be stored in a device having a telephone number storage function and a number following the station number into an integer; And 상기 변환된 정수의 이진수로써 상기 저장 대상 전화번호를 저장하는 단계를 포함하는 전화번호 저장 방법.And storing the storage target phone number as the binary number of the converted integer. 제 23 항에 있어서,The method of claim 23, wherein 상기 모든 전화번호의 국번과 국번 다음의 번호를 제외한 나머지 번호(식별 번호)에는 순번을 부여하고, 그 순번의 이진수를 저장하는 단계를 더 포함하는 것을 특징으로 하는 전화번호 저장 방법.And allocating a sequence number to the remaining numbers (identification numbers) except for the station number and the number following the station number of the all phone numbers, and storing the binary numbers of the sequence numbers. 제 26 항에 있어서, 상기 저장 방법은27. The method of claim 26, wherein the storage method is 상기 각 전화번호의 소유자의 이름군 또는 상기 디바이스의 저장 공간의 페이지 단위로 이루어지는 것을 특징으로 하는 전화번호 저장 방법.And a unit of a name of the owner of each telephone number or a page unit of a storage space of the device. 제 25 항에 있어서, 상기 모든 전화번호는27. The system of claim 25, wherein all the telephone numbers are 상기 식별 번호가 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.And storing the same identification numbers grouped together. 제 26 항에 있어서, 상기 모든 전화번호는27. The system of claim 26, wherein all of the telephone numbers are 국번이 동일한 것끼리 그룹핑(grouping)되어 저장되는 것을 특징으로 하는 전화번호 저장 방법.Phone number storage method, characterized in that the station number is stored in the same grouping (grouping). 전화번호 저장 기능을 가진 디바이스에 저장될 전화번호들의 국번과 국번 다음의 번호들을 정수(integer)로 변환하는 제1 변환부;A first converting unit converting the station number of the telephone numbers to be stored in the device having the telephone number storing function and the numbers following the station number into an integer; 상기 변환된 정수들 중 최소치 또는 최대치에 해당하는 정수를 기본값으로 정하여 상기 기본값의 이진수(binary number)를 저장하는 제1 저장 실행부;A first storage execution unit configured to store a binary number of the default value by setting an integer corresponding to a minimum or maximum value among the converted integers as a default value; 상기 기 저장된 전화번호 외에 다른 전화번호들을 저장할 경우, 상기 다른 각 전화번호의 국번과 국번 다음의 번호를 정수로 변환하는 제2 변환부; 및A second conversion unit for converting other telephone numbers other than the pre-stored telephone numbers, the station number of each of the other telephone numbers and the number following the station number into an integer; And 상기 다른 각 전화번호의 국번 및 국번 다음의 번호가 변환된 정수들과 상기 기본값과의 차를 산출하여 상기 차의 이진수만으로 상기 다른 각 전화번호를 저장하는 제2 저장 실행부를 포함하는 전화번호 저장 시스템.A telephone number storage system including a second storage execution unit configured to calculate the difference between the station number of each of the other telephone numbers and the integers converted from the numbers following the station number and the default value, and store each of the other telephone numbers only with the binary number of the difference; . 전화번호 저장 기능을 가진 디바이스에 새로운 전화번호를 저장하는 경우, 상기 디바이스에 기 저장된 전화번호들 중 상기 저장 대상 전화번호의 국번과 동일한 국번을 가진 전화번호들이 기 저장되어 있는지 판단하는 판단부;Determining unit for determining whether the phone number having the same station number as the station number of the target phone number of the phone number stored in the device when the new phone number is stored in the device having a phone number storage function; 상기 판단 결과, 동일한 국번이 없는 경우에는 상기 저장 대상 전화번호의 국번으로 새로운 국번 그룹을 형성하는 국번 그룹 형성부; 및If the same station number is not found, a station number group forming unit for forming a new station number group with the station number of the storage target phone number; And 상기 판단 결과, 동일한 국번이 있는 경우에는 상기 저장 대상 전화번호의 국번 다음의 번호만을 이용하여 상기 저장 대상 전화번호를 저장하거나, 상기 새로운 국번 그룹이 형성된 경우에는 상기 저장 대상 전화번호의 국번 다음의 번호를 상기 새로운 국번 그룹의 기본값으로 저장하는 저장 완료부를 포함하는 전화번호 저장 시스템.As a result of the determination, when there is the same station number, the storage target phone number is stored using only the number following the station number of the storage target phone number, or when the new station number group is formed, the number following the station number of the storage target phone number. The telephone number storage system including a storage completion unit for storing the default number of the new station number group. 제 1 항 내지 제 27항 중 어느 한 항의 방법을 컴퓨터에서 실행하기 위한 프로그램을 기록하는 컴퓨터 판독 가능한 기록 매체.A computer-readable recording medium for recording a program for executing the method of any one of claims 1 to 27 on a computer.
KR1020090114420A 2009-11-25 2009-11-25 Method and System for storing telephone numbers KR101069667B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020090114420A KR101069667B1 (en) 2009-11-25 2009-11-25 Method and System for storing telephone numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020090114420A KR101069667B1 (en) 2009-11-25 2009-11-25 Method and System for storing telephone numbers

Publications (2)

Publication Number Publication Date
KR20110057846A KR20110057846A (en) 2011-06-01
KR101069667B1 true KR101069667B1 (en) 2011-10-05

Family

ID=44393413

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090114420A KR101069667B1 (en) 2009-11-25 2009-11-25 Method and System for storing telephone numbers

Country Status (1)

Country Link
KR (1) KR101069667B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160139847A (en) 2015-05-29 2016-12-07 진명구 heat insulating cover of fixing clip for vinylhouse

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5603022A (en) 1994-09-23 1997-02-11 The Regents Of The University Of Michigan Data compression system and method representing records as differences between sorted domain ordinals representing field values
KR100929371B1 (en) 2009-03-18 2009-12-02 한국과학기술원 A method to store data into flash memory in a dbms-independent manner using the page-differential

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5603022A (en) 1994-09-23 1997-02-11 The Regents Of The University Of Michigan Data compression system and method representing records as differences between sorted domain ordinals representing field values
KR100929371B1 (en) 2009-03-18 2009-12-02 한국과학기술원 A method to store data into flash memory in a dbms-independent manner using the page-differential

Also Published As

Publication number Publication date
KR20110057846A (en) 2011-06-01

Similar Documents

Publication Publication Date Title
US8255398B2 (en) Compression of sorted value indexes using common prefixes
JP4685348B2 (en) Efficient collating element structure for handling large numbers of characters
CN104380267B (en) Data compression/decompression device
US20160006456A1 (en) Compression device, compression method, dictionary generation device, dictionary generation method, decompression device, decompression method, information processing system, and recording medium
US20160321282A1 (en) Extracting method, information processing method, computer product, extracting apparatus, and information processing apparatus
US7663511B2 (en) Dynamic character encoding
US9378126B2 (en) Decompression apparatus and decompression method
CN105191144B (en) Compression set, compression method, decompression device, decompressing method and information processing system
US9916314B2 (en) File extraction method, computer product, file extracting apparatus, and file extracting system
US20100085222A1 (en) Information processing apparatus, information processing method, and computer product
CN104579360B (en) A kind of method and apparatus of data processing
TWI604318B (en) Method of data sorting
CN116614139B (en) User transaction information compression storage method in wine selling applet
JPS6356726B2 (en)
KR101069667B1 (en) Method and System for storing telephone numbers
CN104091242A (en) Electronic archive ID card management system based on two-dimension code technology and operating method
CN104133883B (en) Telephone number ownership place data compression method
CN116827354B (en) File data distributed storage management system
CN114528944B (en) Medical text coding method, device, equipment and readable storage medium
US8682644B1 (en) Multi-language sorting index
CN111538730B (en) Data statistics method and system based on Hash bucket algorithm
CN101963957B (en) Method for implementing electronic dictionary on intelligent card and intelligent card
CN110825747B (en) Information access method, device and medium
CN115934730B (en) Data processing method and device, medium and computer equipment
Rani et al. A survey on lossless text data compression techniques

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20140926

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20161026

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20180822

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20190828

Year of fee payment: 9