What is lexicographical order?

2019-01-26 19:13发布

What is the exact meaning of lexicographical order? How it is different from alphabetical order?

1条回答
女痞
2楼-- · 2019-01-26 20:15

lexicographical order is alphabetical order. The other type is numerical ordering. Consider the following values,

1, 10, 2

Those values are in lexicographical order. 10 comes after 2 in numerical order, but 10 comes before 2 in "alphabetical" order.

查看更多
登录 后发表回答