Remix.run Logo
Python sets and dictionaries can have quadratic-time performance(lemire.me)
12 points by ibobev 20 hours ago | 3 comments
javcasas 18 hours ago | parent | next [-]

Java's HashMap also has O(log(N)) complexity on hash collision, and that is before memory/cache details.

https://docs.oracle.com/javase/8/docs/api/java/util/HashMap....

In fact, some studying on data structures probably leads to the conclusion that it is impossible to guarantee that an unbounded set/map to have access performance under O(log(N)).

19 hours ago | parent | prev | next [-]
[deleted]
0xa2 19 hours ago | parent | prev [-]

The map is not the territory.