Please read the new rule regarding the restriction on the use of AI tools. ×

DP!,count no of arrangements of points in circle

Revision en1, by nilsilu95, 2015-08-01 10:00:29
Given n .You can choose n points in a circle and you have to draw lines joining them.Condition is each point can lie in only one line and no two lines can  intersect.You have to count number of line sequences possible.A line sequence is possible when we can draw lines from each points and satisfying the condtion mentioned above.

**Constraints**
1<=n<=50

Inputs
2
Output 
1

Inputs
4
Output 
2

Inputs
6
Output 
5

How to solve this?

Tags dp, divide and conquer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nilsilu95 2015-08-01 10:00:29 518 Initial revision (published)