Function for line segment configuration between dots

In summary, the number of configurations for lines connecting n dots, including no connections, can be calculated using the formula 2(d/2)(d-1), where d is the number of dots. This can be seen by observing that for each additional dot, there are d-1 new possibilities for a line to connect to, resulting in a total of 2(d/2)(d-1) configurations. This is a well-known result in graph theory and has been confirmed through various examples and calculations.
  • #1
Labyrinth
26
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
  • #2
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 Labyrinth
  • #3
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!
 
  • #5
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 Labyrinth
  • #6
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.
 
  • #7
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 Labyrinth

What is a function for line segment configuration between dots?

A function for line segment configuration between dots is a mathematical representation that defines the relationship between two points on a line. It is used to determine the length, slope, and other characteristics of the line segment connecting the two points.

How is the length of a line segment calculated using a function?

The length of a line segment can be calculated using the distance formula, which is derived from the Pythagorean theorem. The distance formula is: √[(x2-x1)^2 + (y2-y1)^2], where (x1,y1) and (x2,y2) are the coordinates of the two points on the line segment.

Can a function be used to find the slope of a line segment?

Yes, the slope of a line segment can be calculated using the slope formula, which is: (y2-y1)/(x2-x1), where (x1,y1) and (x2,y2) are the coordinates of the two points on the line segment.

How does a function for line segment configuration between dots differ from a linear equation?

A function for line segment configuration between dots is a specific type of function that is used to determine the characteristics of a line segment, while a linear equation is a general equation that represents a straight line. A linear equation can be used to represent any type of linear relationship, while a function for line segment configuration is specifically used for line segments.

What other characteristics of a line segment can be determined using a function?

In addition to length and slope, a function for line segment configuration can also be used to determine the midpoint of a line segment, the x and y intercepts, and whether the line segment is parallel or perpendicular to another line.

Similar threads

  • General Math
Replies
1
Views
724
Replies
3
Views
2K
Replies
0
Views
235
  • Quantum Physics
Replies
1
Views
910
Replies
7
Views
649
Replies
7
Views
1K
  • Quantum Physics
Replies
17
Views
1K
Replies
2
Views
632
Replies
14
Views
1K
Back
Top