Question
From a group of 8 girls and 7 boys, a committee of 9 is
to be formed. In how many ways can the committee be formed if it must include at least 6 girls?Solution
Case I: 6 girls and 3 boys
Number of ways = 8C6 × 7C3 = 28 × 35 = 980 ways
Case II: 7 girls and 2 boys
Number of ways = 8C7 × 7C2 = 8 × 21 = 168 ways
Case III: 8 girls and 1 boy
Number of ways = 8C8 × 7C1 = 1 × 7 = 7 ways
Total number of ways = 980 + 168 + 7 = 1155 ways
The Knuth-Morris-Pratt (KMP) algorithm improves upon the Naive approach by avoiding unnecessary re-comparisons. It achieves this by:
Which of the following is NOT a data transformation activity?
The following Python code attempts to call a method from the parent class, but it's using an outdated or incorrect syntax. How should it be corrected?
What is a characteristic feature of a bipartite graph?
Which collision resolution technique involves storing collided elements in a linked list at the hash table index?
.Consider the following Java code:
class Shape {
  void draw() {
    System.out.println("Drawing a generic shape");
...The output of circuit shown below is
If a series is already sorted, which sorting technique will finish in the least time?
Which of the following accurately describes Type 1 hypervisor virtualization?Â
Which AI technique is used for uncertain reasoning?