6. Control questions and tasks / Контрольні запитання і завдання
Combinatorics
- Define a permutation, an arrangement, and a combination. Which of
them depend on the order of the selected elements?
- Write the formulas for Pn, Ank, and Cnk. Derive Cnk from
Ank.
- Compute P5, A53, and C53, showing the arithmetic.
- What are Cn0 and Cnn? Explain why.
Descriptive statistics
- Define the mean (mathematical expectation), the variance, and the
standard deviation of a dataset.
- What is the difference between the population variance (÷n) and the
sample variance (÷(n−1))?
- Why does the standard deviation, rather than the variance, have the same units
as the data?
Implementation and complexity
- Why is the multiplicative form of Ank preferable to computing
n!/(n−k)! directly?
- Outline a recursive algorithm that generates all permutations of a set.
What is its output size for n elements?
- Why is explicitly generating all permutations feasible only for small
n, even though counting them is instant?
Tasks by hand
- Compute P4, A62, and C62.
- For the dataset {1,3,5,7}, compute the mean, the (population) variance,
and the standard deviation.
- List all C42 two-element combinations of the set {A,B,C,D}.
Laboratory/Laboratory7/6questions.md · 1.4 KB · updated 2026-07-31 21:14