Re: Formula for counting cycles in complete graphs
- From: Gerry Myerson <gerry@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 May 2006 02:27:02 GMT
In article <1147376733.211088.74450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"jsher" <josh.sher@xxxxxxxxx> wrote:
Am I missing something? I may be mis-remembering definitions but I
thought
a. a complete graph is a graph where every vertex is connected to every
other vertex (is this correct?)
so
b. every subset forms a cycle
so
c. the number of subsets of size k out of a set of size n = n choose k
= n! / (k! * (n-k)!)
and the total number of subsets is
d. total subsets=total cycles (including "1 cycles")= 2^n
If you don't want to count 1 cycles or 2 cycles subtract them off:
2^n- n choose 2 - n choose 1=2^n-n(n-1)/2 -n
What you are missing is that for each subset there are many cycles,
e.g., for the subset {a, b, c} OP is counting a to b to c to a
as different from b to c to a to b, or b to a to c to b.
--
Gerry Myerson (gerry@xxxxxxxxxxxxxxx) (i -> u for email)
.
- References:
- Formula for counting cycles in complete graphs
- From: Joe Blow
- Re: Formula for counting cycles in complete graphs
- From: jsher
- Formula for counting cycles in complete graphs
- Prev by Date: M-Primary
- Next by Date: Re: Requirements for fluency when learning maths
- Previous by thread: Re: Formula for counting cycles in complete graphs
- Next by thread: Re: Formula for counting cycles in complete graphs
- Index(es):
Relevant Pages
|