Score:0

Why do the first two digits of the hash table not collide within CRC32?

mv flag

In this Python CRC32 table look-up method, the polynomial is 0x104c11db7.

I can understand that the generated table does not collide. After all, as long as the start and end of the polynomial binary are 1, then the hash obtained by different raw data is different.

But why do the first two bits of the hash table not collide?

The first four digits of the polynomial are 0x04c1, and the binary end of 04 is not 1. It stands to reason that the first two digits of the hash table should collide.

fgrieu avatar
ng flag
Note that "uses" is not the same as "is": the actual polynomial has degree 32. Independently "the generated table" depends heavily on the method used to compute the CRC, which is unclear in the question. I see no reason to remove the high-order bit. Additionally "the binary end of 04" is not exactly well-defined (for a start, which end?)
quxinna avatar
mv flag
the crc32 poly made from pi so no collide
D.W. avatar
fr flag
What do you mean by "generated table does not collide"? What is the definition of "generated table" in this context, and what is the definition of what it means for to collide or not collide? I suggest clarifying all of these points; and I suggest deleting the copy here and asking on CS.SE (but make sure you clarify all of these points before asking, otherwise I expect it might just be closed as unclear on CS.SE).
quxinna avatar
mv flag
like pi from japanese flag,generated table is no collide.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.