Given a rope. We have to find the probability of cutting a rope into 3 pieces such that they form a triangle.

**Answer: **0.25

**Explanation: **

Let the length of rope be 1 unit. We choose two points X and Y on the rope.

**Note: **Formation of triangle is based on **Triangle inequality** i.e. *sum of the lengths of any two sides of a triangle must be greater than the length of the third side*

There are two possibilities of choosing points X and Y on rope:

**Case 1: **X < Y

Length of pieces after choosing points X and Y:

X units, (Y-X) units, (1-Y) units

Below line diagram shows the partition rope.

The 3 possible combination for satisfying Triangle Inequality

1. X + (Y-X) > (1-Y)

=> 2Y > 1

=> Y > (1/2)

2. X + (1-Y) > (Y-X)

=> 2X + 1 > 2Y

=> Y < X + (1/2)

3. (Y-X) + (1-Y) > X

=> 2X < 1

=> X < 1/2

Forming a graph using above 3 conditions and X<Y

The area in the region **1** of the graph is the required area which is: 1/2*1/2*1/2 = 1/8

**Case 2: **X > Y

Length of pieces after choosing points X and Y:

Y units, (X-Y) units, (1-X) units

Below line diagram shows the partition rope.

The 3 possible combinations for satisfying Triangle Inequality

1. Y + (X-Y) > (1-X)

=> 2X > 1

=> X > (1/2)

2. Y + (1-X) > (X-Y)

=> 2Y + 1 > 2X

=> X < Y + (1/2)

3. (X-Y) + (1-X) > Y

=> 2Y < 1

=> Y < 1/2

Forming a Graph using 3 condition and Y<X

The area in the region **5** of the graph is the required area which is: 1/2*1/2*1/2 = 1/8

In both cases we get same required area, thus area required will be: 1/8.

So the Probability of breaking a rope into three pieces such that the sides form a triangle

is given by:

Area required/Total area = (1/8)/(1/2*1*1) = 1/4 = 0.25.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Probability that the pieces of a broken stick form a n sided polygon
- Find the type of triangle from the given sides
- Find other two sides of a right angle triangle
- Find other two sides and angles of a right angle triangle
- Find area of triangle if two vectors of two adjacent sides are given
- Check whether right angled triangle is valid or not for large sides
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- Length of remaining two sides of a Triangle from a given side and its adjacent angles
- Find Four points such that they form a square whose sides are parallel to x and y axes
- Find the length of the median of a Triangle if length of sides are given
- Possible to form a triangle from array values
- Area of Triangle using Side-Angle-Side (length of two sides and the included angle)
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Length of rope tied around three equal circles touching each other
- Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
- Number of ways to arrange 2*N persons on the two sides of a table with X and Y persons on opposite sides
- Count pieces of circle after N cuts
- Maximum number of pieces in N cuts
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle
- Program to print a Hollow Triangle inside a Triangle

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.