What is the Expected Number of Cycles in a Random Function?

  • Context: Graduate 
  • Thread starter Thread starter Dragonfall
  • Start date Start date
  • Tags Tags
    Cycles Function Random
Click For Summary

Discussion Overview

The discussion revolves around the expected number of cycles in a randomly chosen length-preserving bijection on n-bits. Participants explore the mathematical implications of permutations and cycle structures within finite sets.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant asks about the expected number of cycles in a random bijection on n-bits.
  • Another participant interprets the question as finding the expected cardinality of elements that return to their original position under repeated application of a permutation, suggesting the answer is |X| based on LaGrange's theorem.
  • The original poster clarifies that they are interested in the expected number of distinct cycles, not the number of elements in cycles, and proposes that this is related to the n-th harmonic number.
  • A later reply reiterates the clarification about counting equivalent classes defined by cycles and provides a formula involving the harmonic number.

Areas of Agreement / Disagreement

Participants do not appear to reach consensus on the interpretation of the original question, with differing views on whether the focus is on the number of elements in cycles or the number of distinct cycles.

Contextual Notes

The discussion includes assumptions about the properties of permutations and the definitions of cycles, which may not be fully resolved. The mathematical steps leading to the harmonic number are referenced but not elaborated upon.

Who May Find This Useful

Readers interested in combinatorial mathematics, group theory, or the properties of random permutations may find this discussion relevant.

Dragonfall
Messages
1,023
Reaction score
5
Given a length preserving bijection on n-bits uniformly at random, what is the expected number of cycles? Cycles being f(f(...f(x)...)) = x
 
Physics news on Phys.org
If I understand correctly, you have a finite set X, and a group S of permutations on X, and you want to find the expected cardinality of the set \{x\in X: \enspace \exists k\in\mathbb N \text{ with } f^k(x)=x\}, when f\in S is chosen randomly. Is this correct?

If so, then the answer is |X|. By LaGrange's theorem for finite groups, f^{|S|}=\text{id}_X (which has every x\in X as a fixed point) for every f\in S.
 
No I'm asking for the expected number of such cycles, not the number of elements that are part of a cycle (which is obviously |X|).

In other words, define equivalent classes on X such that two elements are equal if they are part of the same cycle. How many such classes are expected when f is chosen uniformly at random?
 
Dragonfall said:
No I'm asking for the expected number of such cycles, not the number of elements that are part of a cycle (which is obviously |X|).

In other words, define equivalent classes on X such that two elements are equal if they are part of the same cycle. How many such classes are expected when f is chosen uniformly at random?

It's equal to

\sum_{i=1}^{n} \frac {1}{n} also known as the n-th harmonic number. See:

http://www.cs.berkeley.edu/~jfc/cs174/lecs/lec2/lec2.pdf

at the bottom of page 3.
 
Nice, thanks.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
489
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
Replies
15
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
855
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K