The title intrigued me: "Nearly All Binary Searches and Mergesorts are Broken". Heart racing. Pupils dilated. What did they find? int overflow. Phhh...
#cs #algorithm #bug
#cs #algorithm #bug
research.google
Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are
Posted by Joshua Bloch, Software EngineerI remember vividly Jon Bentley's first Algorithms lecture at CMU, where he asked all of us incoming Ph.D. ...
I know that many of you do stuff like Advent of Code. Many others (me, for example) are too busy lazy for this stuff. Well, Peter Norvig (Research Director at Google) is not that case, so he has this cool repo full of ipynb's with problems, solutions, nice graphs and illustrations. And you'll find much more than just AoC there!
#contest #cs #repository
#contest #cs #repository
GitHub
pytudes/ipynb/Advent-2022.ipynb at main · norvig/pytudes
Python programs, usually short, of considerable difficulty, to perfect particular skills. - norvig/pytudes
More from Vitalik. There's this interesting data structure: Merkle tree. The post is about Verkle trees. Similar thing, but with much more compact proofs.
#datastructure #crypto #cs
#datastructure #crypto #cs
An interesting example of what's possible with modern compilers. The post is about Dafny lang, it can prove or disprove in compile time certain assertions we add to our code.
#compiler #language #cs
#compiler #language #cs
An explanation of bloom filters. This data structure allows to check if a value is in a set with constant time and small memory overhead. Subject to false positives though.
#cs #datastructure
#cs #datastructure
Men^W Humans will literally do anything instead of going to therapy. FLAT ORIGAMI IS TURING COMPLETE. Don't try to fully comprehend the paper, your sanity is much more important, just enjoy the little pieces.
#science #math #cs
#science #math #cs
CRDT series continues. There won't be more details on the algorithm itself, but there will be a post on how to build a toy pixel art editor with it and a post with various strange optimizations for the amount of data transferred.
#cs #network #datastructure
#cs #network #datastructure