Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Help thinking about an alternate algorithm

by Limbic~Region (Chancellor)
on Jan 15, 2014 at 16:55 UTC ( [id://1070709]=note: print w/replies, xml ) Need Help??


in reply to Re: Help thinking about an alternate algorithm
in thread Help thinking about an alternate algorithm

BrowserUk,
I have already maximized the efficiency in determining the distance between two selections using bitmasks. As stated, I know that full cross comparison is necessary in some cases. I was just hoping that I could prune that full cross comparison in cases where I knew a compare couldn't lead to a higher distance than I already have. There is one trivial case where this short circuiting works (when 2 items are the maximum distance possible). I was hoping there might be others assuming the data will be mostly similar.

Cheers - L~R

  • Comment on Re^2: Help thinking about an alternate algorithm

Replies are listed 'Best First'.
Re^3: Help thinking about an alternate algorithm
by BrowserUk (Patriarch) on Jan 15, 2014 at 17:02 UTC
    There is one trivial case where this short circuiting works (when 2 items are the maximum distance possible).

    "two items"? Are items people? Or categories?

    What is the "maximum distance"? No categories the same. How can you know that until you have compared all categories for the given pair? What are you short circuiting?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1070709]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-19 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found