java - Find duplicate value in large amount of data -


i must test application generate random keys. keys generated state of system. there 1,7668470647783843295832975007429e+72 states possible. state change pseudo random. how can find first duplicated value state of system?

i have made tries, i'm far of solution. use sqlite stock data because catch out of memory exception if try system memory. sqlite it's slow.. use sqlite text field (primary key) containing state of system.

i'm searching idea on how find first duplicated value generated system. you!

that's big enough state space guess unlikely run duplicated value, want avoid having store of intermediate values. i'd try based on 1 of two-pointer cycle detection algorithms: https://en.wikipedia.org/wiki/cycle_detection


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -