[G8] BFS layers in a graph of bitstrings (2 pts) [00MU]

Consider the family of undirected graphs \mathcal {H}_k defined as follows. \mathcal {H}_k has 2^k vertices labelled with the integers 0 through 2^k - 1. Vertices u and v are connected by an edge if and only if the binary representations of u and v differ in exactly one bit position. For example, in \mathcal {H}_4, the vertices 5 and 13 are connected by an edge since 5 = 0101_2 and 13 = 1101_2 differ in the first bit position, but the rest of the bits are the same.

Consider doing a BFS in \mathcal {H}_{10} starting at node 0. How many vertices are in L_6, that is, the sixth layer generated by the BFS? Give your answer together with either a proof, or the program you used to calculate the answer. Either approach will receive full credit. (Hint if you choose to write a program: to flip the jth bit of an integer n, you can use n ^ (1 << j), that is, the bitwise XOR of n with the result of shifting 1 left j times, that is, 2^{\texttt {j}}. These operators are valid in many languages such as Java, Python, and C/C++.)