CN106407405B - A kind of social intercourse system based on the search of love and marriage matching degree - Google Patents

A kind of social intercourse system based on the search of love and marriage matching degree Download PDF

Info

Publication number
CN106407405B
CN106407405B CN201610841243.7A CN201610841243A CN106407405B CN 106407405 B CN106407405 B CN 106407405B CN 201610841243 A CN201610841243 A CN 201610841243A CN 106407405 B CN106407405 B CN 106407405B
Authority
CN
China
Prior art keywords
love
marriage
matching degree
user
character code
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
CN201610841243.7A
Other languages
Chinese (zh)
Other versions
CN106407405A (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.)
Tianjin Magic Brush Network Technology Co Ltd
Original Assignee
Tianjin Magic Brush Network 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 Tianjin Magic Brush Network Technology Co Ltd filed Critical Tianjin Magic Brush Network Technology Co Ltd
Priority to CN201610841243.7A priority Critical patent/CN106407405B/en
Publication of CN106407405A publication Critical patent/CN106407405A/en
Application granted granted Critical
Publication of CN106407405B publication Critical patent/CN106407405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of social intercourse systems based on the search of love and marriage matching degree, include instant messaging APP and data management server: the data management server includes User Information Database, love and marriage matching degree inquiry database, processing system, instant messaging APP, for sending processing system for search condition parameter set by user and being presented to the user the search result that processing system returns, described search conditional parameter includes essential information parameter and matching degree parameter;User Information Database, for storing the registration information and love and marriage character code relevant to love and marriage matching degree of each user, the love and marriage character code is various dimensions coding;Love and marriage matching degree inquires database, for prestoring all possible love and marriage character codes for meeting Different matching degree parameter with each possible love and marriage character code.The present invention can provide one for the unmarried men and women with same or similar love or Marriage ideas and quickly establish the platform for contacting and exchanging.

Description

A kind of social intercourse system based on the search of love and marriage matching degree
Technical field
The invention belongs to social communication technique fields, are based on the social of love and marriage matching degree search more particularly, to a kind of System.
Background technique
The quality of love-based marriage situation can directly influence the happiness of one family or a family.Currently, either Whether free or love upon somebody's introduction and marriage relationship are harmonious, rely on the understanding and judgement of party's perception completely, not The relations problems between lover are analyzed from the angle of rationality, thus divorce rate rises year by year.With mobile terminal such as intelligence Mobile phone, tablet computer and its application software (APP) function are stronger and stronger, more more and more universal, so present invention aims at set An application software applied in mobile intelligent terminal is counted, which can allow the suitable friend of unmarried men and women more rational choice Friend, and provide one for the unmarried men and women with same or similar love or Marriage ideas and quickly establish the platform for contacting and exchanging.
Summary of the invention
In view of this, the present invention is directed to propose it is a kind of based on love and marriage matching degree search social intercourse system, for identical Or the platform for contacting and exchanging quickly is established in the unmarried men and women offer one of close love or Marriage ideas.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of social intercourse system based on the search of love and marriage matching degree, includes instant messaging APP and data management server: described Data management server includes User Information Database, love and marriage matching degree inquiry database, processing system, and instant messaging APP is used In by it is set by user search qualifications parameter be sent to processing system and by processing system return search result be presented to User, described search conditional parameter include user basic information parameter and matching degree parameter;User Information Database, for storing The registration information of each user and love and marriage character code relevant to love and marriage matching degree, the love and marriage character code are various dimensions volume Code;Love and marriage matching degree inquires database, meets Different matching degree parameter with each possible love and marriage character code for prestoring All possible love and marriage character codes;Processing system, can be according to matching degree parameter, and search is all from matching degree inquiry database Meet all love and marriage character codes of matching degree Parameter Conditions, composition data collection;And according to essential information parameter, believe from user Search meets all users of essential information parameter in breath database, one by one by the love and marriage character code of obtained each user with The data set that upper step obtains is compared, if belonging to the data set, saves the information of this user, is finally obtained all full The user information of sufficient condition, and feed back to instant messaging APP.
Further, the love and marriage character code stored in the User Information Database is that the test completed by user is asked Acquisition, including multiple test items are rolled up, the different selections of each test item correspond to different scores, and the score of each test item is total The coding of the corresponding dimension of fraction range belonging to meter, multiple test items constitute the love and marriage character code of various dimensions.
Further, the love and marriage matching degree inquiry database uses Fragmentation mode, i.e. each love and marriage character generation Code and the matching degree relationship of other love and marriage character codes are stored in one page;It is searched according to being extracted from User Information Database The love and marriage character code of rope user, positioning love and marriage matching degree inquires the memory page in database, according to the matching in search condition Degree parameter navigates to the storage region of the condition of satisfaction.
Further, the processing system is by minimum love and marriage character code and maximum love and marriage character code according to binary number Value is ranked up, and an array T is generated, after processing system receives a love and marriage character code, by the love and marriage character code and number Data in group T do subtraction operation one by one, when subtraction result is 00, record data place in array in array T Position M;M is multiplied with memory gap data, obtains result L, then L is the love and marriage matching degree data for storing this love and marriage character code The first address of memory page.
Further, it is stored in the region of a corresponding matching degree parameter by love and marriage character code in each memory page And the coded combination of each matching angle value composition.
Further, the love and marriage character code of the various dimensions is at least divided into two groups, evaluates of different aspect respectively With degree: when the love and marriage character code is divided into two groups, evaluates two matching degrees respectively, search condition parameter then includes two With degree parameter, the storage region for meeting condition in each memory page is positioned according to the two matching degree parameters;When the various dimensions Love and marriage character code when being divided into more than two groups, two matching degree parameters carry out the love and marriage matching degrees inquiry preferably wherein The Fragmentation of database finds the coded combination for meeting the storage region of preferred two matching degree parameters, is passing through coding Multiple matching degree parameters in combination, screening meet the matching degree Parameter Conditions other than this preferred two matching degree parameter Love and marriage character code.
Further, it prestores in the love and marriage matching degree inquiry database and meets with each possible love and marriage character code All possible love and marriage character codes of Different matching degree parameter, compare the matching degree between the love and marriage character code of two various dimensions Method, be that two various dimensions are encoded into corresponding each dimension coded combination, inquire the matching degree inquiry table of corresponding dimension Matching angle value is obtained, by the matching angle value averaging of multiple dimensions of acquisition;Using the average as final matching degree Parameter carries out the storage of corresponding storage region.
Further, the data management server also includes customer position information database and positioning system, described to search Rope conditional parameter further includes distance parameter, inquires customer position information database by positioning system and obtains the position letter of user Breath.
Further, the positioning system uses the base station GPS--wifi hybrid positioning method, using rectangle location algorithm.
Compared with the existing technology, present invention has the advantage that
(1) present invention can provide one for the unmarried men and women with same or similar love or Marriage ideas and quickly establish connection The platform for being and exchanging;
(2) present invention is under conditions of meeting multi-party faceted search, while improving efficient searching method.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is system global structure figure described in the embodiment of the present invention;
Fig. 2 is functional block diagram provided by system described in the embodiment of the present invention;
Fig. 3 is the Fragmentation structure that love and marriage matching degree described in the embodiment of the present invention inquires database;
Fig. 4 is the storage organization of User Information Database described in the embodiment of the present invention;
Fig. 5 is the positioning flow figure of positioning system described in the embodiment of the present invention;
Fig. 6 is the rectangle location algorithm schematic diagram of positioning system described in the embodiment of the present invention;
Fig. 7 is user search routine figure of the system based on qualifications described in the embodiment of the present invention;
Fig. 8 is when system batch user information described in the embodiment of the present invention is extracted using the access of multi-process database information Flow chart.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
The embodiment of the present invention includes instant messaging APP software and data management server: the instant messaging APP software Mobile intelligent terminal such as mobile phone, tablet computer etc. is operated in, the data management server includes User Information Database, love and marriage Matching degree inquires database, customer position information database, positioning system, processing system, and system global structure is as shown in Figure 1.
By instant messaging APP software, user can chat with other users, lead to data management server Letter realizes good friend's positioning, based on functions such as people's search near love and marriage (love and marriage) matching degree.The data management service Device major function includes establishing each database, handles searching request from the user, the real-time positioning etc. to user location.With Family can realize the functions such as search shown in Fig. 2, group chat by instant messaging APP software and data management server.
Wherein, the function of the instant messaging APP software includes user's registration, logs in, improves data, user good friend column Table, user apply for plusing good friend, the plusing good friend that grants an application, the plusing good friend that refuses an application, delete good friend, remark names are added to good friend, are added Add and deletes blacklist, blacklist list, addition collection, the favorites list, delete collection, the message for whether receiving another user is set Etc. functions;Message module major function is the real-time messages for receiving other users and providing;Group chat module includes: creation interim conversation And add user, addition user to a session, the contacts list that can be added, session in detail, delete user, exit session, Whether edit session, setting receive message, delete session, the list of user's group chat, group's pet name that user is arranged, user addition group; Address list module includes mobile phone contact, the new friend of addition;Circle of friends module includes that publication shares, deletes and share circle of friends column Table, circle of friends photograph album, addition/deletion are praised, are replied, deleting reply, setting circle of friends permission, setting circle of friends cover;Meeting mould Block include: creation meeting, meeting in detail, list of conference, application be added meeting, grant an application be added meeting, disagree application plus Enter meeting, invite addition meeting, user's application list of meeting, user activity seniority among brothers and sisters, removal user;Setup module includes version This update receives new message notification, does not receive whether new message notification, Modify password, feedback opinion, setting plus when friend need Verifying, Help Center, log-in protocol;Above functions is the prior art, is no longer described in detail.
Emphasis of the invention is the fast search based on people near love and marriage (love and marriage) matching degree, and user passes through i.e. When Shi Tongxin APP software registration: since instant messaging APP software is other than specific normal chat communication function, may be used also It is qualifications according to some user and other users love and marriage matching degree, a quick positioning search service is provided.
So a love and marriage can be filled in addition to normally filling in the essential informations such as user name, password when user's registration Test questionnaire.Love and marriage are tested in questionnaire comprising many selective topics, are classified to topic, are tested the not Tongfang of user respectively Different scores is remembered according to the difference of option in face, and the score for finally calculating every class topic amounts to, according to testee at each The total score that major class obtains sets a character code, and different character codes represents the difference that such topic belonging to user surveys project Type;
The love and marriage test questionnaire of the present embodiment includes 8 major class topics, respectively personality, Rational basis, values, love Feeling, physiological requirements, security needs, respect and love with needed by love, sense of ownership and social circle etc..Each major class topic totally 10 Small topic.Such as each topic is worked out by Pyatyi scoring.1., 2., 3., 4., 5. every 5 answers of topic score are respectively as follows:.According to The difference of option remembers different scores;For example, testee's choosing is 1., 1 point is remembered;2. choosing, remembers 2 points etc., further according to different scores Duan Jinhang classifying and dividing.
The setting rule of the present embodiment is as follows: 1, personality, score 31~50 are A;10~30 be B;Similarly, 2, rationality base Plinth: it is divided into tetra- seed type of A, B, C, D;3, A, B two types values: are divided into;4, love is felt to be divided into A, B, C, D Four seed types;5, physiological requirements are divided into A, B two types;6, security needs are divided into tetra- seed type of A, B, C, D;7, respect, Love is needed with by love: (1,2,3,4,5 five independent point counting of topic) 5~15 is a, and 16~25 be A, and (6,7,8,9,10 5 topics are single Only point counting) 5~15 be b, 16~25 be B, group is combined into AB=C, Ab=D, aB=E, ab=F, so being divided into C, D, E, F tetra- Seed type;8, sense of ownership and social circle are divided into tetra- seed type of A, B, C, D.
For example, 10 problem score=3+3+4+3+2+4+2+1+4+3=29 fraction ranges of the personality class of first are 10~30 Between, so belonging to B class.
Final 8 major class topics obtain an octuple degree code (i.e. love and marriage character code), such as first has been answered questionnaire and obtained It is BCADAAEB to octuple degree code.Therefore APP can be that each user calculates love and marriage according to the love and marriage questionnaire table of different user Character code, and the love and marriage character code of each user is also not necessarily identical.
After user's registration completion, by modes such as the WiFi net of mobile client or mobile cellular nets, by user People's information and love and marriage character code are transmitted to data management server, and store the User Information Database into server.
The numerical value of love and marriage matching degree of the present invention is obtained according to psychologic theory, example:
For example, the love and marriage character code of testee's first are as follows: BCADAAEB, this eight characters represent dimension, rationality base Plinth dimension, concept of va lue, love feel that dimension, physiological requirements dimension, security needs dimension, respect and love need to tie up with by love Degree, sense of ownership and social circle's dimension.The dimension code of testee's second is BAACAACB;
The method for comparing the matching degree between the love and marriage character code of two various dimensions is to correspond to two various dimensions codings Each dimension coded combination, the acquisition for inquiring the matching degree inquiry table of corresponding dimension matches angle value, by multiple dimensions of acquisition Matching angle value averaging;Using the average as final matching degree parameter, the storage of corresponding storage region is carried out. Wherein, the matching angle value in the corresponding matching degree inquiry table of each dimension is obtained according to the theories of psychology.
Each dimension of first and second liang of people is compared, the dimension of this example first belongs to B class, and the dimension of second belongs to B class;
For example, inquiring the matching degree inquiry table of corresponding dimension, the matching degree that dimension combines AA is that 75%, AB is 100%, BB 75%, therefore, the combination of the first and second dimensions are BB, that is to say, that the first and second two matchings of the people in terms of personality Degree is 75%;
The love and marriage character code of the various dimensions can be at least divided into two groups, evaluate the matching degree of different aspect respectively, this Embodiment is divided into two groups, evaluates matching degree and marriage matching degree in love respectively.
For example, first and second love matching degree be (75%+50%+100%+12.5%)/4=59% (4 types, personality, Rational basis, values, love are felt);First and second marriage matching degree are (75%+100%+50%+56%)/4=70%, (other four types).It is therefore contemplated that coding BCADAAEB is to BAACAACB love matching degree 59%, marriage matching degree 70%.
The foundation of the love and marriage matching degree inquiry database:
What the embodiment of the present invention was tested is the matching degree of 8 dimensions such as personality, Rational basis, and each test user is by asking What volume test obtained is love and marriage character code (octuple degree coding), and each dimension has multiple types (8 dimension difference of this implementation The type class having is 2,4,2,4,2,4,4,4, such as dimension is divided into A type and Type B);It is calculated, is used by probability statistics 8192 (2*4*2*4*2*4*4*4), which will be at most generated, after the registration of family plants different love and marriage character codes.That is each wedding Love character code and other 8191 love and marriage character codes have the relationship of matching degree in love and marriage matching degree.
The love and marriage matching degree inquiry database uses Fragmentation mode, i.e. each love and marriage character code and other weddings The matching degree relationship of love character code is stored in one page, the in addition matching of a love and marriage character code and other love and marriage character codes Degree relationship is stored in another page;It is stored in the region of a corresponding matching degree parameter by love and marriage character generation in each memory page The coded combination of code and each matching angle value composition;According to the love and marriage of the described search user extracted from User Information Database Character code, positioning love and marriage matching degree are inquired the memory page in database, are navigated to according to the matching degree parameter in search condition Meet the storage region of condition.
When the love and marriage character code is divided into two groups, evaluates two matching degrees respectively, search condition parameter then includes two A matching degree parameter positions the storage region for meeting condition in each memory page according to the two matching degree parameters;
When the love and marriage character code of the various dimensions is divided into more than two groups, preferably wherein two matching degree parameters into The Fragmentation of the row love and marriage matching degree inquiry database, finds the storage region for meeting preferred two matching degree parameters Coded combination, by multiple matching degree parameters in coded combination, screening meets in addition to this preferred two matching degree parameter Except matching degree Parameter Conditions love and marriage character code.
The embodiment of the present invention includes two matching degrees, and matching degree respectively in love and marriage matching degree, each memory page are pressed (can also store according to descending) is stored according to the ascending order of matching degree in love and marriage matching degree, as shown in figure 3,.First according to love Institute's love and marriage character code is divided into the storage of the ascending orders such as 10 parts i.e. 0~10%, 11~20%...... by the difference of matching degree. Then different also according to marriage matching degree in each similarity section such as 0%~10%, love and marriage character code is divided into 10 The storage of the ascending orders such as a part such as 0~10%, 11~20%.Storage each in this way is divided into 100 zonules, and each region is corresponding One coordinate, for example, matching degree in love is 0~10%, the coordinate for the data space that marriage matching degree is 0~10% is (0,0), Matching degree 1 in love is 91~100%, and the coordinate for the data space that marriage matching degree is 0~10% is (9,0), and so on.This Coordinate is the important parameter of the access matching degree inquiry database.
According to the storage mode of above-mentioned paging, need to design 8191 data storages in the matching degree inquiry database Page occupies 12 bytes according to every information in each memory page of actual demand, then each memory page needs 98292 bytes (about Memory space 100K), then 8191 memory pages need total memory space of about 800M altogether.For storage space of database Extension, design using 4G memory space be used to store all matching degree data informations, i.e., the space of each memory page is big It is small about are as follows: the memory space of 4G (is equally divided into 8191 parts) by 523K.The address range of 4G memory space is 0x00000000 ~0xFFFFFFFF, i.e., first storage page address are as follows: 0x00000000~0x0007FE80, i.e., first storage page address Are as follows: 0x0007FE81~0x000FFD00, and so on, the initial address of each memory space differs 0x0007FE80 (number Word is that 16 systems indicate).
In present embodiment, each love and marriage character code can use binary representation, as love and marriage character code is This love and marriage character code is regarded as 8 16 system numbers by BCADAAEB, is converted into 32 and is represented in binary as 10111 100101011011010101011101011.According to love and marriage character code feature, after being converted into binary system, the smallest love and marriage of number Character code is AAAAAACA, coding are as follows: 101,010,101,010 1,010,101,010,101,100 1010;(note: the two of character A System is 1010, and the binary system of character B is 1011, and the binary system of character C is 1100, and the binary system of character D is 1101, character E Binary system be 1110,1111) binary system of character F is;After being converted into binary system, the maximum love and marriage character code of number is BDBDBDFD, coding are as follows: 1,011 1,101 1,011 1,101 1,011 1,101 1,111 1101;
Design stores love and marriage matching degree information relevant to love and marriage character code AAAAAACA to first page, that is, address sky Between be 0x00000000~0x0007FE80 this one page (first page).It will love and marriage relevant to love and marriage character code BDBDBDFD This one page (last that the storage of matching degree information is 0x00F8017F~0xFFFFFFFF to last page, that is, address space Page).It when Database, is arranged from low to high according to the size of love and marriage character code binary code.
The memory space position calculation of other each love and marriage character codes is as follows:
1, every love and marriage character code is compared size according to binary numeral by server, generates one from AAAAAACA Start, the 32 bit array T that BDBDBDFD terminates.(this process has been completed when Database);
2, after server receives a love and marriage character code E, the data in the code and data T are done into subtraction behaviour one by one Make, when certain data and love and marriage character code E subtraction result are 00 in T, records data place in array in T Position M.(note: although taking turns doing subtraction with multiple data in database, since server data is very fast, and because subtraction Operating time is very short, it is possible to ignore the influence of computation delay.)
3, M is multiplied with 0x0007FE80 (memory gap data), obtains result L, then L is storage love and marriage character code E Love and marriage matching degree data memory page first address.
4 servers can be further, and according to first address, other qualifications extract corresponding information.
(2) (index of page illustrates that this part pertains only in page in upper section to the data directory of the matching degree inquiry database Contents extraction.)
When needing to specify love and marriage matching degree to require to inquire some user and other users love and marriage matching degree according to user, clothes Device be engaged in first according to user's love and marriage character code inquiry and the code related data memory page, then according to love and marriage piece matching degree It is required that calculating target zone coordinate matching degree for example in love is 80%, marriage matching degree is 70%, then calculated coordinate model Enclose that (similarity A is greater than 80%, similarity B for totally six zonules for (8,7), (8,8), (8,9), (9,7), (9,8), (9,9) Greater than 70%).Then system starts the love and marriage character code and specific similarity letter that 6 six processes extract six regions respectively Breath, forms a correlation data table M.In next step, server carries out information in the hobby coding N and M of user to be screened Comparison illustrates that the user meets the requirements if including N in M, illustrates that the user is unsatisfactory for requiring if not including N in M, leads to The user met the requirements can further be screened by crossing comparison one by one.
Data management server described in embodiment of the present invention is established User Information Database using MySQL database and is stored Chartered user information, design are stored using the data of layer-stepping, and storage organization is as shown in Figure 4.
User Information Database uses layer-stepping data store organisation, and first layer is to be divided into storage according to the difference of gender Two memory blocks, the second layer is numbered according to ID is divided into multiple data forms for user information.Such as boy student memory block id field 1 is deposited User that the ID of storage is 0000~9999, id field 2 store the user that ID is 10000~19999.Each ID stores field packet Come specifically to store the personal information of user containing a data form, the personal information include: ID, the pet name, user name, password, The contents such as location, gender, location, age, registion time, love and marriage character code.For example, some id field data form sample Example storage format is as shown in table 2 below:
2 database data storage organization table of table
After each user registration success or modification personal information, the mobile clients such as mobile phone can be by new personal data information It is sent to server, server is understood after receiving information by the information preservation (new user) or modification (old user), while server An ID can be distributed for each new user automatically, and send the ID to user.Such as: after some user's registration, mobile terminal A message code character string, specific code will be generated are as follows: Who Am I by #!It makes progress every day!******!Beijing!Male!34! 2017.4.2!BAACDDAD.
After server receives code character string, which is stored any one into boy student information storage area In a data form, and an ID is automatically generated, and feed back to user." # " indicates new registration user in above-mentioned character string;"!" Indicate the separator of each field in message code character string.
Another example is: the message code character string that some user sends are as follows:
Who Am I by@12345!It makes progress every day!******!Beijing!Male!34!2017.4.2!BAACDDCC
Server can be according to " 12345 ", the content search corresponding data table of " male " two fields after receiving code character string Information in lattice, and modified according to the content of message code character string to the information in data form.Wherein "@" shows Registration information, " 12345 " are User ID.
The main purpose of the positioning system is currently mentioned with the registration user in oneself certain distance for server lookup For a reference by location foundation.The following two kinds mode can be taken:
Method 1: the mobile terminal for initiating search inquiry is positioned by data management server;
Method 2: mobile terminal is positioned oneself, and location information is then sent to data management server.
In order to reduce the work load of data management server, present embodiment is in such a way that mobile terminal is positioned oneself It obtains personal location information, and stores into customer position information database.
Instant messaging APP software uses the base station GPS--wifi hybrid positioning method, and the positioning method based on GPS is to utilize GPS positioning module on mobile phone sends positioning backstage for the position signal of oneself to realize mobile phone positioning, but GPS satellite is believed Number penetration capacity is weak, therefore is not available indoors and power consumption is high;Base station location is then the distance using base station to mobile phone Measuring and calculating distance determine mobile phone location, measuring and calculating error is larger;WiFi positioning be according to a fixed address WifiMAC, By the position for the Wifi hot spot being collected into, the positioning service on network is accessed then to obtain latitude and longitude coordinates.
The positioning flow figure of the optimum selecting of 3 kinds of positioning methods, present embodiment is as shown in Figure 5.After user starts positioning, It is strong and weak that itself mobile client GPS signal is detected first, if GPS signal is strong (usually in outdoor), carries out GPS positioning. If GPS signal is weaker, detect whether user has WiFi signal.If having WiFi signal (generally indoors and indoor With WiFi), then carry out WiFi positioning.If carrying out base station location without WiFi signal.Either GPS, WiFi or base It stands firm position, final purpose is to obtain the current position coordinates (longitude, latitude) of user.Three kinds of positioning methods have priority to be respectively GPS, WiFi, base station location.
GPS positioning is to be realized by specifically instructing in JAVA programming language, and base station location can be used with WiFi positioning To the calculation method of three sides, triangle or reaching time-difference.
The method that multi-mobile-terminal positions in real time in embodiment of the present invention:
(1) acquisition and storage of user's latitude and longitude information
Firstly, the spatial database of storage user's real-time position information is established, certain user's latitude and longitude information data storage Sheet format are as follows:
Table name Data
User ID
Longitude
Latitude
When registered users use this APP instant communication software, current position letter is declared in APP meeting timing to server Breath.After server receives the real-time position information of user, the longitude and latitude data storage in spatial database is stored data into In chained list.Through testing, 1,000,000 100 appropriate informations of information extraction are only needed 2.5 seconds from spatial database.
(2) location algorithm
Design uses rectangle location algorithm, is specifically described position fixing process below with reference to Fig. 6.O point is that initiation search is attached in figure Person of modern times operates the position of user, is denoted as (x, y) (wherein x is longitude, and y is latitude), and the user for initiating to search for people's operation nearby will The latitude and longitude information and required distance information R of itself are sent to server, after server obtains the information, are calculated according to the information In figure, the coordinate (latitude and longitude information) of tetra- points of A, B, C, D.Since the actual range length of 1 longitude and 1 latitude is 111KM, So the coordinate of four points can be calculated acording to the requirement of user:
A:(x+R/110, y+R/110)
B:(x-R/110, y+R/110)
C:(x-R/110, y-R/110)
D:(x+R/110, y-R/110)
It requires to calculate according to user, longitude coordinate meets [x+R/110, x+R/110], latitude coordinate meets [y+ R/110, y+R/110] require user, all meet initiate search mission user demand.
3 require to extract User ID according to latitude and longitude coordinates
Since User ID and coordinate data are stored in spatial database, calculate and complete after longitude and latitude requires, server from The ID for meeting longitude and latitude requirement user is extracted in spatial database.
4 further reject undesirable user according to ID.
5 calculate each meet the requirements user with initiation search mission user at a distance from and display.
When instant messaging APP software scans for user through the invention, which is that user limits according to the search of oneself Fixed condition is primarily referred to as searching for particular person according to love and marriage matching degree here:
The way of search is the search based on parameter, and search parameter includes at a distance from itself gender and user, love With parameters such as degree, marriage matching degrees.
Such as the search condition of certain user input are as follows: boy student, 10KM, matching degree 80%, marriage matching degree 70% in love.
Above-mentioned search example shows: user only searches for oneself within 10 kilometers of distance, and matching degree in love is greater than 80%, wedding Other registered users with matching degree big 70%.After the completion of setting, instant messaging APP software can be by the search qualifications It is packaged into one group of data encoding with my geographical location information (longitude and latitude), is sent to data management server.
Above-mentioned search example code information are as follows:
Data management server handles search coding, screens, extracts qualified user information, here mainly Span is greater than the user that 80%, marriage similarity is greater than 70% from less than 10KM, similarity in love.
After the completion of screening, extraction, the user information for the condition that meets is sent to user, the shifting of user by data management server Dynamic client can show the user information received with tabular form, while user can be according to distance, similarity Etc. modes information is ranked up.
Data management server handles search coding, screens, extracts qualified group information, here mainly Refer to that matching degree in love is greater than 80%, marriage matching degree and is greater than 70%.After the completion of screening, extraction, data management server will meet The user information of condition is sent to user, the mobile client of user can with tabular form according to similarity from high to low to reception To user information shown.
The data management server major function includes:
Function 1: it receives, the solicited message that processing user sends;
Function 2: management storage User Information Database, love and marriage matching degree inquire database, customer position information database;
Function 3: the GPS positioning etc. of user is registered;
Function 4: feedback the selection result.
Wherein, data management server other than realizing instant messaging APP software conventional func (as chat, user's registration, Circle of friends etc.), it is different from other chat tools and is people's function of search nearby.Below by taking a querying command as an example, retouch in detail State the implementation procedure for searching for people's function nearby:
Assuming that the inquiry instruction that data management server receives are as follows:
%12345W10KM80%70%LON11709.432LAT3403.868
After receiving instruction, data management server is extracted from User Information Database according to the id field in instruction The personal information of the user of inquiry is initiated out, then according to the love and marriage character generation in the userspersonal information for initiating query task The qualifications such as code, gender, love and marriage matching degree, filter out the user for meeting qualifications.It excludes to be unsatisfactory for requiring by calculating User, weed out herein matching degree in love less than 80%, love and marriage matching degree be lower than 70% user.
In next step, data management server positions the user for meeting Interest Similarity requirement, and acquisition meets condition The latitude and longitude information of user current location and according to the information and initiate query task user current location latitude and longitude information (this Latitude and longitude information in example are as follows: LON11709.432LAT3403.868) distance exam is carried out, to determine the use for meeting required distance Family, as in this example with initiate query task user distance less than 10 kilometers.It can by decision conditions such as love and marriage matching degree, distances The user information of satisfaction is filtered out, the user information for meeting qualifications is sent initiation job enquiry by data management server Mobile terminal, the function implementation procedure is as shown in Figure 7:
1 user sets the good friends such as love and marriage matching degree, gender, detection range and searches for qualifications;
2 form a data encoding H according to the search condition of user from APP software;
The ID of data encoding H and user are sent to server by 3 mobile clients;
4 server based on data encode the qualifications and this user love and marriage character code T in H, match from user's love and marriage It is extracted in degree inquiry database and meets the requirements all love and marriage character codes, form love and marriage character code data collection K;Server is adopted Data are extracted with multi-process mode, such as J process of server settings extracts the wedding in love and marriage matching degree inquiry database simultaneously Love character code.
5 servers are used from User Information Database according to the requirement of the gender field in the data encoding H received The mode of multi-process proposes the field of id field and love and marriage character code in all user data informations for meeting gender requirement W.Note: the data information that each process is extracted forms a data information subset;Such as the data information that process 1 is extracted is subset The data information that N1, process 2 are extracted is subset N2..., and so on.
6 servers by each character in the field W of each love and marriage character code and love and marriage character code data collection K one by one Compare, if W is present in K, retains the id field of corresponding user;Otherwise ID is deleted;Until all W compare completion Afterwards;The main purpose that the above process is realized using multi-process mode is to improve the operational efficiency of server, such as that N1 is total W and K While middle charactor comparison, process 2 or process 3 etc. are extracting other parts information.
7 each user information subset Ni residue id informations form a big data information collection N, and server is according in each Remaining User ID extracts the corresponding geographical location information (longitude and latitude) of each ID (user) from user's geographic position data library, And it calculates the user and initiates query task user distance L.
If 8 L, which are greater than user, limits distance R, the correspondence ID in N is deleted, retains the User ID if L is less than R.
9 apart from qualifications after screening, and the User ID retained in N is final satisfactory user, server root According to the ID, all information that the ID met the requirements corresponds to user are extracted from user data information server.And by the information Send mobile client to.
There will be two kinds of situations for database information extraction:
(1) designated user's data information extracts,
(2) batch user information is extracted.
The extraction of designated user's data information appears in user and modifies personal information according to ID search designated user or user Situation, since the data of User Information Database use layer-stepping data store organisation, data structure in data management server Body pointer can quickly navigate to the data entries for needing to position.
Batch user information extraction, which is mainly concerned with, extracts position ID user letter according to qualifications such as matching degree, men and women Breath.In order to improve the speed of data extraction, when batch user information is extracted by the way of the access of multi-process database information.Tool Body as shown in figure 8,
When data management server receives people's searching request nearby from the user, data management server is first By the storage region (carrying out subregion generally according to men and women user's difference) where the extracted information of positioning, it is then turned on multi-process Server is accessed, specific example process is that process 1 extracts the letter of 10000 users in the id field 1 of User Information Database After breath, data management server handles 10000 information, data management server to 10000 information into While row processing processing, other processes are respectively to the data of User Information Database id field 2, id field 3 ... .ID field n It extracts, to be ready in data management server processing, until entire data all have been processed into, extracts satisfaction and want The data information asked.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of social intercourse system based on the search of love and marriage matching degree, it is characterised in that: taken comprising instant messaging APP and data management Business device: the data management server inquires database, processing system comprising User Information Database, love and marriage matching degree,
Instant messaging APP, the search for sending received search condition parameter to processing system and returning to processing system As a result it is presented to the user, described search conditional parameter includes essential information parameter and matching degree parameter;
User Information Database, for store each user registration information and love and marriage character generation relevant to love and marriage matching degree Code, the love and marriage character code are various dimensions coding;
Love and marriage matching degree inquires database, meets Different matching degree parameter with each possible love and marriage character code for prestoring All possible love and marriage character codes;
Processing system can be searched for from matching degree inquiry database and all meet matching degree Parameter Conditions according to matching degree parameter All love and marriage character codes, composition data collection;And according to essential information parameter, searches for and meet from User Information Database All users of essential information parameter, the data set for one by one obtaining the love and marriage character code of obtained each user and upper step into Row compares, if belonging to the data set, saves the information of this user, finally obtains all user informations for meeting condition, And feed back to instant messaging APP;
The love and marriage character code stored in the User Information Database be by user complete test questionnaire obtain, including Multiple test items, the corresponding different score of different selections of each test item, the score of each test item amount to affiliated score The coding of the corresponding dimension of range, multiple test items constitute the love and marriage character code of various dimensions.
2. the social intercourse system according to claim 1 based on the search of love and marriage matching degree, it is characterised in that: the love and marriage matching Degree inquiry database uses Fragmentation mode, i.e. the matching degree of each love and marriage character code and other love and marriage character codes is closed System is stored in one page;According to the love and marriage character code of the described search user extracted from User Information Database, love and marriage are positioned Matching degree inquires the memory page in database, and the memory block of the condition of satisfaction is navigated to according to the matching degree parameter in search condition Domain.
3. the social intercourse system according to claim 2 based on the search of love and marriage matching degree, it is characterised in that: the processing system Minimum love and marriage character code and maximum love and marriage character code are ranked up according to binary numeral, an array T is generated, works as processing After system receives a love and marriage character code, the data in the love and marriage character code and array T are done into subtraction operation one by one, when subtracting When method result is 00, position M of the data where in array in array T is recorded;M is multiplied with memory gap data, is obtained To result L, then L is the first address for storing the love and marriage matching degree data memory page of this love and marriage character code.
4. the social intercourse system according to claim 2 based on the search of love and marriage matching degree, it is characterised in that: each memory page The coded combination being made of love and marriage character code and each matching angle value is stored in the region of interior one matching degree parameter of correspondence.
5. the social intercourse system according to claim 4 based on the search of love and marriage matching degree, it is characterised in that: by the various dimensions Love and marriage character code be at least divided into two groups, respectively evaluate different aspect matching degree:
When the love and marriage character code is divided into two groups, evaluates two matching degrees respectively, search condition parameter then includes two With degree parameter, the storage region for meeting condition in each memory page is positioned according to the two matching degree parameters;
When the love and marriage character code of the various dimensions is divided into more than two groups, two matching degree parameters carry out institute preferably wherein The Fragmentation for stating love and marriage matching degree inquiry database, finds the coding for meeting the storage region of preferred two matching degree parameters Combination, by multiple matching degree parameters in coded combination, screening meets other than this preferred two matching degree parameter Matching degree Parameter Conditions love and marriage character code.
6. the social intercourse system according to claim 1 based on the search of love and marriage matching degree, it is characterised in that: the love and marriage matching All possible love and marriage for meeting Different matching degree parameter with each possible love and marriage character code are prestored in degree inquiry database Character code compares the method for the matching degree between the love and marriage character code of two various dimensions, is by two various dimensions codings pair The each dimension coded combination answered, the acquisition for inquiring the matching degree inquiry table of corresponding dimension matches angle value, by multiple dimensions of acquisition The matching angle value averaging of degree;Using the average as final matching degree parameter, depositing for corresponding storage region is carried out Storage.
7. the social intercourse system according to claim 1 based on the search of love and marriage matching degree, it is characterised in that: the data management Server also includes customer position information database and positioning system, and described search conditional parameter further includes distance parameter, is passed through Positioning system inquiry customer position information database obtains the location information of user.
8. the social intercourse system according to claim 7 based on the search of love and marriage matching degree, it is characterised in that: the positioning system Using the base station GPS--wifi hybrid positioning method, using rectangle location algorithm.
CN201610841243.7A 2016-09-22 2016-09-22 A kind of social intercourse system based on the search of love and marriage matching degree Active CN106407405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610841243.7A CN106407405B (en) 2016-09-22 2016-09-22 A kind of social intercourse system based on the search of love and marriage matching degree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610841243.7A CN106407405B (en) 2016-09-22 2016-09-22 A kind of social intercourse system based on the search of love and marriage matching degree

Publications (2)

Publication Number Publication Date
CN106407405A CN106407405A (en) 2017-02-15
CN106407405B true CN106407405B (en) 2019-07-30

Family

ID=57997295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610841243.7A Active CN106407405B (en) 2016-09-22 2016-09-22 A kind of social intercourse system based on the search of love and marriage matching degree

Country Status (1)

Country Link
CN (1) CN106407405B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038217A (en) * 2017-03-15 2017-08-11 王悕锦 Love and marriage object matching method and device
CN106940870A (en) * 2017-03-22 2017-07-11 成都市互联互通大数据科技有限公司 A kind of method and its system for being used to carry out constructional enterprises information various dimensions combined retrieval
CN109002497B (en) * 2018-06-28 2022-02-01 王志添 Method and device for evaluating associated users based on group
CN109829118A (en) * 2018-12-24 2019-05-31 深圳市珍爱捷云信息技术有限公司 User identity code generating method, friend-making matching process, device and computer equipment
CN111435353A (en) * 2019-01-14 2020-07-21 上海会宜网络科技有限公司 System and method for intelligently pairing big data for making friends with each other in dimensionality
CN112073581A (en) * 2020-08-31 2020-12-11 李明铎 APP capable of enhancing and detecting emotion between lovers
CN113704633A (en) * 2021-07-29 2021-11-26 深圳市镜玩科技有限公司 Marriage and love pairing method, device, system and medium based on multidimensional three-view data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852126A (en) * 2005-10-14 2006-10-25 华为技术有限公司 Friend making system and method for using same
WO2007075842A3 (en) * 2005-12-19 2007-11-29 Bass Object Technologies Inc System and method for a dating game of love and marriage
CN102740221A (en) * 2011-04-06 2012-10-17 许先锋 Mobile phone intelligent friend-making system
CN103823798A (en) * 2012-11-16 2014-05-28 上海爱相随信息科技有限公司 Constellation information based dating platform member retrieval mode
CN103823800A (en) * 2012-11-16 2014-05-28 上海爱相随信息科技有限公司 Matching searching mode for love and marriage websites fused with blood type information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852126A (en) * 2005-10-14 2006-10-25 华为技术有限公司 Friend making system and method for using same
WO2007075842A3 (en) * 2005-12-19 2007-11-29 Bass Object Technologies Inc System and method for a dating game of love and marriage
CN102740221A (en) * 2011-04-06 2012-10-17 许先锋 Mobile phone intelligent friend-making system
CN103823798A (en) * 2012-11-16 2014-05-28 上海爱相随信息科技有限公司 Constellation information based dating platform member retrieval mode
CN103823800A (en) * 2012-11-16 2014-05-28 上海爱相随信息科技有限公司 Matching searching mode for love and marriage websites fused with blood type information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
一种基于协同过滤技术的在线交友推荐系统的设计与实现;李姣燕等;《电脑知识与技术(学术交流)》;20071008(第19期);第177页
交友类网站的分析与设计;杨金艳等;《电脑知识与技术》;20081215(第35期);第2126-2128页
基于网络营销思想的电子商务网站设计――以婚恋网站为例;李静等;《商业文化(学术版)》;20090725(第07期);第91页

Also Published As

Publication number Publication date
CN106407405A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN106407405B (en) A kind of social intercourse system based on the search of love and marriage matching degree
CN104102719B (en) The method for pushing and device of a kind of trace information
CN104391853B (en) POI recommends method, POI information processing method and server
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
KR101009830B1 (en) Compatibility scoring of users in a social network
CN104598557B (en) The method and apparatus of data rasterizing, user behavior analysis
CN102347963B (en) Method and device of recommending friends
CN107111651A (en) A kind of matching degree computational methods, device and user equipment
CN108711082A (en) Recommend method, apparatus, Server for catering and storage medium in dining room
Alsudais et al. We know where you are tweeting from: Assigning a type of place to tweets using natural language processing and random forests
US20160344818A1 (en) Systems and methods for multi-user anonymous communication
CN104537113B (en) Social networking system searching method
CN110209704B (en) User matching method and device
CN105989005A (en) Information pushing method and device
CN107426082A (en) A kind of public domain information sharing system and method
CN104111926A (en) Generation method and generation device for attention recommending list of address book
CN111949813A (en) Friend-making request method, friend-making request device, computer equipment and storage medium
CN111445317B (en) Online customer service method and system based on service group
CN108512891A (en) Data push method based on present position and background server
CN106897451A (en) A kind of social network platform system and intelligent social method based on patent information
CN109146737B (en) Intelligent interaction method and device based on examination platform
RU124504U1 (en) ACQUAINTANCE SYSTEM ON THE INTERNET
KR20110003236A (en) Face image indexing apparatus and method therefor
CN114168838A (en) Interest point online search ordering method and system and cloud search service platform
CN111163237A (en) Call service flow control method and related 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
GR01 Patent grant
GR01 Patent grant