Function for line segment configuration between dots

Click For Summary
SUMMARY

The discussion centers on calculating the number of configurations for lines connecting n dots, revealing a sequence of configurations: 0, 0, 2, 8, 64, and 1024 for 0 to 5 dots respectively. The participant identifies that for n dots, the maximum number of lines is given by the formula 2(d/2)(d-1), leading to 2 raised to the power of the number of lines for configurations. The conversation references graph theory and suggests that the configurations grow exponentially with the number of dots, particularly noting that 6 dots yield 32,768 configurations.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with graph theory concepts
  • Basic knowledge of exponential functions
  • Ability to interpret mathematical sequences
NEXT STEPS
  • Research "combinatorial graph theory" for deeper insights into configurations of graphs
  • Study "exponential growth in combinatorial structures" to understand the implications of the configurations
  • Explore "OEIS sequences" to find similar mathematical sequences and their applications
  • Learn about "connected simple graphs" and their properties for practical applications in graph theory
USEFUL FOR

Mathematicians, computer scientists, and anyone interested in combinatorial configurations and graph theory applications will benefit from this discussion.

Labyrinth
Messages
26
Reaction score
0
If I have n dots, how many configurations exist for lines that connect them, including no connections?

For example, if I have 0, or 1 dots I believe this should be 0 since no connections are possible (or perhaps I should consider the single dot as having a single connection to itself?) If I have 2 dots, there would be two possibilities, one connection between the two, and zero connections.

To clarify what I mean, for three dots I counted 8: http://i.imgur.com/EHZLcYe.png

For four dots I counted 65, but I could be wrong as I was drawing them and this is error prone: http://imgur.com/Zw0JM0j
The final possibility used 6 lines.

I tried looking through various possibilities and renditions in OEIS, but nothing popped out.

I'm having trouble coming up with a function that returns such an odd sequence as 0,0,2,8,65. I'm hoping that I goofed, because 0,0,2,8,64 looks a lot more palpable.

Surely this function is known? Or something very similar?

Thank you for your time.
 
Mathematics news on Phys.org
0 dots: Well...
1 dot: There is 1 configuration: no lines.

4 dots: There are 6 possible lines, they all can be present or not (2 options each), for a total of 26=64 options.
Do you see the pattern?

In your image, the "N" pattern has a duplicate: second block, first column third row and second column fourth row.
 
  • Like
Likes   Reactions: Labyrinth
mfb said:
0 dots: Well...
1 dot: There is 1 configuration: no lines.

4 dots: There are 6 possible lines, they all can be present or not (2 options each), for a total of 26=64 options.
Do you see the pattern?

I'll just use zero for 0 dots.

0,1,2,8,64..

0,20,21, 23, 26..

I suppose 5 dots would have 8 lines to connect them all, so I should expect 2^8 configurations, if the function is 2^n where n is number of lines to connect all the dots. Now I need a function that gets n from a number of dots.

For two dots it was one line, three dots, 3 lines, four dots, 6 lines, 5 dots, 8 lines, 6 dots, 14 lines.

undefined,0,1,3,6,8,14 Ugh.

In your image, the "N" pattern has a duplicate: second block, first column third row and second column fourth row.

Thank goodness!
 
Labyrinth said:
I suppose 5 dots would have 8 lines to connect them all
Why 8? Compared to 4 dots (6 possible edges), you get 4 additional options for an edge - one for each of the original dots. 6+4=10.
 
  • Like
Likes   Reactions: Labyrinth
mfb said:
Why 8? Compared to 4 dots (6 possible edges), you get 4 additional options for an edge - one for each of the original dots. 6+4=10.

You are correct. I got the number wrong for 6 dots too, sigh. I believe it is 15.

So to make a chart:

dots max lines configurations (assuming 2^(maxlines))

0 undefined 0
1 0 1
2 1 2
3 3 8
4 6 64
5 10 1024
6 15 32768

It's hard to believe that 6 dots would have so many configurations.

So for d dots I get:

2(d/2)(d-1)

For zero dots I get one configuration this way, but oh well. Not all that important.

jim mcnamara said:

I came across that link when looking at this, but I didn't understand it and so wasn't even sure if it fit the problem I was trying to solve. Looking at it more carefully I see that it is quite relevant :-)

Assuming 2(d/2)(d-1) holds, I believe my question has been answered. Thanks for the help.
 
That is the right formula.
Labyrinth said:
For zero dots I get one configuration this way, but oh well. Not all that important.
I think that is a natural result. Same as for one dot, "no connections" is the unique configuration.
 
  • Like
Likes   Reactions: Labyrinth

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
0
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K