CN1235386C - Efficient separating method of long distance call area number - Google Patents

Efficient separating method of long distance call area number Download PDF

Info

Publication number
CN1235386C
CN1235386C CN 03100584 CN03100584A CN1235386C CN 1235386 C CN1235386 C CN 1235386C CN 03100584 CN03100584 CN 03100584 CN 03100584 A CN03100584 A CN 03100584A CN 1235386 C CN1235386 C CN 1235386C
Authority
CN
China
Prior art keywords
area code
place
telephone area
toll telephone
toll
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03100584
Other languages
Chinese (zh)
Other versions
CN1437374A (en
Inventor
黄平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
INST OF SCIENCES & TECHNOLOGY GUANGDONG PROV TELECOMMUNICATION Co
Original Assignee
INST OF SCIENCES & TECHNOLOGY GUANGDONG PROV TELECOMMUNICATION Co
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 INST OF SCIENCES & TECHNOLOGY GUANGDONG PROV TELECOMMUNICATION Co filed Critical INST OF SCIENCES & TECHNOLOGY GUANGDONG PROV TELECOMMUNICATION Co
Priority to CN 03100584 priority Critical patent/CN1235386C/en
Publication of CN1437374A publication Critical patent/CN1437374A/en
Application granted granted Critical
Publication of CN1235386C publication Critical patent/CN1235386C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to an efficient separating method for long distance call area codes, which uses a bitmap image method to disconnect long distance call area codes in order to determine long call flux and flow directions. The method comprises the following two steps: A. setting a national and a foreign multidimensional bitmap mapping tables of long distance call area codes; B. determining mapping rules for separating long distance call area codes according to the national and the foreign bitmap mapping tables of area codes. The method uses the characteristics of long distance area codes to set a mapping table of long distance area codes, simple comparison is carried out for several times through the mapping table, the long distance area codes of a called number can be directly obtained, and the efficiency is high. Compared with a traditional method, the present invention reduces hundreds of times of comparison operation, and the present invention is also better than an improved binary matching method by several times; in addition, the handling time of the present invention is only relevant to the length of the maximal bit number of national and foreign long call area codes and is independent from the number of long distance area codes; accordingly, the method can be easily extended, and the operating reliability and stability is good. The present invention can be used for telecommunication long distance billing systems, and network managing or telephone service analyzing systems.

Description

A kind of method of efficient fractionation toll telephone area code
Technical field
The present invention relates to a kind of method of efficient fractionation toll telephone area code, exactly, relate to a kind of bitmap reflection method that uses, belong to the technical field of data processing in the telecommunication service the method that the toll telephone area code splits.
Background technology
At present, in order to carry out the flux and flow direction analysis of toll telephone, key is that called number is carried out trunk code to be split, after in case the area code of the callee in every toll message inventory splits out, just can carry out traffic classification and gather, thereby obtain the distribution of traffic of each flow direction according to each trunk code.In traditional area code method for splitting, at first to set up a toll telephone area code table, this table comprises all regions name, corresponding toll telephone area code, and other relevant informations.When called number being carried out area code when splitting,, each called number is all needed to inquire about whole toll telephone area code table, to find its corresponding area code because the figure place of each toll telephone area code differs from the customer call ticket.Some improved method is at first trunk code to be sorted, and adopts interval dichotomy to quicken matching process when coupling.But because the ticket quantity of telecommunications toll telephone is very huge, the number of comparisons that each fractionation needs is still many, and treatment effeciency is still not high.
Can find from traditional area code method for splitting, a large amount of processing times is to spend in to judge whether called number is on the legal trunk code, can consider if can set up a kind of mapping relations of trunk code, make as long as by relatively simple, just can judge fast from called number which combination is effective trunk code, which combination is not effective trunk code, can improve Business Processing efficient effectively undoubtedly.
The bitmap reflection method is a mutation of reflection method, and its output has only 0 and 1 two value.By the mapping of logical definition input value and output valve, can classify to input value fast.For example defining 1 is effective mapping, the 0th, and invalid mapping just can be distinguished the input value of effective mapping and invalid mapping easily.
Summary of the invention
The method that the purpose of this invention is to provide a kind of efficient fractionation toll telephone area code just provides a kind of method of utilizing the bitmap reflection method that the toll telephone area code is split.Use this method can improve data-handling efficiency greatly, can from the called number the customer call ticket, split out trunk code fast, for the analysis of toll telephone flux and flow direction and charging provide real time data.
The object of the present invention is achieved like this: a kind of method of efficient fractionation toll telephone area code is characterized in that: use the bitmap reflection method to split the toll telephone area code, to determine the toll telephone flow and the flow direction; Comprise the following steps:
A., make up domestic, external two multidimensional toll telephone area code bitmap mapping tables, and definite mapping ruler: this mapping table is a Multidimensional numerical, the one-bit digital of the corresponding toll telephone area code of each dimension order in this Multidimensional numerical, its dimension depends on the maximum of toll telephone area code figure place; For improving search efficiency, make up domestic, external two multidimensional toll telephone area code bitmap mapping tables, be respectively applied for and split National calls area code and international long-distance telephone area code; Elder generation's these two multidimensional toll telephone area code bitmap mapping tables of initialization, mapping ruler are that initialized mapping value all is changed to 0, represents invalid mapping for the array of specifying dimension; When handling the toll telephone area code, the mapping value of effective toll telephone area code is changed to 1; Make toll telephone area code figure place unanimity in each array, again the figure place combination that meets domestic or international long-distance telephone area code character string information feature is provided with a sign respectively, not having the figure place combination of sign is not legal area code just, like this as long as check whether the figure place combination that splits character string from called number is an effective marker, just can finish the fractionation of toll telephone area code sign indicating number;
B, according to domestic, external two area code bitmap mapping tables carry out the toll telephone area code and split: sort out called number earlier from the conversation inventory, use domestic or international two mapping tables respectively according to called number prefix 0 or 00 again, then according to the type of mapping table, the maximum and the minimum value of decision toll telephone area code figure place, set and need split out the corresponding cyclic variable k of toll telephone area code figure place, again from toll telephone area code figure place maximum, from the preceding k position of called number intercepting character, search the bitmap mapping table, and whether the mapping of judging this combination is effective, if effectively, then this character string is an area code of the callee, finish fractionation work, if invalid, then reduce the value of k successively, continue that k position character mates before the called number intercepting, after the value of k is less than toll telephone area code figure place minimum value, withdraw from circulation, split failure.
In the described steps A, before making up domestic, external two multidimensional toll telephone area code bitmap mapping tables, further comprise the following steps:
A1, be respectively National calls area code and international long-distance telephone area code mapping table and set up separately Multidimensional numerical, the one-bit digital of the corresponding toll telephone area code of each dimension order in these two Multidimensional numerical;
A2, according to the figure place of National calls area code between the 3-5 position, set up the Multidimensional numerical of National calls area code, be less than 5 National calls area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; Because the first place of National calls area code is 0, this dimension does not need to do mapping, so the dimension of National calls area code array is: National calls area code figure place maximum is 5-1=4 (dimension);
A3, according to the figure place of international long-distance telephone area code between the 4-8 position, set up the Multidimensional numerical of international long-distance telephone area code, be less than 8 international long-distance telephone area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; Because first two of the international long-distance telephone area code are 00, these two dimensions do not need to do mapping, so the dimension of international long-distance telephone area code array is: international long-distance telephone area code figure place maximum is 8-2=6 (dimension);
In the described steps A, when making up domestic, external two multidimensional toll telephone area code bitmap mapping tables, comprise following initialization operation step:
The National calls area code array of A4, one 4 dimension of initialization, its initial value all is changed to 0;
The international long-distance telephone area code array of A5, one 6 dimension of initialization, its initial value all is changed to 0;
A6, to read a form from toll telephone area code table be R 1R 2R 3... the area code of Rm, carry out analyzing and processing:, carry out steps A 7 operations if this area code front two is " 00 "; If this area code first place is " 0 ", inferior position is not " 0 ", carries out steps A 8 operations; Otherwise, withdraw from as unusual area code;
A7, as the international long-distance telephone area code, R 3... Rm converts numeral to, then assignment: A2[R 3] [R 4] ... [Rm] [0] ... [0]=1;
A8, as the National calls area code, R 2... Rm changes into numeral, then assignment: A1[R 2] [R 3] ... [Rm] [0] ... [0]=1;
Next area code is taken out in A9, continuation from toll telephone area code table, and returns step (6) circulation and carry out analyzing and processing; Until the whole area codes in the toll telephone area code table are disposed.
Described steps A is as long as initialization once before carrying out the area code fractionation.
Among the described step B, use domestic or international two mapping tables respectively according to called number prefix 0 or 00, then according to the type of mapping table, the maximum and the minimum value of decision toll telephone area code figure place, the operation of setting the cyclic variable k corresponding with splitting out toll telephone area code figure place further comprises the following steps:
If this called number first place of B1 is " 0 ", inferior position is not " 0 ", then belongs to the National calls area code, puts sign F=1, and the area code figure place is between 3~5; If this called number front two is " 00 ", then belong to the international long-distance telephone area code, put sign F=2, the area code figure place is between 4~8; If this called number is not above-mentioned two kinds of situations, then it is not legal long-distance called number, withdraws from unusually;
B2, the area code figure place that splits is done initialization, promptly set the cyclic variable k that need split out toll telephone area code figure place maximum, so that begin to split from its maximum for this mapping table area code figure place.
Among the described step B, from toll telephone area code figure place maximum, the bitmap mapping table searched in k position character before the called number intercepting, and the mapping of judging this combination whether effectively associative operation further comprise the following steps:
Whether B3, judgment variable k be greater than the minimum value of this mapping table; If, carry out subsequent step, otherwise withdraw from unusually, illustrate to split and get nowhere;
B4, take out from the called phone number before the k position, and to convert thereof into numerical value be C 1C 2... C k
If B5 is F=1, and A1[C 2] [C 3] ... [C k] ... [0]=1, C then 1C 2... C kFor legal National calls area code, split successfully, withdraw from;
If B6 is F=2, and A2[C 3] [C 4] ... [C k] ... [0]=1, C then 1C 2... C kFor legal international long-distance telephone area code, split successfully, withdraw from;
If the fractionation of two step B6 of B7 and B7 all gets nowhere, then the cyclic variable k to this toll telephone area code figure place correspondence that need split is: k=k-1, promptly reduce the area code figure place of coupling, that is to say, if preceding k position is not legal area code, whether the k-1 position is legal area code before just checking, changes step B3 again over to and proceeds deconsolidation process.
The needs of initializing set split out the cyclic variable k of toll telephone area code figure place correspondence among the described step B2, are 5 for National calls area code bitmap mapping table, are 8 for international long-distance telephone area code bitmap mapping table.
Take out the cyclic variable k that need split out long-distance call area code figure place from the called phone number among the described step B4, just need to mate the k in the preceding k position of area code figure place, for National calls area code bitmap mapping table is 5, is 8 for international long-distance telephone area code bitmap mapping table.
Characteristics of the present invention are to utilize the characteristic of toll telephone area code, set up toll telephone area code mapping table, simply compare several times by mapping table again, just can directly obtain the trunk code of called number, and efficient is very high.The processing method of this bitmap reflection method has reduced the compare operation of hundreds of times than conventional method, than also several times of improved two minutes matching methods.In addition, the processing time of this bitmap reflection method is only relevant with the maximum of domestic, external toll telephone area code figure place, and and the number of toll telephone area code irrelevant, make that this method is easy to expand, the reliability and stability of work is fine.Method of the present invention can be applied to the long-distance charge system of telecommunications, splits out the toll telephone area code and carries out billing operation, perhaps determines charging rate.Also can be applied to webmaster or traffic analysis system, analyze so that carry out flow and flow to.
Description of drawings
Fig. 1 is that the present invention sets up bitmap mapping table process chart.
Fig. 2 is that the present invention utilizes bitmap reflection method method for splitting flow chart.
Embodiment
The present invention is a kind of method of using the bitmap reflection method efficiently to split the toll telephone area code, to determine the toll telephone flow and the flow direction.This method mainly comprises two steps:
A., make up domestic, external two multidimensional toll telephone area code bitmap mapping tables and definite mapping ruler;
B, carry out the toll telephone area code according to domestic, external two multidimensional toll telephone area code bitmap mapping tables and split.
At first to the feature of toll telephone area code sign indicating number, just input value is analyzed and researched in the present invention.Find that all toll telephone area code sign indicating numbers all are made up of digital 0-9.Wherein the area code first place of National calls is 0, and inferior position is not 0; First two of the area code of international (containing the Hong Kong, Macao and Taiwan) toll telephone is 00.And though the figure place of each toll telephone area code is unfixing, its figure place is not oversize.National calls area code figure place is between 3~5, for example: Beijing is 010, and Cuona County, Yunnan is 08030.International long-distance telephone area code figure place is between 4~6, for example: Japan is 0081, and the section kos is 00619162.
The basic principle that the present invention uses the bitmap reflection method to split trunk zone item sign indicating number is: for each toll telephone area code, and character string informations of forming by several numerals all, shape such as R 1R 2R 3... Rm, in order to set up mapping relations, can represent this toll telephone area code with the m-dimensional space mode, the dimension combination that meets domestic or international long-distance telephone area code character string information feature is provided with a sign respectively, the dimension combination of not doing sign is not legal area code just.So only need to check whether the dimension combination that splits character string from called number is an effective marker, just can finish the fractionation of toll telephone area code sign indicating number.Consider that domestic area code is different with international area code length, in order to reduce the judgement number of times, the present invention makes up domestic, external two multidimensional toll telephone area code bitmap mapping tables are respectively applied for the fractionation of National calls area code and international long-distance telephone area code.Determine mapping ruler then, and carry out the fractionation of toll telephone area code according to domestic, external two multidimensional toll telephone area code bitmap mapping tables.
Before making up domestic, external two multidimensional area code bitmap mapping tables, at first carry out initialization operation: promptly be respectively National calls area code mapping table and international long-distance telephone area code mapping table foundation Multidimensional numerical A1 and A2 separately, the one-bit digital of the corresponding toll telephone area code of each dimension order in these two Multidimensional numerical.According to the figure place of National calls area code between the 3-5 position, set up the Multidimensional numerical of National calls area code, be less than 5 National calls area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; For example: Guangzhou toll telephone area code 020 is expressed as A1[2] [0] [0] [0]=1, Shenzhen toll telephone area code 0755 is expressed as A1[7] [5] [5] [0]=1.Because the first place of National calls area code is 0, this dimension does not need to do mapping, so the dimension m1 of National calls area code array is: National calls area code figure place maximum is 5-1=4 (dimension).Again according to the figure place of international long-distance telephone area code between the 4-8 position, set up the Multidimensional numerical of international long-distance telephone area code, be less than 8 international long-distance telephone area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; Because first two of the international long-distance telephone area code are 00, these two dimensions do not need to do mapping, so the dimension m2 of international long-distance telephone area code array is: international long-distance telephone area code figure place maximum is 8-2=6 (dimension);
Referring to Fig. 1, the concrete embodiment operating procedure that makes up domestic, external two multidimensional toll telephone area code bitmap mapping tables of introducing, these operating procedures only need carry out area code split before initialization once:
(1) the National calls area code array A1 of (m1-1)=4 dimension of initialization, its initial value all is changed to 0;
(2) the international long-distance telephone area code array A2 of (m2-2)=6 dimension of initialization, its initial value all is changed to 0;
(3) check whether whole area codes all dispose in the long-distance area code table? if not, then order is carried out step (4) operation, if then finish whole operations, end of run;
(4) reading a form from toll telephone area code table is R 1R 2R 3... the area code of Rm, carry out analyzing and processing;
(5) judge the front two R of this area code 1R 2Whether is all " 0 "? if carry out step (7) operation; Otherwise carry out step (6) operation;
(6) judge the front two R of this area code 1R 2Whether satisfy simultaneously: R 1Be " 0 " and R 2Be not " 0 "? if carry out step (8) operation; Otherwise carry out step (9) operation;
(7) be defined as the international long-distance telephone area code, R 3... Rm converts numeral to, and value of statistical indicant: A2[R is set simultaneously 3] [R 4] ... [Rm] [0] ... [0]=1, and return step (3);
(8) be defined as the National calls area code, R 2... Rm changes into numeral, and value of statistical indicant: A1[R is set simultaneously 2] [R 3] ... [Rm] [0] ... [0]=1, and return step (3);
(9) handle as unusual area code.
Referring to Fig. 2, the mapping ruler of setting according to the present invention below, promptly for the array of specifying dimension, initialized mapping value all is changed to 0, represents invalid mapping; When handling the toll telephone area code, the mapping value of effective toll telephone area code is changed to 1, describe domestic, external two multidimensional toll telephone area code bitmap mapping tables are carried out the embodiment operating procedure that the toll telephone area code splits:
Is (11) judging whether ticket is all handled over? if not, then order is carried out step (12) operation, if then finish whole operations, end of run;
(12) from the conversation inventory, sort out called number C 1C 2... C m
(13) judge first two C of this called number 1C 2Whether is all " 0 "? if carry out step (14) operation; Otherwise carry out step (15) operation;
(14) be defined as the international long-distance telephone area code, the maximum V1=m2=8 of its toll telephone area code figure place, minimum value V2=n2=4 is provided with sign F=2 (international long-distance telephone area code);
(15) judge the first C of this called number 1C 2Whether satisfy simultaneously: C 1Be " 0 " and C 2Be not " 0 "? if carry out step (16) operation; Otherwise carry out step (17) operation;
(16) be defined as the National calls area code, the maximum V1=m1=5 of its toll telephone area code figure place, minimum value V2=n1=3 is provided with sign F=1 (National calls area code);
(17) handle as unusual called number, withdraw from unusually;
The trunk code of (18) initialization called phone number, promptly setting the cyclic variable k that need split out toll telephone area code figure place is the maximum V1 of this mapping table area code figure place, and begins to split from its maximum;
(19) judge that whether the trunk code figure place k of the called phone number that this need split is less than this mapping table area code figure place minimum value; If not, order execution in step (20) operation, otherwise, carry out step (21) operation;
(20) judge that this trunk code is National calls area code (being F=1), whether the mapping table of toll telephone area code at home can find legal mapping: A1[C 2] [C 3] ... [C k] ... [0]=1? if, splitting successfully, its National calls area code is: C 1C 2... C k, if not, execution in step (22) operation;
(21) illustrate that trunk code splits failure, abnormality processing withdraws from;
(22) judge whether this trunk code is international long-distance telephone area code (being F=2), can find legal mapping: A2[C at international long-distance telephone area code mapping table 3] [C 4] ... [C k] ... [0]=1? if, splitting successfully, its international long-distance telephone area code is: C 1C 2... C k, if not, execution in step (23) operation;
(23) reduce the area code figure place that will mate, the cyclic variable k that is about to the trunk code figure place of called phone number is set to: k=k-1.Change step (19) again over to and proceed deconsolidation process; That is to say,, change over to again and check whether preceding (k-1) position is legal area code if preceding k position is not legal area code.

Claims (8)

1, a kind of method of efficient fractionation toll telephone area code, it is characterized in that: the characteristic of the character string of forming by a plurality of Arabic numerals according to the toll telephone area code, set up the toll telephone area code mapping table of Multidimensional numerical version, re-using the bitmap reflection method simply compares several times to split the character string of coming out from called number, just can finish the fractionation of toll telephone area code, to determine the toll telephone flow and the flow direction; Comprise following concrete operations step:
A, domestic, external two the multidimensional toll telephone area code bitmap mapping tables of structure, and definite mapping ruler: this mapping table is a Multidimensional numerical, the one-bit digital of the corresponding toll telephone area code of each dimension order in this Multidimensional numerical, its dimension depends on the maximum of toll telephone area code figure place; For improving search efficiency, make up domestic, external two multidimensional toll telephone area code bitmap mapping tables, be respectively applied for and split National calls area code and international long-distance telephone area code; Elder generation's these two multidimensional toll telephone area code bitmap mapping tables of initialization, mapping ruler are that initialized mapping value all is changed to 0, represents invalid mapping for the array of specifying dimension; When handling the toll telephone area code, the mapping value of effective toll telephone area code is changed to 1;
B, according to domestic, external two multidimensional toll telephone area code bitmap mapping tables carry out the toll telephone area code and split: sort out called number earlier from the conversation inventory, use domestic or international two mapping tables respectively according to called number prefix 0 or 00 again, then according to the type of mapping table, the maximum and the minimum value of decision toll telephone area code figure place, set and need split out the corresponding cyclic variable k of toll telephone area code figure place, again from toll telephone area code figure place maximum, from the preceding k position of called number intercepting character, search the bitmap mapping table, and whether the mapping of judging this combination is effective, if effectively, then this character string is an area code of the callee, finish fractionation work, if invalid, then reduce the value of k successively, continue that k position character mates before the called number intercepting, after the value of k is less than toll telephone area code figure place minimum value, withdraw from circulation, split failure.
2, the method for efficient fractionation toll telephone area code according to claim 1 is characterized in that: in the described steps A, further comprised the following steps: before making up domestic, external two multidimensional toll telephone area code bitmap mapping tables
A1, be respectively National calls area code mapping table and international long-distance telephone area code mapping table and set up separately Multidimensional numerical, the one-bit digital of the corresponding toll telephone area code of each dimension order in these two Multidimensional numerical;
A2, according to the figure place of National calls area code between the 3-5 position, set up the Multidimensional numerical of National calls area code, be less than 5 National calls area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; Because the first place of National calls area code is 0, this dimension does not need to do mapping, so the dimension of National calls area code array is: National calls area code figure place maximum is 5-1=4 (dimension);
A3, according to the figure place of international long-distance telephone area code between the 4-8 position, set up the Multidimensional numerical of international long-distance telephone area code, be less than 8 international long-distance telephone area code for its figure place, make all toll telephone area code figure place unanimities in this array by 0 the mode of replenishing in its back; Because first two of the international long-distance telephone area code are 00, these two dimensions do not need to do mapping, so the dimension of international long-distance telephone area code array is: international long-distance telephone area code figure place maximum is 8-2=6 (dimension).
3, the method for efficient fractionation toll telephone area code according to claim 1 and 2 is characterized in that: in the described steps A, comprise following initialization operation step when making up domestic, external two multidimensional toll telephone area code bitmap mapping tables:
The National calls area code array of A4, one 4 dimension of initialization, its initial value all is changed to 0;
The international long-distance telephone area code array of A5, one 6 dimension of initialization, its initial value all is changed to 0;
A6, to read a form from toll telephone area code table be R 1R 2R 3... the area code of Rm, carry out analyzing and processing:, carry out steps A 7 operations if this area code front two is " 00 "; If this area code first place is " 0 ", inferior position is not " 0 ", carries out steps A 8 operations; Otherwise, withdraw from as unusual area code;
A7, as the international long-distance telephone area code, R 3... Rm converts numeral to, then assignment: A2[R 3] [R 4] ... [Rm] [0] ... [0]=1;
A8, as the National calls area code, R 2... Rm changes into numeral, then assignment A1[R 2] [R 3] ... [Rm] [0] ... [0]=1;
Next area code is taken out in A9, continuation from toll telephone area code table, and returns steps A 6 circulations and carry out analyzing and processing; Until the whole area codes in the toll telephone area code table are disposed.
4, the method for efficient fractionation toll telephone area code according to claim 1 is characterized in that: described steps A is as long as initialization once before carrying out the area code fractionation.
5, the method for efficient fractionation toll telephone area code according to claim 1, it is characterized in that: among the described step B, use domestic or international two mapping tables respectively according to called number prefix 0 or 00, then according to the type of mapping table, the maximum and the minimum value of decision toll telephone area code figure place, the operation of setting the cyclic variable k corresponding with splitting out toll telephone area code figure place further comprises the following steps:
If this called number first place of B1 is " 0 ", inferior position is not " 0 ", then belongs to the National calls area code, puts sign F=1, and the area code figure place is between 3~5; If this called number front two is " 00 ", then belong to the international long-distance telephone area code, put sign F=2, the area code figure place is between 4~8; If this called number is not above-mentioned two kinds of situations, then it is not legal long-distance called number, withdraws from unusually;
B2, the area code figure place that splits is done initialization, promptly set the cyclic variable k that need split out toll telephone area code figure place maximum, so that begin to split from its maximum for this mapping table area code figure place.
6, the method for efficient fractionation toll telephone area code according to claim 1, it is characterized in that: among the described step B, from toll telephone area code figure place maximum, from the preceding k position of called number intercepting character, search the bitmap mapping table, and the mapping of judging this combination whether effectively associative operation further comprise the following steps:
Whether B3, judgment variable k be greater than the minimum value of this mapping table area code figure place; If, carry out subsequent step, otherwise withdraw from unusually, illustrate to split and get nowhere;
B4, take out from the called phone number before the k position, and to convert thereof into numerical value be C 1C 2... C k
If B5 is F=1, and A1[C 2] [C 3] ... [C k] ... [0]=1, C then 1C 2... C kFor legal National calls area code, split successfully, withdraw from;
If B6 is F=2, and A2[C 3] [C 4] ... [C k] ... [0]=1, C then 1C 2... C kFor legal international long-distance telephone area code, split successfully, withdraw from;
If the fractionation of two step B5 of B7 and B6 all gets nowhere, then the setting cyclic variable k corresponding with splitting out toll telephone area code figure place is: k=k-1; Promptly reduce the area code figure place of coupling, that is to say, if preceding k position is not legal area code, whether the k-1 position is legal area code before just checking, changes step B3 again over to and proceeds deconsolidation process.
7, the method for efficient fractionation toll telephone area code according to claim 5, it is characterized in that: the cyclic variable k that initializing set is corresponding with splitting out toll telephone area code figure place among the described step B2 is 5 for National calls area code bitmap mapping table, is 8 for international long-distance telephone area code bitmap mapping table.
8, the method for efficient fractionation toll telephone area code according to claim 6, it is characterized in that: take out the cyclic variable k that need split out long-distance call area code figure place from the called phone number among the described step B4, just need to mate the k in the preceding k position of area code figure place, for National calls area code bitmap mapping table is 5, is 8 for international long-distance telephone area code bitmap mapping table.
CN 03100584 2003-01-20 2003-01-20 Efficient separating method of long distance call area number Expired - Fee Related CN1235386C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03100584 CN1235386C (en) 2003-01-20 2003-01-20 Efficient separating method of long distance call area number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03100584 CN1235386C (en) 2003-01-20 2003-01-20 Efficient separating method of long distance call area number

Publications (2)

Publication Number Publication Date
CN1437374A CN1437374A (en) 2003-08-20
CN1235386C true CN1235386C (en) 2006-01-04

Family

ID=27633991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03100584 Expired - Fee Related CN1235386C (en) 2003-01-20 2003-01-20 Efficient separating method of long distance call area number

Country Status (1)

Country Link
CN (1) CN1235386C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388804C (en) * 2003-11-14 2008-05-14 中兴通讯股份有限公司 Method of digit-figure number matching
CN101202785B (en) * 2006-12-14 2012-05-30 英业达股份有限公司 Method and system for searching electronic telephone directory incoming call telephone number
CN104936210B (en) * 2015-04-20 2018-04-10 中国联合网络通信集团有限公司 A kind of method and device for determining number state

Also Published As

Publication number Publication date
CN1437374A (en) 2003-08-20

Similar Documents

Publication Publication Date Title
CN101350869B (en) Method and apparatus for removing repeat of telecom charging based on index and hash
CN1920831A (en) Method and system for managing object information on network
CN101043421A (en) Memory based method for searching quickly the longest matching of IP address
CN1786962A (en) Method for managing and searching dictionary with perfect even numbers group TRIE Tree
CN101046811A (en) Data integral service system and method
CN1928850A (en) Method and apparatus for compressing data based on digital dictionary picture-representing data
CN106570166B (en) Video retrieval method and device based on multiple locality sensitive hash tables
CN1334534A (en) Method for searching multimedia using progressive histogram
CN1665314A (en) Method for prior triggering of multi-service for mobile intelligent network
CN1235386C (en) Efficient separating method of long distance call area number
CN1897560A (en) Method for improving routing list capacity
CN102129440A (en) Method and system for directional push of information
CN101055593A (en) Tibetan web page and its code identification method
CN1265558C (en) A schematic diagram inspection method for hardware design
CN101060337A (en) An optimized Huffman decoding method and device
CN1968358A (en) Time constraint-based automatic video summary generation method in frequent camera mode
US20240054110A1 (en) Method, apparatus and electronic device for creating quantum vehicle model parts basic database, and storage medium
CN1243431C (en) Analysis of universal route platform command lines
CN107122412A (en) A kind of magnanimity telephone number Rapid matching search method
CN1848737A (en) Charging method
CN1492359A (en) Automatic state machine searching and matching method of multiple key words
CN111143651A (en) New media integration operation data acquisition analysis system for management
CN1967528A (en) Data matching inquiry method based on key words
CN1878123A (en) Bit-map aggregated recursive stream sorting method and its system
CN101059758A (en) Screen transition program generating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060104

Termination date: 20150120

EXPY Termination of patent right or utility model