2 counting problems

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
taskin
New poster
Posts: 22
Joined: Sun Jan 01, 2006 1:43 pm
Location: Bangladesh

2 counting problems

Post by taskin »

1. there is a convex polygon of size n (may not be regular). what is the maximum number of regions created inside it by all its diagonals. for example if n = 3 then region = 1 and n = 4 then region = 4.

2. there are n circles. what is the maximum number of regions created by their intersection. e.g. if n = 2, region = 3, n = 3 then region = 7.

can anyone describe some way to find these?
Martin Macko
A great helper
Posts: 481
Joined: Sun Jun 19, 2005 1:18 am
Location: European Union (Slovak Republic)

Re: 2 counting problems

Post by Martin Macko »

taskin wrote:2. there are n circles. what is the maximum number of regions created by their intersection. e.g. if n = 2, region = 3, n = 3 then region = 7.
See Sloane's A002061. (The formula is f(n + 1) = 2n + f(n).)
Martin Macko
A great helper
Posts: 481
Joined: Sun Jun 19, 2005 1:18 am
Location: European Union (Slovak Republic)

Re: 2 counting problems

Post by Martin Macko »

taskin wrote:1. there is a convex polygon of size n (may not be regular). what is the maximum number of regions created inside it by all its diagonals. for example if n = 3 then region = 1 and n = 4 then region = 4.
It's similar to the problem 10213. Here you can find some hints:Or see Sloane's A006522.
Post Reply

Return to “Algorithms”