Giter VIP home page Giter VIP logo

rabinfingerprint's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rabinfingerprint's Issues

Different fingerprints for same document

I m trying to generate fingerprint for a string. Below is the code snippet

    String s = "quick brown";
    Polynomial polynomial = Polynomial.createIrreducible(53);
    RabinFingerprintLong rabin = new RabinFingerprintLong(polynomial);
    rabin.pushBytes(s.getBytes());
    System.out.println(rabin.getFingerprintLong());
    System.out.println(Long.toString(rabin.getFingerprintLong(), 16));

I am always seeing new values for the same string that i m trying to finger print.
I was planning to use the fingerprint for detecting duplicate documents. Not sure if the code is working as expected or i am missing any thing here?

pom file woknyness

the pom.xml file requires a lot of massaging to compile. might be worth updating.

No upper bound on time taken to createIrreducible call

A hard upper limit to the time required to produce a random irreducible polynomial would be a nice feature. Someone auditing the code would have some questions about the current trial-and-error approach. It does not need to be fast but it does need to have a fixed upper bound.

public static Polynomial createIrreducible(int degree)

problem with limit method

for (Long key : Iterables.limit(keys, fingersPerHand))
it is showing an error
The method limit is undefined for the type Iterables can you suggest any solution?

Depends on google guava

Since Guava is always in motion and there are many version conflicts in large enterprise environments it would be very cool if this dependency could be removed.

Maven repository

I'm using your lib in my project :) and I'm wondering if you want to put it on a maven repo so that it is easier to integrate in other projects?

Handprint.buildAll() seems wrong

Handprint.buildAll() calls getPalm(), getAllFingers() and getHandFingers() apparently to fully compute each. But getPalm() fully consumes the InputSteam and then getAllFingers() fully consumes the InputSteam (which was now empty) and getHandFingers() calls getAllFingers() which makes the buildAll() call to getAllFingers() redundant.

If I'm right about the above this also means attempting to get the "palm" or the "fingers" in this class is mutually exclusive which I find counter intuitive based on the API.

I am trying to understand Rabin Fingerprinting via your project but it seems to me this code is just not right.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.