TWI442754B - System and method for searching contacts - Google Patents

System and method for searching contacts Download PDF

Info

Publication number
TWI442754B
TWI442754B TW97140024A TW97140024A TWI442754B TW I442754 B TWI442754 B TW I442754B TW 97140024 A TW97140024 A TW 97140024A TW 97140024 A TW97140024 A TW 97140024A TW I442754 B TWI442754 B TW I442754B
Authority
TW
Taiwan
Prior art keywords
contact
unicode value
unicode
name
search
Prior art date
Application number
TW97140024A
Other languages
Chinese (zh)
Other versions
TW201018183A (en
Inventor
Yi Chun Hsiung
Original Assignee
Chi Mei Comm Systems Inc
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 Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Priority to TW97140024A priority Critical patent/TWI442754B/en
Publication of TW201018183A publication Critical patent/TW201018183A/en
Application granted granted Critical
Publication of TWI442754B publication Critical patent/TWI442754B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Description

聯繫人查找系統及方法Contact search system and method

本發明涉及一種資訊查找系統及方法,尤其涉及一種聯繫人查找系統及方法。The present invention relates to an information search system and method, and more particularly to a contact search system and method.

電話簿作為手機的基本功能之一,每天都被我們頻繁地使用著,根據手機功能使用調查顯示,有八成以上的消費者使用手機電話簿功能。但各款手機在電話簿這一功能上,就有著千差萬別的變化。各個手機生產廠商在不斷開發手機新功能的同時,也沒有忘記在研發新品時不斷強大和完善著手機電話簿的功能。手機電話簿對於人們的意義,也不止於僅僅像記事簿一樣顯示通訊位址,而是也在向著個性化、人性化的方向發展。而且隨著手機的發展,高容量的電話簿也會越來越受到商務人士的寵愛。As one of the basic functions of mobile phones, the phone book is frequently used every day. According to the survey of mobile phone function usage, more than 80% of consumers use the mobile phone book function. However, each mobile phone has a wide variety of changes in the function of the phone book. While the mobile phone manufacturers are constantly developing new functions of mobile phones, they have not forgotten the function of constantly strengthening and perfecting the mobile phone book when developing new products. The meaning of the mobile phone book for people is not only to display the communication address just like the notebook, but also to develop in a personalized and humanized direction. And with the development of mobile phones, high-capacity phone books will be increasingly favored by business people.

電話簿對各個手機而言都不盡相同,但總體來看目前手機電話簿的功能有:閱讀電話簿;增加新電話;本機號碼;存儲空間等專案。The phone book is different for each mobile phone, but in general, the functions of the current mobile phone book are: reading the phone book; adding new phones; local numbers; storage space and other projects.

電話簿中聯繫人的姓名的排列順序大致可分為兩類,一類是按照姓名中文拼音或英文的首個字母順序排列;另一類是按照手機內部的編碼來排列姓名。絕大部分手機所採取的查找方式都是按照姓名和儲存位置查找,也就是需要輸入要尋找的姓或按下首位字母就可以找出相近的名字。然而,由於現代人交際面越來越廣,認識的人越來越多,需要儲存的電話號碼也隨之增多,而目前大多手機在 進行查找時是依據用戶輸入的查找關鍵字(如,姓的拼音)在電話簿中所存儲的所有聯繫人的資料中進行查找,這樣導致查找效率大大降低。The order of the names of the contacts in the phone book can be roughly divided into two categories, one is according to the name Chinese Pinyin or the first alphabetical order of English; the other is to arrange the names according to the internal code of the mobile phone. Most mobile phones look for them by name and storage location, that is, you need to enter the last name you are looking for or press the first letter to find a similar name. However, as modern people become more and more communicative, more and more people know, and the number of phone numbers that need to be stored increases. When searching, the search keyword (for example, the pinyin of the last name) input by the user is searched in the data of all the contacts stored in the phone book, which results in greatly reduced search efficiency.

鑒於以上內容,本發明較佳實施例提供一種聯繫人查找系統及方法,其解決了在查找聯繫人時需要與存儲在電話簿中每一聯繫人一一比對從而導致查找效率低下的問題。In view of the above, the preferred embodiment of the present invention provides a contact search system and method, which solves the problem that when searching for a contact, it is required to be compared with each contact stored in the phone book, thereby causing low search efficiency.

一種聯繫人查找系統,應用於一個包括電話簿的手機中,所述系統包括:轉換模組,用於擷取所述電話簿中每一聯繫人的姓名,將該姓名轉換成中文拼音,給每個字母賦予對應的Unicode值,並將每一聯繫人對應的Unicode值存儲到一個陣列;查找模組,用於接收用戶輸入的關鍵字,依據關鍵字對應的Unicode值利用二分法在所述陣列中進行查找並獲取符合條件的Unicode值對應的聯繫人資訊。A contact search system is applied to a mobile phone including a phone book, the system comprising: a conversion module, configured to retrieve a name of each contact in the phone book, and convert the name into a Chinese pinyin, Each letter is assigned a corresponding Unicode value, and the Unicode value corresponding to each contact is stored in an array; a search module is configured to receive a keyword input by the user, and the dichotomy is performed according to the Unicode value corresponding to the keyword. Look in the array and get the contact information corresponding to the Unicode value that meets the criteria.

一種聯繫人查找方法,運用於一個包括電話簿的手機中,所述方法包括:擷取所述電話簿中每一聯繫人的姓名,將該姓名轉換成中文拼音,並給每個字母賦予對應的Unicode值;將每一聯繫人對應的Unicode值存儲到一個陣列;接收用戶輸入的關鍵字;依據關鍵字對應的Unicode值利用二分法在所述陣列 中進行查找並獲取符合條件的Unicode值對應的聯繫人資訊。A contact searching method is applied to a mobile phone including a phone book, the method comprising: capturing a name of each contact in the phone book, converting the name into a Chinese pinyin, and assigning a correspondence to each letter Unicode value; store the Unicode value corresponding to each contact to an array; receive the keyword input by the user; use the dichotomy in the array according to the Unicode value corresponding to the keyword Find and get the contact information corresponding to the Unicode value that meets the criteria.

相較於習知技術,本發明可以讓手機在查找聯繫人時不需要一一去比對電話簿中所有聯繫人資訊,而是利用二分法進行查找以大大提高手機的聯繫人查找效率。Compared with the prior art, the present invention can make the mobile phone do not need to compare all the contact information in the phone book when searching for contacts, but use the dichotomy to search to greatly improve the contact search efficiency of the mobile phone.

如圖1所示,係本發明聯繫人查找系統的功能模組及應用環境圖。所述聯繫人查找系統10(以下簡稱“查找系統10”)運行在一個手機1中。所述手機1包括一個電話簿12,用戶可利用該電話簿12編輯並保存每個聯繫人的姓名、及其對應的電話號碼、住宅地等資訊。所述之聯繫人的姓名的表達方式包括中文或者英文。所述電話簿12將聯繫人的姓名按照姓名中文拼音或英文的首個字母順序排列。As shown in FIG. 1 , it is a function module and an application environment diagram of the contact search system of the present invention. The contact search system 10 (hereinafter referred to as "finding system 10") operates in a mobile phone 1. The mobile phone 1 includes a phone book 12 that the user can use to edit and save the name of each contact, its corresponding phone number, home location, and the like. The expression of the name of the contact person includes Chinese or English. The phone book 12 arranges the names of the contacts according to the Chinese phonetic alphabet of the name or the first alphabetical order of the English.

所述手機1還包括一個記憶體14。所述記憶體14存儲有各類資料,包括作業系統、各種應用程式、及利用所述查找系統10過程中所設置及生成的資料,如電話簿中各聯繫人的資料等。The handset 1 also includes a memory 14. The memory 14 stores various types of materials, including an operating system, various applications, and materials set and generated during the process of using the search system 10, such as information of contacts in the phone book.

所述記憶體14可以是該手機1的記憶體,還可以是外部存儲卡,如SM卡(Smart Media Card,智慧媒體卡)、SD卡(Secure Digital Card,安全數位卡)、CF卡(Compact Flash Card,標準快閃記憶體卡)、MMC卡(Multi Media Card,多媒體卡)、MS卡(Memory Stick,記憶棒)、XD卡(Extreme Digital Card,極限數字卡)、TF卡(Trans Flash Card)等。The memory 14 can be the memory of the mobile phone 1, and can also be an external memory card, such as a SIM card (Smart Media Card), an SD card (Secure Digital Card), a CF card (Compact). Flash Card, standard flash memory card), MMC card (Multi Media Card), MS card (Memory Stick), XD card (Extreme Digital Card), TF card (Trans Flash Card) )Wait.

所述查找系統10是運行在手機1上的一段程式,藉由執行該查找系統10可利用二分法(binary search)查找保存在電話簿12中的聯繫人以提高查找效率。所述二分法針對查找範圍變化很大而又相對穩定的查找物件給出了一種改進的基於區間控制的折半查找演算法,當後一個查找物件在前一個查找物件附近時,在最壞狀態和平均狀態下,該演算法與傳統的查找演算法相比,其查找長度顯著減少,從而使查找速度加快。The search system 10 is a program running on the mobile phone 1. By executing the search system 10, a binary search can be used to find contacts stored in the phone book 12 to improve the search efficiency. The dichotomy provides an improved interval-based search algorithm for finding objects with a large and relatively stable search range. When the next search object is in the vicinity of the previous search object, it is in the worst state and In the average state, compared with the traditional search algorithm, the algorithm has a significantly reduced search length, which speeds up the search.

所述查找系統10主要包括轉換模組120、查找模組130及保存模組140。The search system 10 mainly includes a conversion module 120, a search module 130, and a save module 140.

所述轉換模組120用於依姓名排列順序擷取存儲在電話簿12中每一聯繫人的姓名,將姓名轉換成對應的中文拼音。其中若有以英文形式保存的姓名,則默認該英文為拼音。The conversion module 120 is configured to retrieve the name of each contact stored in the phone book 12 according to the name arrangement order, and convert the name into a corresponding Chinese pinyin. If there is a name saved in English, the English is Pinyin by default.

所述轉換模組120還用於給中文拼音的每個字母賦予對應的Unicode值,如給"cai"賦予對應的Unicode值為"63 61 69"。每個字母對應的Unicode值是唯一確定的,然後所述轉換模組120將每一聯繫人的姓名對應的Unicode值保存至一預先建立陣列中,所述陣列的表現形式可以呈現如圖3所方框32所示。所述陣列可以對存儲在其中的每一聯繫人的Unicode值按照每個Unicode值對應的字母的順序進行排序。The conversion module 120 is further configured to assign a corresponding Unicode value to each letter of the Chinese pinyin, for example, giving "cai" a corresponding Unicode value of "63 61 69". The Unicode value corresponding to each letter is uniquely determined, and then the conversion module 120 saves the Unicode value corresponding to the name of each contact to a pre-established array, and the representation of the array can be presented as shown in FIG. Block 32 is shown. The array may sort the Unicode values of each of the contacts stored therein in the order of the letters corresponding to each Unicode value.

所述查找模組130,用於接收用戶輸入的關鍵字,如一個聯繫人的姓的中文拼音"cai",利用該關鍵字對應的 Unicode值在所述陣列中進行二分法查找以得到查找結果。即查找到符合條件的Unicode值對應的聯繫人資訊。如圖3所示,是利用本發明進行聯繫人查找過程的示意圖。所述查找系統10依據用戶輸入的關鍵字逐一將查找物件進行二分以減小查找物件的數量。例如,方框30表示用戶輸入關鍵字"cai";方框31中將關鍵字"cai"賦予對應的Unicode值"63 61 69";方框32中利用Unicode值"63 61 69"在方框32中表示的陣列中進行二分法查找以得到如方框33中表示的折半的查找物件,在方框32中顯示所有聯繫的姓名對應的Unicode值;然後依次經過方框33、34的二分法將查找物件逐一減半進行篩選以最後得到符合查找條件的方框35中的資訊;最後方框36中顯示符合條件的Unicode值對應的聯繫人資訊。The search module 130 is configured to receive a keyword input by a user, such as a Chinese pinyin "cai" of a contact's last name, and use the keyword corresponding to the keyword The Unicode value is dichotomically searched in the array to get the lookup result. That is, the contact information corresponding to the Unicode value that meets the condition is found. As shown in FIG. 3, it is a schematic diagram of a contact search process using the present invention. The search system 10 divides the search object one by one according to the keyword input by the user to reduce the number of found objects. For example, block 30 indicates that the user entered the keyword "cai"; in block 31, the keyword "cai" is assigned the corresponding Unicode value "63 61 69"; in block 32, the Unicode value "63 61 69" is used in the box. A binary search is performed in the array represented in 32 to obtain a half-find lookup object as indicated in block 33, in which the Unicode values corresponding to all associated names are displayed; and then the dichotomy through blocks 33, 34 is followed. The search object is halved one by one for screening to finally obtain the information in the box 35 that matches the search condition; finally, the contact information corresponding to the Unicode value that meets the condition is displayed in the box 36.

本發明還可包括一個保存模組140,用於保存每一個聯繫人對應的Unicode值至所述陣列中。The present invention can also include a save module 140 for storing Unicode values corresponding to each contact to the array.

圖2係本發明聯繫人查找方法的流程圖。2 is a flow chart of a method for finding a contact of the present invention.

步驟S201,在電話簿12中編輯每一個聯繫人的姓名等資料並保存至電話簿12中,電話簿12按照每一聯繫人的姓名的中文拼音或英文的首個字母的順序進行聯繫人的排序。In step S201, the name and the like of each contact are edited in the phone book 12 and saved in the phone book 12, and the phone book 12 performs the contact in the order of the Chinese pinyin of each contact's name or the first letter of the English. Sort.

步驟S202,依姓名排列順序擷取每一聯繫人的姓名,並將每一聯繫人的姓名轉換成中文拼音。In step S202, each contact's name is retrieved according to the name arrangement order, and each contact's name is converted into Chinese pinyin.

步驟S203,給拼音中的每個字母賦予對應的Unicode值,並將所述Unicode值存儲至預先建立的陣列中。所述 陣列可以對存儲在其中的每一聯繫人的Unicode值按照每個Unicode值對應的字母的順序進行排序。In step S203, each letter in the pinyin is given a corresponding Unicode value, and the Unicode value is stored in a pre-established array. Said The array can sort the Unicode values of each of the contacts stored therein in the order of the letters corresponding to each Unicode value.

步驟S204,在電話簿12中輸入關鍵字,該關鍵字可能是某個聯繫人的姓的中文拼音,或姓名的中文拼音,或者是中文姓名。In step S204, a keyword is input in the phone book 12, and the keyword may be a Chinese pinyin of the last name of a contact, or a Chinese pinyin of the name, or a Chinese name.

步驟S205,將用戶輸入的關鍵字轉換成對應的Unicode值,並利用二分法進行查找到符合條件的Unicode值對應的聯繫人資訊。Step S205: Convert the keyword input by the user into a corresponding Unicode value, and use the dichotomy method to find the contact information corresponding to the Unicode value that meets the condition.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.

手機‧‧‧1Mobile phone ‧‧1

聯繫人查找系統‧‧‧10Contact Finding System ‧‧10

轉換模組‧‧‧120Conversion module ‧‧‧120

查找模組‧‧‧130Find module ‧‧‧130

保存模組‧‧‧140Save module ‧‧‧140

電話簿‧‧‧12Phone book ‧‧12

記憶體‧‧‧14Memory ‧‧14

圖1係本發明聯繫人查找系統的功能模組及應用環境圖。1 is a functional module and an application environment diagram of a contact search system of the present invention.

圖2係本發明聯繫人查找方法的工作流程圖。2 is a flow chart showing the operation of the contact finding method of the present invention.

圖3係利用本發明的聯繫人查找系統及方法進行聯繫人查找過程的示意圖。3 is a schematic diagram of a contact search process using the contact lookup system and method of the present invention.

手機‧‧‧1Mobile phone ‧‧1

聯繫人查找系統‧‧‧10Contact Finding System ‧‧10

轉換模組‧‧‧120Conversion module ‧‧‧120

查找模組‧‧‧130Find module ‧‧‧130

保存模組‧‧‧140Save module ‧‧‧140

電話簿‧‧‧12Phone book ‧‧12

記憶體‧‧‧14Memory ‧‧14

Claims (8)

一種聯繫人查找系統,應用於一個包括電話簿的手機中,所述系統包括:轉換模組,用於擷取所述電話簿中每一聯繫人的姓名,將該姓名轉換成中文拼音,給中文拼音中的每個字母賦予對應的Unicode值,並將每一聯繫人對應的Unicode值存儲到一個預先建立的陣列中;查找模組,用於接收用戶輸入的關鍵字,依據關鍵字對應的Unicode值利用二分法在所述陣列中進行查找,並獲取符合條件的Unicode值對應的聯繫人資訊。A contact search system is applied to a mobile phone including a phone book, the system comprising: a conversion module, configured to retrieve a name of each contact in the phone book, and convert the name into a Chinese pinyin, Each letter in Chinese Pinyin is assigned a corresponding Unicode value, and the Unicode value corresponding to each contact is stored in a pre-established array; the search module is configured to receive a keyword input by the user, according to the keyword corresponding The Unicode value is searched in the array using the dichotomy, and the contact information corresponding to the Unicode value that meets the condition is obtained. 如申請專利範圍第1項所述之聯繫人查找系統,所述陣列將存儲的每一聯繫人的Unicode值按照每個Unicode值對應的字母的順序進行排序。The contact lookup system of claim 1, wherein the array sorts the stored Unicode values of each contact in the order of the letters corresponding to each Unicode value. 如申請專利範圍第1項所述之聯繫人查找系統,其中每個字母對應一個唯一的Unicode值。A contact lookup system as described in claim 1 wherein each letter corresponds to a unique Unicode value. 如申請專利範圍第1項所述之聯繫人查找系統,其中用戶輸入的關鍵字是拼音或中文字。The contact search system described in claim 1, wherein the keyword input by the user is pinyin or Chinese characters. 一種聯繫人查找方法,運用於一個包括電話簿的手機中,所述方法包括:擷取所述電話簿中每一聯繫人的姓名,將該姓名轉換成中文拼音,並給每個字母賦予對應的Unicode值;將每一聯繫人對應的Unicode值存儲到一個預先建立的陣列;接收用戶輸入的關鍵字; 依據關鍵字對應的Unicode值利用二分法在所述陣列中進行查找並獲取符合條件的Unicode值對應的聯繫人資訊。A contact searching method for use in a mobile phone including a phone book, the method comprising: capturing a name of each contact in the phone book, converting the name into a Chinese pinyin, and assigning a correspondence to each letter Unicode value; store the Unicode value corresponding to each contact to a pre-established array; receive the keyword entered by the user; The dichotomy is used to search the array according to the Unicode value corresponding to the keyword and obtain the contact information corresponding to the Unicode value that meets the condition. 如申請專利範圍第5項所述之聯繫人查找方法,其中每個字母對應一個唯一的Unicode值。A contact finding method as described in claim 5, wherein each letter corresponds to a unique Unicode value. 如申請專利範圍第5項所述之聯繫人查找方法,其中用戶輸入的關鍵字是拼音或中文字。The contact finding method as described in claim 5, wherein the keyword input by the user is pinyin or Chinese characters. 如申請專利範圍第5項所述之聯繫人查找方法,所述陣列將存儲的每一聯繫人的Unicode值按照每個Unicode值對應的字母的順序進行排序。The contact lookup method of claim 5, wherein the array sorts the stored Unicode values of each contact in the order of the letters corresponding to each Unicode value.
TW97140024A 2008-10-17 2008-10-17 System and method for searching contacts TWI442754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97140024A TWI442754B (en) 2008-10-17 2008-10-17 System and method for searching contacts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97140024A TWI442754B (en) 2008-10-17 2008-10-17 System and method for searching contacts

Publications (2)

Publication Number Publication Date
TW201018183A TW201018183A (en) 2010-05-01
TWI442754B true TWI442754B (en) 2014-06-21

Family

ID=44831116

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97140024A TWI442754B (en) 2008-10-17 2008-10-17 System and method for searching contacts

Country Status (1)

Country Link
TW (1) TWI442754B (en)

Also Published As

Publication number Publication date
TW201018183A (en) 2010-05-01

Similar Documents

Publication Publication Date Title
JP6122800B2 (en) Electronic device, character string display method, and character string display program
CN101539836A (en) Human-machine interface interactive system and method
CN101876878A (en) Word prediction input system and method
TWI604318B (en) Method of data sorting
CN104219362A (en) Method and device for searching for contact person
CN101216748A (en) Input method and device
CN103647866B (en) A kind of telephone number compresses storage and decompression method and storage system
CN101727270A (en) Method for constructing soft keyboard, device for inputting character information and method thereof
US20070260638A1 (en) Commands for the handling of large files
CN101686274B (en) Contact name searching system and method
CN106484691B (en) data storage method and device of mobile terminal
KR101039447B1 (en) Recording medium for character recognition program, character recognition electronic components, character recognition device, character recognition method
TWI442754B (en) System and method for searching contacts
CN101014059A (en) Method for storing and extending data information of electric phone book
US20060282406A1 (en) Method and apparatus for searching data
CN106202423A (en) A kind of file ordering method and apparatus
CN102117159B (en) Hunan-machine interface interaction system and method
TW200947241A (en) Database indexing algorithm and method and system for database searching using the same
CN104902091B (en) A kind of address book ordering method and terminal
KR20070076807A (en) Information processing method and apparatus
CN113641731B (en) Fuzzy search optimization method, device, electronic equipment and readable storage medium
CN102821183A (en) Contact person search method and device and mobile terminal
CN1164137C (en) Mobile telephone hand set capable of displaying special font
KR20090102135A (en) Installtion for management of dictionary information in electric device and method thereof
CN100472538C (en) Method and system for locating file in mobile terminal FAT system

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees