Top "Lexicographic" questions

lexicographic or lexicographical order is a generalization of the way the alphabetical order of words is based on the alphabetical order of their component letters.

Lexicographically sort C#

I have this code for sorting strings: class Program { static void Main() { int x = Convert.ToInt32(Console.ReadLine()); List<…

c# sorting lexicographic
Algorithm to print all combination of letters of the given string in lexicographical order

I tried to create the code to generate all possible combination of the given string in the lexicographical order: The …

c++ string combinations powerset lexicographic
operator< comparing multiple fields

I have the following operator< that is supposed to sort first by a value, then by another value: inline …

c++ comparison-operators lexicographic
sort array of integers lexicographically C++

I want to sort a large array of integers (say 1 millon elements) lexicographically. Example: input [] = { 100, 21 , 22 , 99 , 1 , 927 } sorted[] = { 1 , 100, 21 , 22 , 927, 99 } I have done it …

c++ arrays sorting lexicographic
How do I sort a collection of Lists in lexicographic order in Scala?

If A has the Ordered[A] trait, I'd like to be able to have code that works like this val …

sorting scala html-lists lexicographic
Does Java String.getBytes("UTF-8") preserve lexicograhpical order?

If I have a lexicographical sorted list of Java Strings [s1,s2,s3,s4, ...., sn], and then convert each String …

java sorting utf-8 arrays lexicographic