CN110298528A - The method and apparatus of article grouping - Google Patents

The method and apparatus of article grouping Download PDF

Info

Publication number
CN110298528A
CN110298528A CN201810246523.2A CN201810246523A CN110298528A CN 110298528 A CN110298528 A CN 110298528A CN 201810246523 A CN201810246523 A CN 201810246523A CN 110298528 A CN110298528 A CN 110298528A
Authority
CN
China
Prior art keywords
article
dimension
main product
present
initial packet
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.)
Pending
Application number
CN201810246523.2A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810246523.2A priority Critical patent/CN110298528A/en
Publication of CN110298528A publication Critical patent/CN110298528A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Abstract

The invention discloses the method and apparatus of article grouping, are related to field of computer technology.One specific embodiment of this method includes: the data information of the initial packet and article according to article, determines the mapping relations of article between each initial packet;According to the mapping relations of article between each initial packet, the dimension of each article is determined;According to the dimension of each article, the article of same dimension is divided into one group.Which overcomes the defects that the prior art can not handle complicated, revocable logical relation, and the defect that the article degree of coupling is high, system complexity is high is overcome when handling challenge, so that relationship is apparent between article, weakens logical relation between article, so that article is small by complex logic relationship affect in grouping, the logical complexity of reduction system, the details and the degree of coupling between article and article are weakened, conducive to the beneficial effect of the relationship between combing article.

Description

The method and apparatus of article grouping
Technical field
The present invention relates to the method and apparatus that field of computer technology more particularly to a kind of article are grouped.
Background technique
In actual production, article can be grouped according to different standards, function etc..Wherein, according to the attribute of article or Certain standard grouping is relatively easy to, relatively complicated according to the potential logical relation grouping between article.
When being grouped according to potential complex logic, at least there are the following problems in the prior art for inventor's discovery:
1. the prior art logically relationship so as to article be grouped when, for different logical constructions it needs to be determined that difference Processing logic, so relatively simple, fixed logical relation can only be handled.
2. pair there is complicated, on-fixed logical relation article grouping, logical construction needs constantly adjustment to update, subsequent It needs to be continuously increased decision logic, complexity that is too high so as to cause the degree of coupling, increasing system, the whole maintenance difficulties of increase Defect.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of article grouping, can overcome the prior art without The technical issues of method processing complexity, revocable logical relation, and then reach so that the clearer technology of relationship is imitated between article Fruit;Overcome the prior art when handling challenge, the degree of coupling is high, system complexity is high, increases the technology of whole maintenance difficulties Problem, and then reach logical relation between reduction article, so that the technology that article is small by complex logic relationship affect in grouping Effect;And the technical issues of prior art increases the defect of system complexity is overcome, and then reaches patrolling for reduction system Complexity is collected, weakens details and the degree of coupling between article and article, and the beneficial effect of the relationship between article can be combed.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method of article grouping, packet are provided It includes:
Step S101 determines object between each initial packet according to the data information of the initial packet of article and article The mapping relations of product;
Step S102 determines the dimension of each article according to the mapping relations of article between each initial packet;
The article of same dimension is divided into one group according to the dimension of each article by step S103.
Preferably, the initial packet includes: present group and main product group, wherein main product group includes owner of cargo's product and shortage of goods master Product.
Preferably, between each initial packet of the determination article mapping relations, comprising:
Determine in present group that each present each in the mapping of each main product and main product group into main product group is out of stock The mapping of main product each present into present group.
Preferably, it according to the mapping relations of article between each initial packet, determines the dimension of each article, wraps It includes:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting with the starting article The identical dimension of article;
C. by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, There is no the article of mapping relations until new starting article in iteration step B, wherein have determined that the article of dimension is not necessarily to It repeats to determine dimension;
D. judge all items whether all complete determine dimension, be not determined the article of dimension if it exists, then select not by An article in the article of dimension is set, the article dimension is set as new dimension, repeats step B, C, until all items It is designed with dimension.
Preferably, setting dimension sets dimension including the use of sequence number string.
Another aspect according to an embodiment of the present invention provides a kind of device of article grouping, comprising:
Article relationship determination module determines each initial point according to the data information of the initial packet of article and article The mapping relations of article between group;
Dimension determining module determines the dimension of each article according to the mapping relations of article between each initial packet Degree;
The article of same dimension is divided into one group according to the dimension of each article by grouping module.
Preferably, the initial packet includes: present group and main product group, wherein main product group includes owner of cargo's product and shortage of goods master Product.
Preferably, between each initial packet of the determination article mapping relations, comprising:
Determine in present group that each present each in the mapping of each main product and main product group into main product group is out of stock The mapping of main product each present into present group.
Preferably, it according to the mapping relations of article between each initial packet, determines the dimension of each article, wraps It includes:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting with the starting article The identical dimension of article;
C. by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, There is no the article of mapping relations until new starting article in iteration step B, wherein have determined that the article of dimension is not necessarily to It repeats to determine dimension;
D. judge all items whether all complete determine dimension, be not determined the article of dimension if it exists, then select not by An article in the article of dimension is set, the article dimension is set as new dimension, repeats step B, C, until all items It is designed with dimension.
Preferably, setting dimension sets dimension including the use of sequence number string.
Other side according to an embodiment of the present invention provides a kind of electronic equipment of article grouping, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more programs are executed by one or more processors, so that one or more processors realize the present invention The method of article grouping.
Still another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, is stored thereon with computer Program realizes the method for article grouping of the present invention when program is executed by processor.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that
Because overcoming the prior art can not be handled using the technological means for determining article relationship between initial packet The technical issues of complicated, revocable logical relation, and then reach so that the clearer technical effect of relationship between article;
Because dimension, and the technological means being grouped according to dimension is arranged using to article, so overcoming the prior art When handling challenge, the technical problem that the degree of coupling is high, system complexity is high, and then reach logic between reduction article and close System, so that the technical effect that article is small by complex logic relationship affect in grouping;
Because using each article and the mapping relations of article in other initial packets in an initial packet are determined Technological means, so overcoming the technology for increasing the defect of system complexity when the prior art determines logical relation between article Problem, and then reach the logical complexity of reduction system, details and the degree of coupling between article and article are weakened, and can comb The beneficial effect of relationship between article.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for article grouping according to an embodiment of the present invention;
Fig. 2 is the article logical relation signal of the specific embodiment of the method for article grouping according to an embodiment of the present invention Figure;
Fig. 3 is the schematic diagram of the main modular of the device of article grouping according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the main flow of the method for article grouping according to an embodiment of the present invention, as shown in Figure 1,
Step S101 determines object between each initial packet according to the data information of the initial packet of article and article The mapping relations of product;
Step S102 determines the dimension of each article according to the mapping relations of article between each initial packet;
The article of same dimension is divided into one group according to the dimension of each article by step S103.
The initial packet is the group that article can be distinguished according to certain index and/or the different groups having determined Article grouping.For example, article is large article and smaller article according to the initial packet of the size of volume.
The data information of the article is primarily used for reflecting the information of logical relation between each article, thus convenient true The mapping relations of article between each fixed initial packet.In some embodiments, article does not have initial packet, the data of article Information can be also used for the initial packet for assisting to determine article.Optionally, the data information of article can also include, such as but not It is limited to: the attributive character of the weight characteristics of article, the size characteristic of article, article.
Method described in the present embodiment to article in grouping, it is small by logic effects between article, therefore can be suitable for The situation of article logical relation complexity.The prior art will lead to code redundancy when handling complex logic relationship, and the present invention uses The technological means of grouping can weaken complicated logical relation, so as to effectively solve the lengthy and jumbled defect of code.By using The technological means for determining article relationship between each initial packet turns the logical relation between complexity, revocable article Turn in each article and other initial packets between article clearly, the logical relation that can be utilized, to overcome existing Technology cannot handle the technological deficiency of complicated, revocable logical relation.
In some embodiments, by determining each article and article in other initial packets in an initial packet Mapping relations can make the logical complexity of system reduce, and weaken details and the degree of coupling between article and article, and energy Comb the relationship between article.At the same time, it determines that the mapping relations between different initial packets may also help in and inquires object It is whether interrelated between product.Wherein, the mapping relations include each article in an initial packet to other initial packets The mapping of middle part or storewide.
The dimension indicates the parameter added to article.For different articles, dimension possibility is identical may also It is different.This parameter of dimension is quoted, for assisting the grouping to article.Since the purpose of grouping is the object that logical relation will be present Product are divided into one group, therefore use dimension, and the skill being grouped according to dimension is arranged to article in a manner of global in the present embodiment Art means achieve the purpose that article is grouped.Dimension is arranged in a manner of global to refer to after the dimension confirmation of an article, the dimension Degree is all effective in global scope.Method by the way that dimension is arranged in global scope solves degree of coupling height, system complexity High technical problem, and then reach logical relation between reduction article, so that article is in grouping by complex logic relationship affect Small technical effect.It is divided into one group by using by the identical article of dimension, so that related article reaches the mesh of grouping 's.
When this method is applied to the fields such as commodity grouping, commodity delivery, it is preferable that the initial packet includes: present Group and main product group, wherein main product group includes owner of cargo's product and main product out of stock.
In some embodiments of the invention, initial packet can be set to present group and main product group, wherein main product group It has been further divided into owner of cargo's product and main two groups of product of shortage of goods.In these embodiments, the relationship of article between initial packet is established, i.e., The corresponding relationship in each present and main product group of present group between each main product is established, the skill for facilitating subsequent article to be grouped is reached Art effect.
Preferably, between each initial packet of the determination article mapping relations, comprising:
Determine in present group that each present each in the mapping of each main product and main product group into main product group is out of stock The mapping of main product each present into present group.
It, can be according to main product in each present in present group and main product group when being initially grouped into present group and main product group Mapping relations auxiliary items grouping.It, can be by unnecessary mapping in order to save the cost of grouping when establishing mapping relations It omits.For example, main product only need main product out of stock i.e. when determining mapping of the main product in main product group to the present in present group The determination that subsequent dimension can be achieved does not need to determine the mapping of owner of cargo's product to present, is mapped with owner of cargo's product to often to save The cost of a present mapping.
Preferably, it according to the mapping relations of article between each initial packet, determines the dimension of each article, wraps It includes:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting with the starting article The identical dimension of article;
C. by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, There is no the article of mapping relations until new starting article in iteration step B, wherein have determined that the article of dimension is not necessarily to It repeats to determine dimension;
D. judge all items whether all complete determine dimension, be not determined the article of dimension if it exists, then select not by An article in the article of dimension is set, the article dimension is set as new dimension, repeats step B, C, until all items It is designed with dimension.
In some embodiments, identical dimension is set by associated article, thus the convenient grouping to article.Its In associated article refer to there are the article of direct mapping relations and/or, there are the objects of two-stage or the above mapping relations of two-stage Product.Article is selected in initial packet, may include: that article or the candidate in other groupings are selected in emphasis initial packet Product.Wherein, selection includes any selection.For example, when in embodiment including present group and main product group, the more angle from main product Degree goes to determine dimension, and the dimension of present is to be multiplexed the dimension of main product, therefore the main product in main product group is first selected to set dimension.This Outside, it goes to be determined as dimension to be also feasible from the angle of present.
Preferably, setting dimension sets dimension including the use of sequence number string.
In some embodiments, can basis article some features, to construct a sequence number string (Serial Number, abbreviation SN) for setting dimension.If sequence number string is identical, it is divided into one group, so that associated article is divided It is one group, to achieve the effect that article is grouped.
Below using businessman's delivery as specific embodiment, process in detail.
In same order, it is understood that there may be shiploads of merchandise, wherein including owner of cargo's product, main product out of stock, being suitable for a variety of feelings The present etc. of condition.In order to allow client to obtain bought commodity as early as possible, businessman tends to take the scheme available in stock first sent out.It is promoting In the process, it will usually multiple main product occur and mix the logical relation that there is complexity between multiple presents, main product and present and master There is the case where main product out of stock in product.To avoid malice from extracting the behavior of present, present and not corresponding main product will not be put into point To deliver in one group.The risk of present is extracted since present shortage of goods will not cause, so there is no need to consider the situation of present shortage of goods.
The specific embodiment of the program is described in detail below with all methods to ship item grouping.
Firstly, the present and main product all in the parsing from customer order extensible markup language (xml).Wherein, main product Main product (Q) out of stock can be divided into and there are two groups of owner of cargo's product (F).
Secondly, being determined between each present and all main product according to the data information for parsing obtained present and main product Mapping relations.In the corresponding main product of parsing present, need to judge according to the data information of present that this present is to correspond to only One main product, or corresponding multiple main product.It is whether corresponding without continuing to parse the present if this present only corresponds to a main product Other main product;If this present corresponds to multiple main product, need to find corresponding all main product.In this embodiment, it gives Relationship between product and main product is as shown in the table:
The mapping table of table 1 present and main product
Present (G) Main product (Q;F)
G1 {Q1,F1}
G2 {Q1,Q2,F1,F2,F3}
G3 {Q2,Q3,Q4,Q5}
G4 {Q4}
G5 {Q6}
G6 {F4}
Part transposition table 1 determines the mapping relations of out of stock main product and present, that is, determines each main product of shortage of goods to corresponding Mapping relations between present.For example, present G1, G2 are with main product Q1 out of stock, there are mapping relations, therefore main product Q1 out of stock is arrived The mapping relations of present G1, G2 are shown in the table.Specific practice is that the corresponding present of each main product is placed in a set respectively, It is as shown in table 2:
The mapping table of table 2 main product and present out of stock
Main product (Q) out of stock Present (G)
Q1 {G1,G2}
Q2 {G2,G3}
Q3 {G3}
Q4 {G3,G4}
Q5 {G3}
Q6 {G5}
In order to facilitate the logical relation between the present and all main product understood in this specific embodiment, that is, produce Fig. 2 Shown in relational graph.Wherein, circle represents present (G), and box represents main product, and main product out of stock are Q, and having owner of cargo's product is F.From Fig. 2 In can be clearly seen that: between G1, G2, G3, G4, Q1, Q2, Q3, Q4, Q5, F1, F2, F3 exist directly or indirectly contact; Exist between Q6 and G5 and contact, and the composition independency of Q6 and G5 is in other articles;Exist between F4 and G6 and contacts, and F4 and G6 Composition independency is in other articles.In practical operation, can by traverse, be arranged the technological means of dimension by related main product with Present is divided into one group, to avoid being grouped incomplete problem.
Then, Tables 1 and 2 is traversed, determines the dimension of all presents and main product.
In the present embodiment, the grouping that first determination cannot deliver, therefore first select the main product of shortage of goods (this specific embodiment is with Q1 For), the dimension of the main product of the shortage of goods is registered using sequence number string (SN) dimension in registration office and is determined, < Q1, SN are denoted asQ1>.It will The main product Q1 of the shortage of goods finds corresponding all present set: { G1, G2 } according to table 2.Corresponding all present dimensions are multiplexed The dimension, it may be assumed that < G1, SNQ1>,<G2, SNQ1>.Therefore complete to register the dimension of Q1, to avoid repeating registering dimension, Q1 is put into Discard bin: DONE { Q1 }.Then further according to table 1 determine main product { Q1, F1 } corresponding to G1 and G2 corresponding all main product Q1, F1, Q2, F2, F3 }, dimension registration is carried out, dimension is all SNQ1
For there is owner of cargo's product, it is not necessary that dimension is arranged by traversing its corresponding present.The main product according to corresponding to G2 In also comprising main product Q2 out of stock, therefore traverse present corresponding to Q2, the dimension of present corresponding to Q2 be also registered as SNQ1.Its In, present G2 corresponding to Q2 had been registered for dimension, therefore G2 is multiplexed the dimension of former registration, and main product corresponding to G2 are without weight Dimension is registered again, and dimension only is registered to the main product G3 iteration of shortage of goods of unregistered dimension.It is achievable in the way of iteration The dimension iteration of Q3, Q4, Q5.
For main product Q6 out of stock, with Q1, Q2, Q3, Q4, Q5 and the present traversed use new all without mapping relations Dimension SNQ6Registration.The dimension of the present G5 of Q6 mapping is also registered as SNQ6.Similarly, for it is unregistered have owner of cargo's product F4 and Corresponding present G6 uses dimension SNF4Registration, can be obtained table 3:
Table 3 registers dimension statistical form
Main product: registration dimension Present: registration dimension;
Q1: < Q1, SNQ1> G1:<G1,SNQ1>;G2:<G2,SNQ1>;
F1: < F1, SNQ1>
F2: < F2, SNQ1>
F3: < F3, SNQ1>
Q2: < Q2, SNQ1> It is multiplexed original G2;G3: < G3, SNQ1>;
Q3: < Q3, SNQ1> It is multiplexed original G3;
Q4: < Q4, SNQ1> It is multiplexed original G3;G4: < G4, SNQ1>;
Q5: < Q5, SNQ1> It is multiplexed original G3;
Q6: < G6, SNQ6> G5:<G5,SNQ6>;
F4: < F4, SNF4> G6:<G6,SNF4>
Finally, being grouped to all main product and present of completing dimension registration according to dimension.For this specific embodiment To following dimension and the corresponding article set of each dimension:
SNQ1:<Q1,G1,G2,F1,F2,F3,Q2,G3,Q3,Q4,G4,Q5>;
SNQ6:<Q6,G5>;
SNF4:<F4, G6>;
It is SN for dimension since each dispatch list is arranged according to each dimensionQ1And SNQ6Dispatch list in exist Main product out of stock, therefore order can suspend delivery.Dimension is SNF4Order without main product out of stock, therefore the scheme available in stock first sent out can be executed, F4 and G6 binding is first delivered.
Fig. 3 is the schematic diagram of the main modular of the device of article grouping according to an embodiment of the present invention;
As shown in figure 3, the device 300 that a kind of article of the embodiment of the present invention is grouped, comprising:
Article relationship determination module 301 determines that each is initial according to the data information of the initial packet of article and article The mapping relations of article between grouping;
Dimension determining module 302 determines each article according to the mapping relations of article between each initial packet Dimension;
The article of same dimension is divided into one group according to the dimension of each article by grouping module 303.
Preferably, the initial packet includes: present group and main product group, wherein main product group includes owner of cargo's product and shortage of goods master Product.
Preferably, between each initial packet of the determination article mapping relations, comprising:
Determine in present group that each present each in the mapping of each main product and main product group into main product group is out of stock The mapping of main product each present into present group.
Preferably, it according to the mapping relations of article between each initial packet, determines the dimension of each article, wraps It includes:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting with the starting article The identical dimension of article;
C. by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, There is no the article of mapping relations until new starting article in iteration step B, wherein have determined that the article of dimension is not necessarily to It repeats to determine dimension;
D. judge all items whether all complete determine dimension, be not determined the article of dimension if it exists, then select not by An article in the article of dimension is set, the article dimension is set as new dimension, repeats step B, C, until all items It is designed with dimension.
Preferably, setting dimension sets dimension including the use of sequence number string.
Fig. 4 is shown can be using the exemplary of the device for the method or article grouping that the article of the embodiment of the present invention is grouped System architecture 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for the grouping of article provided by the embodiment of the present invention is generally executed by server 405, phase The device of Ying Di, article grouping are generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include sending module, acquiring unit, determining module and first processing module.Wherein, the title of these modules is under certain conditions simultaneously The restriction to the module itself is not constituted, for example, sending module is also described as " sending picture to the server-side connected The module of acquisition request ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:
According to the data information of the initial packet of article and article, the relationship of article between each initial packet is determined;
According to the relationship of article between each initial packet, the dimension of each article is determined;
According to the dimension of each article, the article of same dimension is divided into one group.
Technical solution according to an embodiment of the present invention, thus reach it is following the utility model has the advantages that
1. because overcoming the prior art can not locate using the technological means for determining article relationship between initial packet The technical issues of reason is complicated, revocable logical relation, and then reach so that the clearer technical effect of relationship between article;
2. because dimension, and the technological means being grouped according to dimension is arranged using to article, so overcoming existing skill Art is when handling challenge, the technical problem that the degree of coupling is high, system complexity is high, and then reaches logic between reduction article and close System, so that the technical effect that article is small by complex logic relationship affect in grouping;
3. because using the mapping relations for determining each article and article in other initial packets in an initial packet Technological means, so overcoming the skill for increasing the defect of system complexity when the prior art determines logical relation between article Art problem, and then reach the logical complexity of reduction system, details and the degree of coupling between article and article are weakened, and can comb Manage the beneficial effect of the relationship between article.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method of article grouping characterized by comprising
According to the data information of the initial packet of article and article, the mapping relations of article between each initial packet are determined;
According to the mapping relations of article between each initial packet, the dimension of each article is determined;
According to the dimension of each article, the article of same dimension is divided into one group.
2. the method as described in claim 1, which is characterized in that the initial packet includes: present group and main product group, wherein leading Product group includes owner of cargo's product and main product out of stock.
3. the method as described in claim 1, which is characterized in that the mapping of article is closed between each initial packet of the determination System, comprising:
Determine in present group each present each main product out of stock in the mapping of each main product and main product group into main product group The mapping of each present into present group.
4. the method as described in one of claim 1-3, which is characterized in that reflected according to article between each initial packet Relationship is penetrated, determines the dimension of each article, comprising:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting article with the starting article Identical dimension;
C. it by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, repeats There is no the article of mapping relations until new starting article in iterative step B, wherein have determined that the article of dimension without repeating Determine dimension;
D. judge whether all items are all completed to determine dimension, be not determined the article of dimension if it exists, then select not to be set An article in the article of dimension sets the article dimension as new dimension, repeats step B, C, until all items are all set There is dimension.
5. method as claimed in claim 4, which is characterized in that setting dimension sets dimension including the use of sequence number string.
6. a kind of device of article grouping characterized by comprising
Article relationship determination module, according to the data information of the initial packet of article and article, determine each initial packet it Between article mapping relations;
Dimension determining module determines the dimension of each article according to the mapping relations of article between each initial packet;
The article of same dimension is divided into one group according to the dimension of each article by grouping module.
7. device as claimed in claim 6, which is characterized in that the initial packet includes: present group and main product group, wherein leading Product group includes owner of cargo's product and main product out of stock.
8. device as claimed in claim 6, which is characterized in that the mapping of article is closed between each initial packet of the determination System, comprising:
Determine in present group each present each main product out of stock in the mapping of each main product and main product group into main product group The mapping of each present into present group.
9. the device as described in one of claim 6-8, which is characterized in that reflected according to article between each initial packet Relationship is penetrated, determines the dimension of each article, comprising:
A. a starting article is selected from initial packet, determines the dimension of the starting article;
B. by there are the articles of other initial packets of mapping relations to be set to and the starting article with the starting article Identical dimension;
C. it by there are the articles of other initial packets of mapping relations to be set as new starting article with the starting article, repeats There is no the article of mapping relations until new starting article in iterative step B, wherein have determined that the article of dimension without repeating Determine dimension;
D. judge whether all items are all completed to determine dimension, be not determined the article of dimension if it exists, then select not to be set An article in the article of dimension sets the article dimension as new dimension, repeats step B, C, until all items are all set There is dimension.
10. device as claimed in claim 9, which is characterized in that setting dimension sets dimension including the use of sequence number string.
11. a kind of article is grouped electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810246523.2A 2018-03-23 2018-03-23 The method and apparatus of article grouping Pending CN110298528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810246523.2A CN110298528A (en) 2018-03-23 2018-03-23 The method and apparatus of article grouping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810246523.2A CN110298528A (en) 2018-03-23 2018-03-23 The method and apparatus of article grouping

Publications (1)

Publication Number Publication Date
CN110298528A true CN110298528A (en) 2019-10-01

Family

ID=68026063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810246523.2A Pending CN110298528A (en) 2018-03-23 2018-03-23 The method and apparatus of article grouping

Country Status (1)

Country Link
CN (1) CN110298528A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070179959A1 (en) * 2006-01-30 2007-08-02 Microsoft Corporation Automatic discovery of data relationships
CN102906686A (en) * 2010-01-11 2013-01-30 潘吉瓦公司 Evaluating public records of supply transactions for financial investment decisions
CN103279552A (en) * 2013-06-06 2013-09-04 浙江大学 Collaborative filtering recommendation method based on user interest groups
CN103927633A (en) * 2014-05-05 2014-07-16 中国科学院计算机网络信息中心 Thing information traceability system and method with relevance perception
CN105122288A (en) * 2013-02-28 2015-12-02 Lg电子株式会社 Apparatus and method for processing a multimedia commerce service
CN107730346A (en) * 2017-09-25 2018-02-23 北京京东尚科信息技术有限公司 The method and apparatus of article cluster

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070179959A1 (en) * 2006-01-30 2007-08-02 Microsoft Corporation Automatic discovery of data relationships
CN102906686A (en) * 2010-01-11 2013-01-30 潘吉瓦公司 Evaluating public records of supply transactions for financial investment decisions
CN105122288A (en) * 2013-02-28 2015-12-02 Lg电子株式会社 Apparatus and method for processing a multimedia commerce service
CN103279552A (en) * 2013-06-06 2013-09-04 浙江大学 Collaborative filtering recommendation method based on user interest groups
CN103927633A (en) * 2014-05-05 2014-07-16 中国科学院计算机网络信息中心 Thing information traceability system and method with relevance perception
CN107730346A (en) * 2017-09-25 2018-02-23 北京京东尚科信息技术有限公司 The method and apparatus of article cluster

Similar Documents

Publication Publication Date Title
CN110019211A (en) The methods, devices and systems of association index
CN110019258A (en) The method and apparatus for handling order data
CN110209677A (en) The method and apparatus of more new data
CN109614402A (en) Multidimensional data query method and device
CN110348771A (en) The method and apparatus that a kind of pair of order carries out group list
CN110019080A (en) Data access method and device
CN107506218A (en) The management method and management system of a kind of configuration file
CN108776692A (en) Method and apparatus for handling information
CN112884405A (en) Inquiry system and scheduling method thereof
CN106202438A (en) The method and system of storage associated data
CN109903105A (en) A kind of method and apparatus for improving end article attribute
CN110473036A (en) A kind of method and apparatus generating order number
CN107424046A (en) A kind of multi-platform marketing system of cross-border electric business based on cloud computing
CN110019263A (en) Information storage means and device
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109960212A (en) Task sending method and device
CN110309142A (en) The method and apparatus of regulation management
CN110321242A (en) Data processing method and device
CN108959294A (en) A kind of method and apparatus accessing search engine
CN109426998A (en) Information-pushing method and device
CN110298528A (en) The method and apparatus of article grouping
CN110347654A (en) A kind of method and apparatus of online cluster features
CN110399397A (en) A kind of data query method and system
CN110472190A (en) The method and apparatus for filling ordered sequence
CN110493291A (en) A kind of method and apparatus handling HTTP request

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination