Page 1 of 1

An urn containing n balls can be represented by the set U = {b1, b2, …, bn}, with n ≥ 3. Interpret the following algorit

Posted: Mon Jun 06, 2022 12:40 pm
by answerhappygod
An urn containing n balls can be represented by the set U = {b1,
b2, …, bn}, with n ≥ 3. Interpret the following algorithm in the
context of urn problems.
for i in {1, 2, …, n} do
[ for j in { i+1, i+2, …, n}
do
[ for k
in { j+1, j+2, …, n} do
print bi, bj, bk
]
]
Does it represent drawing an ordered or unordered
set of three balls?
Does it represent drawing with or without
replacement?
How many lines does it print? What is the big-Θ
estimate of the algorithm?