Ranking assigns each object in a finite ordered combinatorial family its zero-based position, giving a bijection with consecutive nonnegative integers. Its inverse is unranking. For an -element subset of , its rank in colexicographic order is
This is the combinatorial number system, with when . All ranks from to occur exactly once.
For two-element subsets, colexicographic order begins . Their ranks are . In particular, has rank . The binomial sum counts all preceding subsets by the largest element where they differ. Ranking turns structured objects into compact array indices and permits uniform sampling by drawing a uniform rank and applying unranking.

Articles by others on the same topic (0)

There are currently no matching articles.