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! 💻✨

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

AWS GenAI Live!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️