0

I have a set of four numbers.

A = {10, 8, 11, 2}

I have to find the rank of a number in the above set. Please help me in writing a suitable mathematical equation for finding the rank of a given number.

for ex: rank of 8 in the above array is '2'. rank of 11 is '4'.

Thanks Sincerely, Ram.

Ram
  • 1
  • I am assuming by your examples that rank is the number of elements in the set that are smaller or equal to a given number – User666x Nov 03 '15 at 12:04
  • Not exactly. I'm sorry for not providing clear info. My idea is finding the – Ram Nov 03 '15 at 12:06
  • Not exactly. I have to find the order of the number. As shown in the example, rank of '2' is 1. Terms I used here do not reflect the actual mathematical meaning. – Ram Nov 03 '15 at 12:13
  • According to @User666x way of defining the rank function, the rank of '2' is 1. So If this definition is not correct, Ram, then please provide a more elaborate example or a detailed definition of what you want the "rank" or "order" function to be. – Ove Ahlman Nov 03 '15 at 12:22
  • Can you tell the number as a specific formula for rank doesnt exist. – Archis Welankar Nov 03 '15 at 12:24
  • OK I think I understand. Then the set I provided you should give this answer, if you talk about the order of elements in the set from smallest to biggest – User666x Nov 03 '15 at 12:26

1 Answers1

0

Let $a\in A$. Then $Rank(a)=|\{b\in A: b\leq a\}|$ where |.| is the number or cardinality of elements in the set.

User666x
  • 844