Skip to main content
Skip to current response

Hilbert's Grand Hotel Paradox

Starting question

Hilbert's Grand Hotel Paradox

Then AI response Simple level

Hilbert's Grand Hotel Paradox

No source links recorded for this answer.

## The Paradox of Infinite Rooms Hilbert's Grand Hotel is a thought experiment created by mathematician David Hilbert to illustrate the counterintuitive properties of actual infinity. The paradox asks us to imagine a hotel with a countably infinite number of rooms, numbered 1, 2, 3, and so on, where every single room is currently occupied. Even though the hotel is completely full, a new guest arrives asking for a room. In a finite hotel, this request would be impossible to fulfill without evicting someone. In Hilbert's hotel, however, the desk clerk simply moves the guest in room 1 to room 2, the guest in room 2 to room 3, and so on, shifting every existing guest $n$ to room $n + 1$. This leaves room 1 empty for the new arrival, demonstrating that an infinite set can be put into a one-to-one correspondence with a proper subset of itself—a defining characteristic of infinite sets formalized by mathematician Georg Cantor. ## Managing Infinity The central mechanism that makes this possible is countable infinity (denoted by the symbol $\aleph_0$). Unlike finite numbers, an infinite collection does not shrink in magnitude when you remove elements, nor does it fail to accommodate additions. The paradox scales to more extreme scenarios. If a countably infinite number of new guests arrive all at once, the clerk can still accommodate them: every current guest in room $n$ is moved to room $2n$ (the even-numbered rooms), leaving all the odd-numbered rooms vacant for the infinite wave of newcomers. ## State of Knowledge and Limitations As a mathematical concept, the behavior of infinite sets is rigorously established within standard set theory (specifically Zermelo-Fraenkel set theory with the Axiom of Choice). There is no empirical uncertainty here, because Hilbert's hotel is a purely conceptual tool rather than a physical possibility. The primary limitation lies in applying these mathematical rules to the physical universe. Modern physics and cosmology provide no evidence that actual physical infinities exist in nature; quantities like mass, volume, and the number of particles in the observable universe are vast but finite. Consequently, Hilbert's hotel remains a brilliant logical illustration of abstract mathematics rather than a description of physical reality. ## Follow-up questions 1. How does the mathematical definition of a countably infinite set differ from an uncountably infinite set like the real numbers? 2. How would the desk clerk accommodate an infinitely countable number of buses, each carrying an infinitely countable number of new guests? 3. What physical constraints prevent a Hilbert's Grand Hotel from being constructed in our universe?
Question · @LiviaZavtur

how could the desk clerk solve the infinite buses problem using a 2D grid matrix or Cantor's pairing function instead of prime exponents?

Question · @LiviaZavtur

How does the diagonal zigzag method extend to higher dimensions, such as mapping an infinite hierarchy of infinite fleets carrying infinite buses?

Question · @LiviaZavtur

rom an algorithmic perspective, how does the time complexity of looking up a guest's room number differ between the prime factorization method and Cantor's diagonal mapping?

Then AI response Simple level

Algorithmic Complexity of Guest Lookups in Hilbert's Hotel

No source links recorded for this answer.

## The Hotel Booking Mappings To manage infinite guests arriving by buses or in multi-dimensional scenarios, mathematicians use mapping functions to assign every guest a unique room number without overlaps. Two common approaches for handling an infinite grid of guests (such as an infinite number of buses, each with an infinite number of passengers) are prime factorization and Cantor's diagonal pairing. From an algorithmic perspective, these two methods differ radically in how much computational effort is required to look up a guest's room number or reverse the process to find out which bus and seat a guest came from. ## Time Complexity Comparison Time complexity describes how the computational steps scale as the input values grow. In this context, the input consists of the bus number ($x$) and the passenger's seat number on that bus ($y$). * **Prime Factorization Mapping:** This method assigns each guest a room number using unique prime numbers, such as $2^x \times 3^y$. To find the room number, the algorithm multiplies numbers together, which is computationally fast. However, **reversing** the lookup—determining a guest's original bus and seat from a massive room number—requires prime factorization. Integer factorization is notoriously resource-intensive; as numbers grow large, the time required to find the prime factors grows exponentially relative to the number of digits. * **Cantor's Diagonal Mapping:** This method traces a zigzag path across a grid of buses and seats, assigning room numbers sequentially based on coordinate pairs. Both the forward assignment and the reverse lookup rely on basic arithmetic operations (addition, subtraction, multiplication, and division). Consequently, the time complexity is polynomial (specifically $O(1)$ or constant time, or $O(n^2)$ depending on how the coordinates are indexed), meaning lookups remain computationally trivial even for infinitely large room numbers. ## Summary of the Distinction While both methods successfully map a two-dimensional infinity into a one-dimesional line of rooms, **prime factorization** hides a severe computational bottleneck in the reverse lookup due to the difficulty of factoring large integers. **Cantor's mapping** avoids this by using direct coordinate geometry, making both directions of the lookup computationally efficient.

Continue this thread

This path ends here for now.

Sign in or create an account to continue the discussion.

Continue your thinking

Anyone can read this grid. Sign in to ask questions, post thoughts and use the thinking tools.

Other paths you could read

Earlier, at How does the diagonal zigzag method extend to higher dimensions, such as mapping..., the conversation split. If this is not the thread you want, you can switch to the other path below.

Grid history

How this grid was built

Follow the questions, contributions, and edits that shaped this grid, and meet the people behind them.

This grid began

LiviaZavtur

Created

Hilbert's Grand Hotel Paradox

This grid’s history will appear here as people ask questions, add ideas, and make edits.

More

Your reading

Reading options

This grid

Sign in to follow this grid
Download

Download your grid

Translate this idea

Read the selected idea in another language

Highlights

0 saved passages and connected ideas

No highlights yet

Select text to save it here.