1,263 karma · joined September 5, 2009
I absolutly recommend it. There is also a comics that tell his grand father, his father story and himself that tells a lot of what a war is and also tells a little bit of the making of PoP.
The trick is that you make sure that your table is large enough to not have a lot of collisions, then if you have a collision instead of storing exactly in the bucket given by the hash, you store it in the next available bucket. When you look for a key, you get the hash, then the index from the hash, and you start searching at this point. If you reach an empty value, then there is no value. If you find the value then you return that. So everything is stored in a single array, no need for extra allocations and it is better for cache locality.
The same principle is used here for very minimal hash table (13 lines): https://nullprogram.com/blog/2020/10/19/
This video also talk about how to optimize hash table and look into several implementations: https://www.youtube.com/watch?v=DMQ_HcNSOAI&t=1690s&ab_chann... . It talks about techniques used by advanced hash table. There was a lot more that I didn't know.
We need energy, but people as dismissing every source of energy because they are looking at each source one at a time. We should have taught people years ago that there is no perfect choice.
dog => mammal (dog implies mammal )
What can we say about not a dog ? (can be a cat, or a chair... ) What can we say about not a mammal ? (can be a chair, building... )
It's more intuitive because we as human understand the groups.
However, I think the real value in double entry accounting is that it not only represent money you have but also things you own: If you buy a pen, you have less money, but you have an extra furniture pen and your accounting can reflect that. It can also reflect the loss of value of the pen over time.
It is also useful if you get in debt to buy something: you transfer money from a debt account to your current account, you buy the thing you wanted to buy and appropriatly report the value of what you own in accounting. You now have a thing, and a debt to be repaid in whatever term was agreed.
It's also very useful as a tool of control for state. All exchanges you have with other entities are recorded in a separate account. It's possible to take that account and check that the other entity accounting book match exchanges they have with you.
This might be what you want : https://www.agner.org/optimize/#manuals
However, I just marvel at word2vec when I stumbled upon it. Encoding of meaning as vector dimensions was mind expanding for me.