What is lexicographical order?

旧巷老猫 提交于 2019-11-26 21:15:39

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/45950646/what-is-lexicographical-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!