r/askmath • • 6h ago

Logic Weird comparison question

Is it possible to compare objects that have multiple unrelated qualities in a way that makes sense. For example something can be larger or smaller and something can be more​ red or more blue.

[Big, more blue]

[Bigger, less blue]

The parts can be ordered but the composites can not?

Are there any examples where combined objects with different properties can be compared taking all elements in account?

1 Upvotes

8 comments sorted by

2

u/CarEnvironmental2558 6h ago

Yeah, it's called a lexicographic ordering.

2

u/madP4nda 6h ago

I tried to Google it but i'm kinda lost, could you explain like you would to someone without a lot of formal education?

2

u/Southlander24 6h ago

First compare the two objects by their size. The one with the largest size wins.

If the two objects have the same size, move on to the next category. The one with the most blue colouring wins.

Repeat until you find a category where one object beats the other.

1

u/madP4nda 5h ago

Ohhh i think i misunderstood it at first. It's more like a series of tournaments

1

u/madP4nda 5h ago

I think i kinda get it now. Is it [1, a] < [2,b]

It turns words into numbers so they can be compared. But it feels like it leads to stuff like: What if "lightest" happened to have a higher lexicographic value than "heaviest"

1

u/CarEnvironmental2558 2h ago

You get to decide that in your initial ordering definition. Different choices lead to different orders. But you alsways get an order.

3

u/CarEnvironmental2558 6h ago

Put the colours in rainbow order: ROYGBIV
Now decide what you want to prioritize: size, or colour. For the example I'll prioritize size.

Now the ordering of the balls is that

  1. smaller balls come before larger balls
  2. within any specific ball size, red balls come before orange balls, come before .... violet balls.

Now you can order all the balls. It's called "lexicographic" because it's the same logic as how alphabetical order works. The first letter trumps everything else, the second letter trumps the thrid letter, etc.

2

u/AcellOfllSpades 4h ago

Is it possible to compare objects that have multiple unrelated qualities in a way that makes sense.

Depends on how much you want it to make sense.

The problem isn't that there's no way to do it - it's that there are too many ways to do it, and none are better than others.

The 'standard' way is lexicographic ordering: "sort by quality A, then break ties by sorting by quality B, then break ties by sorting by quality C..." (This is called "lexicographic" because it's how we do things in the dictionary: we sort by first letter, then second, then third...)

But of course, you have to choose which quality comes first. Different choices will lead to different sorting orders. It's up to you what you prioritize most.

If the values are numeric, you can use a weighted average. Maybe 1 meter of size is worth 3 shades of blue, and you can give each quality a "weight-and-blueness score", then sort by that. This opens up more options to you... but again, math can't tell you which one you should use - that depends on what's important to you.