3 votes 3 votes Find the lexicographic ordering of the bit strings given below based on the ordering $0<1$. $001$ $010$ $011$ $0001$ $0101$ Choose the correct answer from the options given below: $001 < 010 < 011 < 0001 < 0101$ $0001 < 001 < 010 < 0101 < 011$ $0001 < 0101 < 001 < 010 < 011$ $001 < 010 < 0001 < 0101 < 011$ Compiler Design ugcnetcse-oct2020-paper2 compiler-design + – go_editor asked Nov 20, 2020 • recategorized Nov 27, 2020 by Krithiga2101 go_editor 1.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
5 votes 5 votes Lexicographic ordering (or dictionary ordering) since 0<1 0 appears before 1 Right ans option B) 0001<001<010<0101<011 for better understanding replace 0 by A and 1 by B now arrange alphabetically AAAB<AAB<ABA<ABAB<ABB Sanjay Sharma answered Nov 24, 2020 Sanjay Sharma comment Share Follow See all 0 reply Please log in or register to add a comment.