Raw

6. Control questions and tasks / Контрольні запитання і завдання

Combinatorics

  1. Define a permutation, an arrangement, and a combination. Which of them depend on the order of the selected elements?
  2. Write the formulas for PnP_n, AnkA_n^k, and CnkC_n^k. Derive CnkC_n^k from AnkA_n^k.
  3. Compute P5P_5, A53A_5^3, and C53C_5^3, showing the arithmetic.
  4. What are Cn0C_n^0 and CnnC_n^n? Explain why.

Descriptive statistics

  1. Define the mean (mathematical expectation), the variance, and the standard deviation of a dataset.
  2. What is the difference between the population variance (÷n\div n) and the sample variance (÷(n1)\div (n-1))?
  3. Why does the standard deviation, rather than the variance, have the same units as the data?

Implementation and complexity

  1. Why is the multiplicative form of AnkA_n^k preferable to computing n!/(nk)!n! / (n-k)! directly?
  2. Outline a recursive algorithm that generates all permutations of a set. What is its output size for nn elements?
  3. Why is explicitly generating all permutations feasible only for small nn, even though counting them is instant?

Tasks by hand

  1. Compute P4P_4, A62A_6^2, and C62C_6^2.
  2. For the dataset {1,3,5,7}\{1, 3, 5, 7\}, compute the mean, the (population) variance, and the standard deviation.
  3. List all C42C_4^2 two-element combinations of the set {A,B,C,D}\{A, B, C, D\}.

Laboratory/Laboratory7/6questions.md · 1.4 KB · updated 2026-07-31 21:14