Top "Collision" questions

Likelihood of collision using most significant bits of a UUID in Java

If I'm using Long uuid = UUID.randomUUID().getMostSignificantBits() how likely is it to get a collision. It cuts off the …

java collision uuid
What is a good 64bit hash function in Java for textual strings?

I'm looking for a hash function that: Hashes textual strings well (e.g. few collisions) Is written in Java, and …

java string hash 64-bit collision
Error: taking address of temporary [-fpermissive]

I've been looking into this for a few hours, to no avail. Basically I have struct rectangle { int x, y, …

c++ collision-detection collision allegro
Is it safe to assume a GUID will always be unique?

I know there is a minute possibility of a clash but if I generated a batch of 1000 GUIDs (for example), …

math unique guid probability collision
Probability of collision when using a 32 bit hash

I have a 10 character string key field in a database. I've used CRC32 to hash this field but I'm worry …

algorithm hash collision probability crc
How to deal with symbol collisions between statically linked libraries?

One of the most important rules and best practices when writing a library, is putting all symbols of the library …

c static libraries collision symbols
Efficient (and well explained) implementation of a Quadtree for 2D collision detection

I've been working on adding a Quadtree to a program that I'm writing, and I can't help but notice that …

data-structures collision rectangles quadtree
Java collision detection between two Shape objects?

I would like to know the best way to tell if a Shape object intersects another shape. Currently I have …

java 2d collision shape intersection
Quadtree for 2D collision detection

I'm trying to use a quadtree for 2D collision detection, but I'm a little stumped on how to implement it. …

data-structures collision game-physics quadtree
Algorithm for Gift Card Codes

I recently posted this question about codes for a gift-card-like voucher that users can redeem online. I wanted to find …

algorithm collision