How Many Regions and Convexity with n Straight Lines on a Plane?

  • Thread starter matrixone
  • Start date
  • Tags
    produced
In summary, given a plane with n straight lines that are not parallel, the plane will be divided into several connected components called regions when the lines are removed. A region is said to be convex if it contains the entire line segment connecting any two points within the region. The question asks which of the following statements is true: A) O(n) regions are produced, and each region is convex. B) O(n2) regions are produced but they need not all be convex. C) O(n2) regions are produced, and each region is convex. D) O(nlogn) regions are produced, but they need not all be convex. E) All regions are convex but there may be exponentially many of them. The answer
  • #1
matrixone
28
2

Homework Statement


Suppose n straight lines are drawn on a plane. When these lines are removed, the plane falls apart into several connected components called regions.A region R is is said to be convex if it has the following property: whenever two points are in R, then the entire line segment joining them is in R.Suppose no two of the n lines are parallel. Which of the following is true?
A) O(n) regions are produced, and each region is convex.
B) O(n2) regions are produced but they need not all be convex.
C) O(n2) regions are produced, and each region is convex.
D) O(nlogn) regions are produced, but they need not all be convex.
E) All regions are convex but there may be exponentially many of them.

Homework Equations

The Attempt at a Solution



Someone please explain what we have to start with , i.e what is there in the plane before those straight lines ?

 
Physics news on Phys.org
  • #2
matrixone said:
Someone please explain what we have to start with , i.e what is there in the plane before those straight lines ?
There is nothing in the plane.

Here is an example of the plane with two lines (imagine the lines being extended to infinity)

straight_line_example.png


How many different regions do you find?
 
  • #3
mfb said:
There is nothing in the plane.

Here is an example of the plane with two lines (imagine the lines being extended to infinity)

straight_line_example.png


How many different regions do you find?

I find 4 regions. Sir, but it is mentioned that the regions are formed after removing the lines. This is what confuses me. and the region have "connected components" what is there to connect if the lines are gone ?
 
  • #4
matrixone said:
When these lines are removed, the plane falls apart into several connected components called regions.
I don't understand this either. I read the first part, "When these lines are removed," to mean that the lines are like cutting a piece of paper with a pair of scissors. If the cuts are parallel, the paper is divided into three pieces. If the cuts are not parallel, you get four pieces. (I'm assuming that paper is large enough to include the point of intersection of the two lines/cuts.)

The part about the parts being "connected components" is unclear. I believe what the write is trying to convey is that each piece is connected to itself, with no region consisting of two unconnected parts. I don't see how any piece could be connected to any other.
 
  • #5
The set of all points of the plane minus the points of the lines has different regions - four in the example above.
"Connected" refers to the points within such a region, not between regions.

The phrasing is a bit odd.
 
  • #6
mfb said:
The set of all points of the plane minus the points of the lines has different regions - four in the example above.
"Connected" refers to the points within such a region, not between regions.

The phrasing is a bit odd.

region.png


Since the lines need not be of finite length, above figure is possible. there are 7 lines and 2 regions here. But the inner region is not convex as per the red points.
So this proves there can be non convex regionsOr is it that "line" means infinite length and "line segment" means finite ?
In that case i don't think there any way to have non convex regions Now the question is to find the max number of regions that can be formed with n lines(with no two lines parallel).
Can you give a start ?
I have some ideas like , at the max a new line is going to multiply the number of regions by two , (but i don't see this happening except for n=2)
and if all lines are intersected at a point, then number of regions will be twice the number of lines.

But i can't move any further :(
 
  • #7
matrixone said:
region.png


Since the lines need not be of finite length, above figure is possible. there are 7 lines and 2 regions here. But the inner region is not convex as per the red points.
So this proves there can be non convex regionsOr is it that "line" means infinite length and "line segment" means finite ?
In that case i don't think there any way to have non convex regionsNow the question is to find the max number of regions that can be formed with n lines(with no two lines parallel).
Can you give a start ?
I have some ideas like , at the max a new line is going to multiply the number of regions by two , (but i don't see this happening except for n=2)
and if all lines are intersected at a point, then number of regions will be twice the number of lines.

But i can't move any further :(

If you assume no that you never have more than two lines intersecting at any given point you should be able to find a simple pattern describing the number of regions. Think about what happens when you add one more line to an existing set of regions.
 
  • Like
Likes Greg Bernhardt
  • #8
I'm quite sure the lines do not have end, otherwise the problem is ill-defined.
matrixone said:
and if all lines are intersected at a point
That won't happen in general, but the possibility of that doesn't change the answer.
 
  • #9
OK, let's see. No lines, one region. One line, two regions. Two lines, four regions. Three lines, seven regions (unless they all pass hrough the same point, giving one "region" of zero area). Now if you have n infinite non-parallel lines, the n+1th line will cross each of these lines (passing from one region to another) once, i.e. it passes through n+1 regions, dividing each in two. Therefore the number of regions N(n+1) = N(n) + n+1. Looking at the first few values we see that N(n) = n(n+1)/2 + 1. Thus N(n) is O(n2) (I think; I have just looked up Big O Notation, never having heard of it before). It seems to me they must all be convex, but I don't know that I could prove it. I suppose if you had a concave region as in the diagram above, those two lines must extend beyond their point of meeting to intersect other lines, and that "region" would be divided into multiple convex regions.
 
  • #10
Right.

For a more formal proof that the regions have to be convex: Assume they are not. Then there are two points A,B in a region where some point between them has to be a border of the region, i. e. part one of the n lines. You can show that this implies that A and B cannot be in the same region.
 
  • #11
mfb said:
I'm quite sure the lines do not have end, otherwise the problem is ill-defined.
That won't happen in general, but the possibility of that doesn't change the answer.
Ya. Because the Big O notation considers the worst case scenario. Right ?

mjc123 said:
OK, let's see. No lines, one region. One line, two regions. Two lines, four regions. Three lines, seven regions (unless they all pass hrough the same point, giving one "region" of zero area). Now if you have n infinite non-parallel lines, the n+1th line will cross each of these lines (passing from one region to another) once, i.e. it passes through n+1 regions, dividing each in two. Therefore the number of regions N(n+1) = N(n) + n+1. Looking at the first few values we see that N(n) = n(n+1)/2 + 1. Thus N(n) is O(n2) (I think; I have just looked up Big O Notation, never having heard of it before). It seems to me they must all be convex, but I don't know that I could prove it. I suppose if you had a concave region as in the diagram above, those two lines must extend beyond their point of meeting to intersect other lines, and that "region" would be divided into multiple convex regions.

Awesome! . Now i got it. Thanks. :)

mfb said:
Right.

For a more formal proof that the regions have to be convex: Assume they are not. Then there are two points A,B in a region where some point between them has to be a border of the region, i. e. part one of the n lines. You can show that this implies that A and B cannot be in the same region.

border of the region which is a line is boundless and that prevents A and B to be in the same region. Right ?
Thanks a lot Sir :)
I think i got it now :)
 
  • #12
matrixone said:
Ya. Because the Big O notation considers the worst case scenario. Right ?
Right.
matrixone said:
border of the region which is a line is boundless and that prevents A and B to be in the same region. Right ?
Right.
 

1. How is the number of regions produced calculated?

The number of regions produced is calculated by counting the number of distinct, non-overlapping areas that can be created from a given set of points or objects. This can vary depending on the specific method or algorithm used.

2. What factors can affect the number of regions produced?

The number of regions produced can be affected by the number of points or objects in the set, the arrangement and distribution of these points, and the specific algorithm or method used for calculation.

3. Can the number of regions produced ever be infinite?

No, the number of regions produced will always be finite, as it is limited by the number of points or objects in the set. However, with an increasing number of points or objects, the number of regions produced can approach infinity.

4. How is the concept of "regions" defined in this context?

In this context, a region is defined as a distinct, non-overlapping area that is created by a set of points or objects. These regions can vary in size and shape depending on the specific set and method used.

5. Can the number of regions produced be used to solve real-world problems?

Yes, the concept of number of regions produced can be applied to various real-world problems, such as determining the number of possible paths in a transportation network or the number of potential outcomes in a game or puzzle.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
769
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Replies
11
Views
1K
Replies
6
Views
808
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Programming and Computer Science
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
3K
Replies
3
Views
1K
  • Introductory Physics Homework Help
2
Replies
39
Views
2K
  • Special and General Relativity
Replies
13
Views
1K
Back
Top