Question
Download Solution PDFFind the lexicographic ordering of the bit strings given below based on the ordering 0 < 1.
(A) 001
(B) 010
(C) 011
(D) 0001
(E) 0101
Choose the correct answer from the options given below:
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFThe correct answer is option 2
Explanation:
Lexicographic order is nothing but dictionary order.
To determine the order of strings, we need to compare each bit of all the strings one by one.
For example, take 001 and 010. Here, the second bits of the strings are 0, 1 respectively.
Since 0 < 1 as per the given question, 001<010.
Similarly, 0001 < 001 < 010 < 0101 < 011
Alternate Method
Replace 0 with A and 1 with B and follow dictionary order
AAAB<AAB<ABA<ABAB<ABB
Last updated on Jun 6, 2025
-> The UGC NET Exam Schedule 2025 for June has been released on its official website.
-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.
-> The UGC NET 2025 online application form submission closed on 12th May 2025.
-> The June 2025 Exam will be conducted from 21st June to 30th June 2025
-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.
-> The exam is conducted bi-annually - in June and December cycles.
-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions.
-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.