AIAndrea Iaconoinandreaiacono.hashnode.dev·May 6, 2025 · 24 min readCognitive Science based Software EngineeringHave you ever wondered why some code is easier to understand than others? Or why you can remember complex notions like design patterns or algorithms but struggle to recall an arbitrary sequence of numbers? The answers lie in cognitive science, the in...00
AIAndrea Iaconoinandreaiacono.hashnode.dev·Feb 2, 2024 · 8 min readIntroduction to HyperLogLogCalculating the exact number of distinct items in a collection can be a difficult task if the collection is very large or if you have a very limited amount of memory. Typical approaches can be: using a hash map (uses more memory) using a bit map (u...00
AIAndrea Iaconoinandreaiacono.hashnode.dev·Mar 29, 2020 · 19 min readAbout RecursionRecursion — according to Wikipedia — is: “something that occurs when a thing is defined in terms of itself or of its type” A nice visual example of recursion is when you look at your screen while sharing it via VNC, like in the image above in which...00
AIAndrea Iaconoinandreaiacono.hashnode.dev·Oct 7, 2017 · 7 min readBacktracking explainedBacktracking is one of my favorite algorithms because of its simplicity and elegance; it doesn’t always have great performance, but the branch-cutting part is really exciting and gives you an idea of the progress in performance while you code. But le...00