CN102541873B - Code sorting method and system - Google Patents

Code sorting method and system Download PDF

Info

Publication number
CN102541873B
CN102541873B CN 201010591490 CN201010591490A CN102541873B CN 102541873 B CN102541873 B CN 102541873B CN 201010591490 CN201010591490 CN 201010591490 CN 201010591490 A CN201010591490 A CN 201010591490A CN 102541873 B CN102541873 B CN 102541873B
Authority
CN
China
Prior art keywords
original
storehouse
original encoding
encoding
fractionation
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.)
Active
Application number
CN 201010591490
Other languages
Chinese (zh)
Other versions
CN102541873A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN 201010591490 priority Critical patent/CN102541873B/en
Publication of CN102541873A publication Critical patent/CN102541873A/en
Application granted granted Critical
Publication of CN102541873B publication Critical patent/CN102541873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a code sorting method and system. The code sorting method comprises the following steps of: splitting original codes according to the types of numeric characters and non-numeric characters, and acquiring a corresponding splitting format; building a splitting scheme library according to the splitting format; traversing all the original codes, and storing the original codes which are in the splitting format in the splitting scheme library, splitting the original codes which are not in the splitting format, and establishing a new corresponding splitting scheme library; establishing an original library in the splitting scheme library based on different splitting formats and mathematical effectiveness; traversing the original codes, and storing the original codes which are in the splitting format and have mathematical effectiveness in the original library; carrying out zero filling on the original codes in the original library, and sorting the original codes subjected to zero filling and sending the original codes to a corresponding sorting library to be stored; and returning the original codes subjected to sorting until sorting on the original library is completed. Codes are split and the splitting scheme library is built by adopting the code sorting method disclosed by the invention, mixed codes can be sorted according to digital effectiveness, and flexibility and interactivity of coding and sorting are improved.

Description

A kind of sort method of coding and system
Technical field
The present invention relates to database field, in particular, relate to a kind of sort method and system of coding.
Background technology
In daily life and activity in production, often need to be numbered article, to generate the coding of labeled, such as material code commonly used.And the process that article are encoded also affects the processing afterwards of these article simultaneously, except often need to coding being sorted, also will carry out other function treatment after sorting in the service application scenes such as fractionation, total or form.
Coding of the prior art adopts computing machine automatically to generate more, and the numeral in hybrid coding (being made of numeral and other characters) usually can adopt the mode that increases progressively (successively decreasing) to be embedded in the coding.When prior art sorts to the pure digi-tal coding, can sort according to Digital size, for example: 100,101,200 successively orderings; When hybrid coding is sorted, sort according to the numeric type character, but, only can process the numeric type character this moment as single " char ", thereby numeral is lost as the relatively big or small original mathematical effectiveness of independent data, thereby in ordering, produce some chaotic orderings, for example p4, p3, p2, p14, the such confusion ordering of p13, p12 can occur according to the character descent ordering.
For avoiding occurring the problems referred to above, in the process that generates hybrid coding, before numeral, mend some " 0 " in the prior art, still, but limited the digit of coding by the such processing of prior art, can not surpass initialized numerical coding figure place.And, when having a large amount of codings to exist, can not carry out craft for the coding zero padding or adjust ordering.Thereby dirigibility and the interactivity of coding and sorting order have been reduced.
Summary of the invention
In view of this, the invention provides a kind of method and system of coding and sorting order, when to overcome prior art hybrid coding being sorted, owing to adopting the numeric type character is sorted and reduces the dirigibility of coding and sorting order and the problem of interactivity as carrying out zero padding after the single character processing again, causing confusion.
For achieving the above object, the invention provides following technical scheme:
A kind of sort method of coding comprises:
According to numerical character and nonnumeric character type the original encoding that obtains is split, obtain the fractionation form of original encoding;
Set up the fractionation scheme base according to described fractionation form;
Travel through other original encodings and split;
Obtain and meet the original encoding that splits form and be stored in the corresponding fractionation scheme base;
Obtain the fractionation form that does not meet the original encoding that splits form, return to carry out according to described fractionation form and set up this step of fractionation scheme base;
According to mathematical effectiveness and above-mentioned different fractionation form, in fractionation scheme base corresponding to described fractionation form, set up different original storehouses;
Again travel through original encoding, the original encoding that will meet mathematical effectiveness and above-mentioned fractionation form is stored in corresponding original storehouse;
Set up described original storehouse and the corresponding relation of ordering between the storehouse, to the original encoding zero padding in each described original storehouse, and the described original encoding after the zero padding is sent to corresponding ordering storehouse sorts;
Return the described original encoding after the zero padding of ordering, make the described original encoding after the original encoding that is stored in the original storehouse is replaced corresponding zero padding, finish the ordering to original encoding.
Preferably, the described process that the original encoding that obtains is split is: split preferential mode with polymerization described original encoding is decomposed into N fragment, comprise 1 to n numerical character or 1 to n nonnumeric character in described each fragment.
Preferably, described original encoding is decomposed into N fragment, and described N is positive integer.
Preferably, described original encoding is split, obtain corresponding numerical character fragment and nonnumeric character fragment, wherein, described numerical character fragment adopts 1 expression, and described nonnumeric character fragment adopts 0 expression.
Preferably, described original encoding is split obtained corresponding numerical character fragment and nonnumeric character fragment, and wherein, described numerical character fragment adopts 0 expression, and described nonnumeric character fragment adopts 1 expression.
Preferably, the fractionation form of the described original encoding that obtains represents with 1 or 0.
Preferably, described mathematical effectiveness be front and back described numerical character according to independent numeral compare the size characteristic.
Preferably, described process to the original encoding zero padding in each described original storehouse is:
Choose and have the longest figure place and numerical character fragment corresponding to maximum number in the described original storehouse;
Other original encoding numerical character fragment leading zeros in described original storehouse make the numerical character fragment figure place in the described original storehouse consistent.
A kind of ordering system of coding comprises:
The original encoding storehouse is used for obtaining detachable original encoding, and according to numerical character and nonnumeric character type described original encoding is split, and obtains the fractionation form of original encoding;
The fractionation scheme base comprises: original storehouse, and the zero padding thesaurus corresponding with described original storehouse;
Described original storehouse is used for preserving described original encoding according to described fractionation form and mathematical effectiveness, and utilizes the described original coding of preserving to replace the corresponding original encoding that receives the zero padding after the ordering of ordering storehouse;
Described zero padding thesaurus is used for described original encoding zero padding and transmission to the described original storehouse of correspondence;
The ordering storehouse, for the original encoding after the zero padding that receives corresponding zero padding thesaurus, the line ordering of going forward side by side feeds back to described original storehouse with the described original encoding after the ordering trailing zero.
Preferably, comprise in the described zero padding thesaurus:
Choose the unit, be used for choosing described original storehouse and have the longest figure place and numerical character fragment corresponding to maximum number;
The zero padding unit is used for other original encoding numerical character fragment leading zeros of described original storehouse;
Transmitting element is used for the described original encoding after the zero padding is sent to described ordering storehouse.
Via above-mentioned technical scheme as can be known, compared with prior art, the invention discloses a kind of method and system of coding and sorting order, by carrying out the fractionation of original encoding according to numerical character and nonnumeric character type, obtain corresponding fractionation form, and set up fractionation scheme base corresponding to fragment according to splitting form; Then, the mathematical effectiveness of the numerical character in splitting form and encode according to the difference between original encoding is again set up original storehouse, travels through all original encodings, and qualified original encoding is stored in corresponding original storehouse; Then, the original encoding in the original storehouse is carried out zero padding, and will be sent to corresponding ordering library storage after the ordering of the original encoding after the zero padding; At last, return the original encoding after the ordering, and through the replacement of the original encoding preserved in the original storehouse, when recovering the original encoding value, finish ordering.Set up the fractionation scheme base by method disassembled coding of the present invention, hybrid coding can be sorted by numerical significance, not only avoid the phenomenon of ordering that causes confusion, but also improved dirigibility and the interactivity of coding and sorting order.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is embodiments of the invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to the accompanying drawing that provides other accompanying drawing.
Fig. 1 is the sort method process flow diagram of the disclosed a kind of coding of the embodiment of the invention;
Fig. 2 is the structural representation of the original encoding after the disclosed fractionation of the embodiment of the invention;
Fig. 3 is the disclosed process flow diagram to the original encoding zero padding of the embodiment of the invention;
Fig. 4 is the ordering sequential chart of the disclosed a kind of coding of the embodiment of the invention;
Fig. 5 is the structural representation of the ordering system of the disclosed a kind of coding of the embodiment of the invention;
Fig. 6 is the structural representation of the ordering system of the disclosed another kind of coding of the embodiment of the invention;
Fig. 7 is schematic diagram corresponding to the disclosed fractionation scheme base of the embodiment of the invention.
Embodiment
For quote and know for the purpose of, the explanation of the technical term that hereinafter uses, write a Chinese character in simplified form or abridge and be summarized as follows:
Hybrid coding: comprise numeral and other characters (comprising Chinese) in the coding, for example, KINGDEE2010LE is hybrid coding;
Mathematical effectiveness: numeral was come relatively size with mathematical characteristic before and after whether the numerical character that occurs in the coding united, and namely index word character can be used as the relatively characteristic of size of independent numeral;
Split scheme base: the character types of each fragment after definition coding fractionation form and the fractionation.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
When in the prior art hybrid coding being sorted, owing to adopting the numeric type character as carrying out again zero padding after the single character processing, make the character of numeric type lose mathematical effectiveness, thereby cause confusion ordering, and reduce the dirigibility of coding and sorting order and the problem of interactivity in the subsequent treatment.Therefore, the invention discloses a kind of sort method and system of coding, by disassembled coding, set up fragment split scheme base, enable mathematical effectiveness, to the coding zero padding, and hybrid coding is sorted by numerical significance, and after ordering, recover original encoding and finish ordering, not only the ordering that causes confusion be can avoid, but also dirigibility and the interactivity of coding and sorting order improved.Be elaborated for example below the detailed process.
See also accompanying drawing 1, the process flow diagram for the sort method of the disclosed a kind of coding of the embodiment of the invention mainly may further comprise the steps:
Step S101 obtains detachable original encoding.
Step S102 splits the original encoding that gets access to according to numerical character and nonnumeric character type, obtains the fractionation form of described original encoding.
In step S102, the described process that the original encoding that obtains is split is: original encoding is split namely resolve into N fragment, wherein, N is positive integer (N>0).In N after the decomposition fragment, each fragment includes 1~n numerical character or 1~n nonnumeric character, and namely each fragment is non-hybrid coding, wherein, and n>1.Concrete structure sees also accompanying drawing 2, and wherein, D represents that fragment, T presentation code head, W presentation code tail, NS represent nonnumeric character, YS representative digit character.
Need to prove, the process that above-mentioned fractionation is namely decomposed splits preferential with polymerization, by such mode, can make by the fragment that generates after the rule fractionation end minimum.For example, A#35kingdee2010LE can be decomposed into A#, 35, kingdee, 2010 and LE, 5 fragments; KINGDEE2010LE12A can be decomposed into KINGDEE, 2010, LE, 12 and A, 5 fragments, and each fragment is non-hybrid coding.
Can obtain 1 corresponding~n digital character fragments after decomposing original encoding above-mentioned, and 1~n nonnumeric character fragment, wherein, utilize 1 representative digit character fragments, 0 represents the nonnumeric character fragment, the fractionation form that then gets access to then forms by 1 and 0.For example the fractionation form of the A#35kingdee2010LE after the above-mentioned decomposition is: 01010; The fractionation form of KINGDEE2010LE12A is: 01010; The fractionation form that then represents above-mentioned two original encodings is identical; The fractionation form of corresponding KINGDEE2010LE is: 010 then has different fractionation forms from above-mentioned.Same, can also utilize in the present invention 0 representative digit character fragments, 1 expression nonnumeric character fragment, concrete expression mode is to above-mentioned similar, and for example the fractionation form of the A#35kingdee2010LE of this moment is 10101.
Step S103 sets up the fractionation scheme base according to described fractionation form.
The fractionation form of the original encoding that gets access to by step S102 utilizes this fractionation form to set up corresponding fractionation storehouse at execution in step S103.
Step S104 travels through each class libraries of all original encodings and storage original encoding, namely travels through other detachable original encodings and splits according to above-mentioned method for splitting.
Step S105, whether the original encoding after judge splitting meets the fractionation form among the step S102, if so, execution in step S106 then; If not, execution in step S107 then.
Step S106, the original encoding that will meet described fractionation form are stored in the described fractionation scheme base of setting up among the step S103.
Step S107 obtains the fractionation form that does not meet the original encoding that splits form, returns execution in step S103, rebulids fractionation scheme base corresponding to this fractionation form.
When execution in step S104, original encoding to traversal splits one by one, obtain the fractionation form of each original encoding, then execution in step S105, the fractionation form of judging each original encoding whether with step S102 in the fractionation form that obtains at first whether identical, if so, execution in step S106 then, the original encoding that will have identical fractionation form is stored in the corresponding fractionation scheme base; If not, execution in step S107 then obtains the fractionation form of the original encoding that does not meet above-mentioned fractionation form, returns execution in step S103, again create the fractionation scheme base of a correspondence according to the new fractionation form that gets access among the step S107, namely newly-increased one splits scheme base.
Behind execution in step S107 as can be known, the fractionation form of this moment has two, and all created each self-corresponding fractionation scheme base, and then travel through other original encodings during execution in step S104, and after fractionation, judge, this moment is the judgement during execution in step S105 again, then be to judge according to existing fractionation form, qualified original encoding is stored in corresponding its splits in the fractionation scheme base of form, if still have new fractionation form to occur, then increase again the fractionation scheme base of its correspondence newly, and travel through again the original encoding that other did not split, successively circulation until traversal finishes, is kept at fractionation scheme corresponding to its fractionation form with all original encodings and sees.
Need to prove, after traversal finished, the mathematical effectiveness of namely finishing the digital fragment in all storehouses after the initialization all was set to engineering noise, so that when processing next time, and traversal again.
Step S108 according to mathematical effectiveness and above-mentioned different fractionation form, sets up different original storehouses in fractionation scheme base corresponding to described fractionation form.
In step S108, enable the mathematical effectiveness of digital fragment, the mathematical effectiveness that what is called is enabled digital fragment namely is the digital fragment of specifying in the fractionation scheme, this fragment sorts according to Digital size.Because, may there be multiple fractionation form, namely there are a plurality of its each self-corresponding fractionation scheme base, then split scheme base execution in step S108 for each, split in fractionation scheme base corresponding to form at each and set up original storehouse.
Step S109 travels through all original encodings and all storehouses again, will meet mathematical effectiveness and above-mentioned fractionation form original encoding be stored in the corresponding original storehouse.
When execution in step S109, again travel through all original encodings and all storehouses, the original encoding that will have same fractionation form is arranged according to the mathematical effectiveness of its inner numerical character fragment, namely compares rear according to arranging preservation from little mode to large (from large to little).For example, have the original encoding of identical fractionation form: EX1213SP, EX10-SP and EX255SP, being arranged as in original storehouse: EX10-SP, EX255SP, EX1213SP behind the execution in step S109; Original encoding with identical fractionation form: p4, p3, p2, p14, p13 and p12, being arranged as in original storehouse: p2, p3, p4, p12 behind the execution in step S109, the problem of hybrid-sorting of the prior art can not appear in p13, p14.
Need to prove, when execution in step S108 and step S109, according to selecting the fractionation scheme, namely split form and again travel through coding with the fragment of enabling mathematical effectiveness, and when coupling is encoded at this moment, the principle that need to not split according to polymerization, but all qualified codings are put in the new storehouse, namely in the original storehouse.This process of setting up original storehouse is necessary, because, qualified coding may be put in other storehouses before the fractionation scheme that produces user's appointment, and traversal can prevent qualified coding omission again, guarantees that all qualified codings are stored in the original storehouse.In addition, if still have the residue original encoding, illustrate to also have other codings that splits Format Type, can repeat the above-mentioned process that splits scheme base that rebulids.
Step S110 sets up above-mentioned original storehouse and the corresponding relation of ordering between the storehouse, to the original encoding zero padding in each described original storehouse, and the described original encoding after the zero padding is sent in the corresponding ordering storehouse sorts.
When execution in step S110, to set up original storehouse and the corresponding relation of ordering between the storehouse, and then the original encoding in the original storehouse is carried out zero padding, the process of this zero padding is finished automatically, and then the original encoding after the zero padding is sent in the ordering storehouse sorts.
Need to prove, see also accompanying drawing 3, when execution in step S110, the process of the original encoding in each described original storehouse being carried out zero padding is:
Step S1101 chooses and has the longest figure place and numerical character fragment corresponding to maximum number in the described original storehouse.
Step S1102 is other original encoding numerical character fragment leading zeros in described original storehouse, make the numerical character fragment figure place in the described original storehouse consistent.
When carrying out zero padding only for the original encoding in the original storehouse, at first, execution in step S1101, travel through the original encoding in the original storehouse, in enabling the numerical character fragment of mathematical effectiveness, choose maximum number, and figure place that should the numeral correspondence is maximum length MAXLEN; Then, execution in step S1102 again, travel through the coding in the original storehouse and do the zero padding processing, the operation of concrete zero padding is: the inadequate MAXLEN of length that judges the numerical character fragment of enabling mathematical effectiveness, then in this numerical character fragment leading zero, make the figure place of fragment corresponding to each numerical character be MAXLEN, even the numerical character fragment figure place in the described original storehouse is consistent.
At last, execution in step S1103 is sent to the coding that newly forms in the ordering storehouse again.Original encoding after the soon zero padding is put into ordering storehouse corresponding to original storehouse; At this moment, in this original storehouse, also record simultaneously the original encoding of not zero padding.
Step S111, according to the corresponding relation between original storehouse and the ordering storehouse, the original encoding that will carry out sorting after the zero padding processing is back in the corresponding original storehouse, makes the described original encoding after the original encoding that is stored in the original storehouse is replaced the zero padding of correspondence, finishes the ordering to original encoding.
When execution in step S111, to in the ordering storehouse, resequence through the original encoding that zero padding is processed, namely according to the corresponding relation of original storehouse with the ordering storehouse, original encoding after the zero padding is sorted by the original encoding of the mathematical effectiveness of enabling after to all zero paddings in the ordering storehouse, the sequencer procedure of this moment also can embody the above-mentioned purpose of hybrid coding being done zero padding, even the figure place of the numerical character sheet degree in the original encoding is consistent, more is conducive to enable mathematical effectiveness and sorts.
After ordering finishes, again according to the corresponding relation of original storehouse with the ordering storehouse, the original encoding of the zero padding after the ordering returned be sent in the original storehouse, at this moment, utilize in the original storehouse the not source code of zero padding, replace the original encoding after the corresponding sorted zero padding, namely recover the original coding value.Thereby finish the ordering to original encoding.
The sequential chart of above-mentioned execution in step S101 to S111 sees also accompanying drawing 4, the ordering sequential chart of a kind of coding that provides for the embodiment of the invention.Wherein, 101 among the figure to 111 corresponding step S101 to step S111.
Carry out the disclosed said method of the embodiment of the invention, by splitting original encoding, obtain the fractionation form of the original encoding after the fractionation, then split form according to this and set up corresponding fractionation scheme base, travel through all original encodings, the original encoding that will have similar fractionation form is stored in and splits in the scheme base, and in splitting scheme base, set up original storehouse, then, enable mathematical effectiveness, to the coding zero padding, and hybrid coding is sorted by numerical significance, and after ordering, recover original encoding and finish ordering, not only the ordering that causes confusion be can avoid, but also dirigibility and the interactivity of coding and sorting order improved.
Describe a kind of sort method of coding among the disclosed embodiment of the invention described above in detail, can adopt the system of various ways to realize for method of the present invention, therefore the invention also discloses a kind of ordering system of coding, the below provides specific embodiment and is elaborated.
See also accompanying drawing 5, the ordering system for the disclosed a kind of coding of the embodiment of the invention mainly comprises: original encoding storehouse 201, fractionation scheme base 202 and ordering storehouse 203.
Original encoding storehouse 201 is used for obtaining detachable original encoding, and according to numerical character and nonnumeric character type described original encoding is split, and obtains the fractionation form of original encoding.
Split in the scheme base 202 and comprise: the zero padding thesaurus 2022 in original storehouse 2021 and corresponding described original storehouse 2021.
Described original storehouse 2021 is used for preserving described original encoding according to described fractionation form and mathematical effectiveness, and utilizes the described original coding of preserving to replace the corresponding original encoding that receives the zero padding after the ordering of ordering storehouse.
Described zero padding thesaurus 2022 is used for the described original encoding zero padding to the described original storehouse of correspondence.
Ordering storehouse 203 is used for the original encoding of each described zero padding thesaurus is sorted, and the described original encoding through the zero padding processing behind the feedback.
After in ordering storehouse 203, the original encoding after the zero padding being resequenced according to mathematical effectiveness, be sent in the original storehouse 2021, make original encoding in the corresponding original storehouse 2021 replace the original encoding of the zero padding after the ordering, namely recover the original encoding value and finish ordering to original encoding.
See also accompanying drawing 6, need to prove, in described zero padding thesaurus 2022, mainly comprise: choose unit 20221, zero padding unit 20222 and transmitting element 20223.
Choose unit 20221, be used for choosing described original storehouse and have the longest figure place and numerical character fragment corresponding to maximum number.
Zero padding unit 20222 is used for other original encoding numerical character fragment leading zeros of described original storehouse.
With transmitting element 20223, be used for the described original encoding after the zero padding is sent to described ordering storehouse.
The implementation of the method that the implementation in above-mentioned each class libraries and the unit is corresponding with it is similar, repeats no more here.
See also accompanying drawing 7, schematic diagram corresponding to above-mentioned fractionation scheme base that provides for the embodiment of the invention.(number in the figure original encoding storehouse 201, fractionation scheme base 202, original storehouse 2021 and zero padding thesaurus 2022).
In sum:
By the disclosed method and system of the embodiment of the invention, finish disassembled coding, obtain fractionation form corresponding to original encoding, set up again the corresponding fractionation scheme base that splits form, hybrid coding can be sorted by numerical significance, not only avoid the phenomenon of ordering that causes confusion, but also improved dirigibility and the interactivity of coding and sorting order.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed systems/devices of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, in other embodiments realization.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. the sort method of a coding is characterized in that, comprising:
According to numerical character and nonnumeric character type the original encoding that obtains is split, obtain the fractionation form of original encoding;
Set up the fractionation scheme base according to described fractionation form;
Travel through other original encodings and split;
Obtain and meet the original encoding that splits form and be stored in the corresponding fractionation scheme base;
Obtain the fractionation form that does not meet the original encoding that splits form, return to carry out according to described fractionation form and set up this step of fractionation scheme base;
According to mathematical effectiveness and above-mentioned different fractionation form, in fractionation scheme base corresponding to described fractionation form, set up different original storehouses;
Again travel through original encoding, the original encoding that will meet mathematical effectiveness and above-mentioned fractionation form is stored in corresponding original storehouse;
Set up described original storehouse and the corresponding relation of ordering between the storehouse, to the original encoding zero padding in each described original storehouse, and the described original encoding after the zero padding is sent to corresponding ordering storehouse sorts;
Return the described original encoding after the zero padding of ordering, make the described original encoding after the original encoding that is stored in the original storehouse is replaced corresponding zero padding, finish the ordering to original encoding.
2. method according to claim 1, it is characterized in that, the described process that the original encoding that obtains is split is: split preferential mode with polymerization described original encoding is decomposed into N fragment, comprise 1 to n numerical character or 1 to n nonnumeric character in described each fragment.
3. method according to claim 2 is characterized in that, described original encoding is decomposed into N fragment, and described N is positive integer.
4. method according to claim 1 and 2 is characterized in that, described original encoding is split, obtain corresponding numerical character fragment and nonnumeric character fragment, wherein, described numerical character fragment adopts 1 expression, and described nonnumeric character fragment adopts 0 expression.
5. method according to claim 1 and 2 is characterized in that, described original encoding is split obtained corresponding numerical character fragment and nonnumeric character fragment, and wherein, described numerical character fragment adopts 0 expression, and described nonnumeric character fragment adopts 1 expression.
6. according to claim 2 or 3 described methods, it is characterized in that, the fractionation form of the described original encoding that obtains represents with 1 or 0.
7. method according to claim 1 is characterized in that, described mathematical effectiveness is the described numerical character of front and back compares size according to independent numeral characteristic.
8. method according to claim 1 is characterized in that, described process to the original encoding zero padding in each described original storehouse is:
Choose and have the longest figure place and numerical character fragment corresponding to maximum number in the described original storehouse;
Other original encoding numerical character fragment leading zeros in described original storehouse make the numerical character fragment figure place in the described original storehouse consistent.
9. the ordering system of a coding is characterized in that, comprising:
The original encoding storehouse is used for obtaining detachable original encoding, and according to numerical character and nonnumeric character type described original encoding is split, and obtains the fractionation form of original encoding;
The fractionation scheme base comprises: original storehouse, and the zero padding thesaurus corresponding with described original storehouse;
Described original storehouse is used for preserving described original encoding according to described fractionation form and mathematical effectiveness, and utilizes the described original coding of preserving to replace the corresponding original encoding that receives the zero padding after the ordering of ordering storehouse;
Described zero padding thesaurus is used for described original encoding zero padding and transmission to the described original storehouse of correspondence;
The ordering storehouse, for the original encoding after the zero padding that receives corresponding zero padding thesaurus, the line ordering of going forward side by side feeds back to described original storehouse with the described original encoding after the ordering trailing zero.
10. system according to claim 9 is characterized in that, comprises in the described zero padding thesaurus:
Choose the unit, be used for choosing described original storehouse and have the longest figure place and numerical character fragment corresponding to maximum number;
The zero padding unit is used for other original encoding numerical character fragment leading zeros of described original storehouse;
Transmitting element is used for the described original encoding after the zero padding is sent to described ordering storehouse.
CN 201010591490 2010-12-16 2010-12-16 Code sorting method and system Active CN102541873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010591490 CN102541873B (en) 2010-12-16 2010-12-16 Code sorting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010591490 CN102541873B (en) 2010-12-16 2010-12-16 Code sorting method and system

Publications (2)

Publication Number Publication Date
CN102541873A CN102541873A (en) 2012-07-04
CN102541873B true CN102541873B (en) 2013-10-23

Family

ID=46348794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010591490 Active CN102541873B (en) 2010-12-16 2010-12-16 Code sorting method and system

Country Status (1)

Country Link
CN (1) CN102541873B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104307765B (en) * 2014-08-26 2017-09-19 佛山市南海区虞氏包装机械厂 Kiln tail automatic color separation system
CN106484662A (en) * 2016-10-12 2017-03-08 天闻数媒科技(湖南)有限公司 A kind of blended data sort method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101317462A (en) * 2005-11-30 2008-12-03 皇家飞利浦电子股份有限公司 Encoding method and apparatus applying coefficient reordering
CN101644961A (en) * 2009-08-14 2010-02-10 北京搜狗科技发展有限公司 Encoded string sequencing method, device and character input method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101317462A (en) * 2005-11-30 2008-12-03 皇家飞利浦电子股份有限公司 Encoding method and apparatus applying coefficient reordering
CN101644961A (en) * 2009-08-14 2010-02-10 北京搜狗科技发展有限公司 Encoded string sequencing method, device and character input method and device

Also Published As

Publication number Publication date
CN102541873A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN105684316B (en) Polar code encoding method and device
CN110334152B (en) Data synchronization method and device and server
WO2007149358A1 (en) Data compression
CN112711935A (en) Encoding method, decoding method, apparatus and computer readable storage medium
US7868793B2 (en) Methods and devices for coding and decoding of SML type documents by similarities
US20140040215A1 (en) Method for encoding a mesh model, encoded mesh model and method for decoding a mesh model
WO2011057680A1 (en) Indexing compressed data
US20180205393A1 (en) Encoding method and apparatus
CN105306062A (en) Encoding and storing method and device for infrared data, and decoding method
CN102970043A (en) GZIP (GNUzip)-based hardware compressing system and accelerating method thereof
US20060018556A1 (en) Method, apparatus and system for data block rearrangement for LZ data compression
JP5656593B2 (en) Apparatus and method for decoding encoded data
CN102541873B (en) Code sorting method and system
CN106845736A (en) A kind of general material code preparation method suitable for business logistics
CN111144117B (en) Method for disambiguating Chinese address of knowledge graph
CN108288966A (en) The rate-matched processing method and processing device of polarity Polar codes
US8788470B2 (en) Allocating and managing random identifiers using a shared index set across products
CN114070901B (en) Data transmitting and receiving method, device and equipment based on multi-data alignment
US8488894B2 (en) Method and system for dot-matrix font data compression and decompression
CN105117403A (en) Log data fragmentation and query method and apparatus
CN106571909A (en) Data encryption method and device
CN108092670B (en) Coding method and device
CN106649859B (en) Method and apparatus for being compressed to the file based on character string
CN114385624A (en) Encoding method, encoding searching method, device, electronic equipment and storage medium
CN107147947B (en) Key frame recognition methods 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