The best Hacker News stories from All from the past day

Go back

Latest posts:

Embed is in C23

A clip from Stray got me banned from Twitter

Google fires engineer who called its AI sentient

Spain will introduce free train travel

More invested in nuclear fusion in last 12 months than past decade

More invested in nuclear fusion in last 12 months than past decade

Two containers with same number detected in Chittagong port

Two containers with same number detected in Chittagong port

Airbnb will up its penalty for hosts who cancel last-minute from $100 to $1k

Cheap junk flooding Amazon has brand names like MOFFBUZW

Cheap junk flooding Amazon has brand names like MOFFBUZW

We're going to need a lot of solar panels

We're going to need a lot of solar panels

Ask HN: What are some cool but obscure data structures you know about?

I'm very interested in what types of interesting data structures are out there HN. Totally your preference.<p>I'll start: bloom filters. Lets you test if a value is definitely NOT in a list of pre-stored values (or POSSIBLY in a list - with adjustable probability that influences storage of the values.)<p>Good use-case: routing. Say you have a list of 1 million IPs that are black listed. A trivial algorithm would be to compare every element of the set with a given IP. The time complexity grows with the number of elements. Not so with a bloom filter! A bloom filter is one of the few data structures whose time complexity does not grow with the number of elements due to the 'keys' not needing to be stored ('search' and 'insert' is based on the number of hash functions.)<p>Bonus section: Golomb Coded Sets are similar to bloom filters but the storage space is much smaller. Worse performance though.

Ask HN: What are some cool but obscure data structures you know about?

I'm very interested in what types of interesting data structures are out there HN. Totally your preference.<p>I'll start: bloom filters. Lets you test if a value is definitely NOT in a list of pre-stored values (or POSSIBLY in a list - with adjustable probability that influences storage of the values.)<p>Good use-case: routing. Say you have a list of 1 million IPs that are black listed. A trivial algorithm would be to compare every element of the set with a given IP. The time complexity grows with the number of elements. Not so with a bloom filter! A bloom filter is one of the few data structures whose time complexity does not grow with the number of elements due to the 'keys' not needing to be stored ('search' and 'insert' is based on the number of hash functions.)<p>Bonus section: Golomb Coded Sets are similar to bloom filters but the storage space is much smaller. Worse performance though.

Potential fabrication in research threatens the amyloid theory of Alzheimer’s

Potential fabrication in research threatens the amyloid theory of Alzheimer’s

Hertz paid Accenture $32M for a website that never went live (2019)

Hertz paid Accenture $32M for a website that never went live (2019)

Former Coinbase PM charged in cryptocurrency insider trading tipping scheme

< 1 2 3 ... 499 500 501 502 503 ... 788 789 790 >