The design idea of vertical search engine sort algorithm under supervision

Source: Internet
Author: User
Tags sort

This article is written a long time ago, just turned over the hard drive, and now put it out. This is just a formal idea, temporarily no time to implement, I have simply verified the formal process, the temporary has not found a problem, but do not guarantee that the process is not a problem. If you find a problem, please correct me, thank you!

In the field of vertical search, there is no standard for judging the result of ranking, so the role of supervisor is introduced, and the algorithm is designed so as to close the order result of the search engine.

1 experts were introduced as supervisors S. s select Keyword K. Input k, retrieve m strip result, then randomly select n result in M bar result, get sequence sr={r0, R1,......, rn-1}.

s according to experience, the n results are sorted. The sequence s={......,si,j,......}, wherein the pin I of Si,j represents the position of Si,j in the source sequence sR , and J represents the sequence si,j the position in Ss . such as S4,2 represents this task in the source sequence corresponding to R4, in the new sequence s in the 3rd (the foot mark is 2, but because the element foot is starting from 0, so row 3rd position.) )。

Defines the position of the function Φs(RJ) as R J in the sequence s. Assuming the sequences ={s5,0, S2,1,......, s74,312}, there is ΦS(R5) = 0; ΦS(R2) = 1; ΦS (R) = 312;

So that x is a sort algorithm, x pairs sequence sR sort Get sequence sx. Φx (RJ) is the position of RJ in the sequence sx .

The order (rm, RN) is a combined sequence of different elements in Sr . These sequences make up the collection:

C = {(Rm, Rn) | m≠n, Rm∈sR, rN∈sr }.

make Ωx(RM, Rn) =-sign (Φx(Rm)-φx(rN)).

which

Ωx(RM, RN) >0 means that the sort algorithm X ranks RM in front of RN .

Make ex,s,r A set of sequences in C that are inconsistent with the results of the X sort and the S order:

EX,s,r= {(Rm, RN) | (RM, RN) ∈c,ωX(rM, RN) ≠ωS(rm, R N) )}.

The order λ(RM,RN) is a cost function inconsistent with the results of the order x and the order of S, using the following cost function:

λ(rm,rn)=|m-n|

Make the total cost Λ (E x,s,r)=σλ (RM,RN), (RM, RN) ∈ex,s,r

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.