$$a_k = \begin{cases} 1 & \text{if the}~k\text{th digit of}~f(k)~\text{is}~ 0\\ 0 & \text{otherwise} \end{cases}.$$
Problem: You are a consultant for a friend designing a new video-game. Every player in the game is assigned a unique ID which is a binary string with 3 digits. Currently only the following three IDs have been assigned to players: 000, 001 and 010.
Apply Cantor’s Diagonalization argument to get an ID for a 4th player that is different from the three IDs already used.
I can't wrap my head around this problem. So, the point of Cantor's argument is that there is no matching pair of an element in the domain with an element in the codomain. His argument shows values of the codomain produced in a diagonal fashion producing unique values.
How do I solve this problem? Can someone please provide an answer with an explanation?
Arrange the three IDs already used in this order
Now choose the next ID
xyzso that you can be sure its first placexis different from the first place inA. (There is only one way to do that!). Now chooseyso that the new ID is surely notB. And then the same forz.Extra note. This is a good way to understand Cantor's diagonal process but a terrible way to assign IDs. Can you see why you can't use this strategy to make an ID now for a fifth player? A better way is to think of these IDs as binary numbers.