edited by
178 views
8 votes
8 votes

Let $A=\{0,1\} \times\{0,1\}$ and $B=\{a, b, c\}$. Suppose $A$ is listed in lexicographic order based on $0<1$ and $B$ is in alphabetic order. If $A \times B \times A$ is listed in lexicographic order, then the next element after $((1,0), c,(1,1))$ is

  1. $((1,0), a,(0,0))$
  2. $((1,1), c,(0,0))$
  3. $((1,1), a,(0,0))$
  4. $((1,1), a,(1,1))$
edited by

1 Answer

5 votes
5 votes
We can quickly find by eliminate the incorrect ones.

Option A) is incorrect as it is lexicographically smaller than ((1,0),c,(1,1)) so can't come next

Now, all remaining are lexicographically greater than ((1,0),c,(1,1)) and so are possible candidates for next element. Here the thing to realize is that the next element must be smallest of all possible next candidates because if it wasn't then it cannot create the lexicographic order.

So we find the smallest of candidates from option b,c,d is option C) ((1,1),a,(0,0))
Answer:

Related questions

1 votes
1 votes
0 answers
4