Filtering for Similar Periodical Titles
One problem that we have encountered is the same periodical listed in different databases with slightly different names. I thought of a way to help find these periodicals, but it is very costly in terms of execution time.
There is a PHP function similar_text() which compares two strings and returns a value for how close the two strings are. The function has a high cost of O(n^3) (where n is the length of the longest string). The other huge performance cost is to effectively perform this search for similar titles; the entire list of periodical titles must be processed. This is a O(n^2) (where n is the number of periodicals) operation. With roughly 10000 periodical in the out test database, this is a 100,000,000 operation process which took around 20 mins on our test server.
Is this a feature that should be persuaded more? Maybe added into the Batch Add / Update? Or a separate page?
0 Comments:
Post a Comment
<< Home