Message Boards Message Boards

0
|
1857 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Matrices of higher or lower lexicographical order?

Posted 11 years ago
Hi everybody, I am writing to ask if anyone has any idea about the lexicographic order matrices, this is if I have the following matrices {{1,2,3}, {4,7,5}, {6,0,8}} and {{1, 2,3}, {4,5,0}, {6,7,8}} and {{1,0,3}, {4,2,5}, {6,7,8}} as knowing which has either higher or lower lexicographical order.

I hope someone has understood my question.
POSTED BY: Luis Ledesma
Are you looking for something like
In[3]:= Sort[ { {{1, 2, 3}, {4, 7, 5}, {6, 0, 8}}, {{1, 2, 3}, {4, 5,
    0}, {6, 7, 8}} , {{1, 0, 3}, {4, 2, 5}, {6, 7, 8}} }]

Out[3]= {{{1, 0, 3}, {4, 2, 5}, {6, 7, 8}}, {{1, 2, 3}, {4, 5, 0}, {6,
    7, 8}}, {{1, 2, 3}, {4, 7, 5}, {6, 0, 8}}}
In this case, numerical order and lexical order are the same.

The ordering procedure that Sort uses is described in the Details section of  ref/Sort .
POSTED BY: Bruce Miller
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract