DEV Community

Cover image for "Day 50 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis ( Per & Comb- 5)
Nitin-bhatt46
Nitin-bhatt46

Posted on

2

"Day 50 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis ( Per & Comb- 5)

PERMUTATION AND COMBINATION - 5

Permutation = arrangement of object
Combination = selection of object

Different Object & Alike Object

Different object -
Eg :- a,b,c,d.

Alike Object -
Eg :- a,a,a,a.

Permutation = arrangement of object
Types :-
Permutation / Arrangement of Different object
Eg :- Permutation / arrangement of ‘n’ different objects is given a factorial of ‘n’.
Permutation / Arrangement of Alike object
Eg :- permutation of ‘n’ different objects is given a factorial of ‘n’.

Combination = selection of object
Types :-
Combination / Selection of Different object
Eg :- permutation of ‘n’ different objects is given a factorial of ‘n’.
Combination / Selection of Alike object
Eg :- permutation of ‘n’ different objects is given a factorial of ‘n’.

NUMERICAL

Q :- 4 BOYS & 4 GIRLS are to be arranged in a straight line. In how many ways this can be done.
Answer the following and fulfil the condition.

Without any restriction

It means 8 objects = 8!

If all boys are together

Box method : - 
Boys can be arranged 4! ( internal arrangement inside box )

Girl + boy box = 5!

Answer = 4! * 5!
Enter fullscreen mode Exit fullscreen mode

If all boys are together & all girls are also together.

Box method : - 
Boys can be arranged 4! ( internal arrangement inside box )
Girls can be arranged 4! ( internal arrangement inside box )

Girl box + boy box = 2!

Answer = 4! * 2! * 2!
Enter fullscreen mode Exit fullscreen mode

If boys are separated ( no two boys are together )

GAP method : - 
Girls can be arranged 4! 
BOYS are arranged in Gap = ( total Gap = 5 ) 

Answer = 4! * 5*4*3*2
Enter fullscreen mode Exit fullscreen mode

If no two boys are together , no two girls are together.
GAP method : -
Girls can be arranged 4!
BOYS are arranged in 4!
Gap must be maintain = 2

Answer = 4! * 2 * 4!
Enter fullscreen mode Exit fullscreen mode

🙏 Thank you all for your time and support! 🙏
Don't forget to catch me daily at 6:30 Pm (Monday to Friday)for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! 💻✨

API Trace View

Struggling with slow API calls? 👀

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay