ac812 / mcb-python

Master repository for MCB
https://ac812.github.io/mcb-python/
1 stars 0 forks source link

add hash table #11

Open ac812 opened 11 months ago

ac812 commented 11 months ago

Notes from Anton:

1) Some simple basics about data-structures - What’s the difference between a hash and an array, etc. In particular the overheads around using certain data structures over others.

We do a lot of dynamic programming in my practicals so while 1 hash table lookup might be fine in a regular script and make absolutely no difference, if you are traversing a matrix with millions of entries the overhead quickly builds up to the point where the code is running much much slower.

In my practicals, we managed to get some code running significantly faster by using integer lookups of an integer matrix instead of hash table lookups. But they seemed very unfamiliar with these things.