Encoding unit — one grounded idea

1 The Hilbert Hotel can accommodate an infinite number of infinite buses, each with infinitely many people, by assigning each person a unique identifier based on their bus and seat and mapping them via a diagonal zigzag traversal of an infinite grid.
“You make a row for each bus, bus 1 bus 2 bus 3 and so on. And a row at the top for all the people who are already in the hotel. The columns are for the position each person occupies. So each person gets a unique identifier which is a combination of their vehicle and their position in it. So how do you assign the rooms? Well start in the top left corner and draw a line that zigzags back and forth across the spreadsheet, going over each unique ID exactly once. Then imagine you pull on the opposite ends of this line, straightening it out. So we've gone from an infinite by infinite grid, to a single infinite line. It's then pretty simple just to line up each person on that line with a unique room in the hotel.”
spoken · 128s · 2021-05-10 · Veritasium · How An Infinite Hotel Ran Out Of Room
id: 733b92971c83fcd1
concepts in this idea