Methods of solving problems for enumerating words made up of characters of a given alphabet
https://doi.org/10.32517/2221-1993-2026-25-1-68-72
Abstract
Recently, tasks on the theme of "Combinatorics" have ceased to be the prerogative of Olympiad training for schoolchildren. Students learn the concepts and methods of combinatorics in informatics, mathematics, probability, and statistics courses. The task 8 of the Unified State Exam in informatics assumes that students have the ability to enumerate and calculate configurations from objects of a finite set constructed in accordance with certain rules. The article describes various methods for solving these problems: nested loops, using the itertools library, using recursive functions and recursive generator functions. The last two methods allow students to get an idea of iterated objects and better understand the structure of generator objects. Solving one problem in several ways develops criticality of thinking, has a positive effect on the creation of intrasubject connections in the studied material, and promotes deeper learning of the material.
About the Authors
I. A. BikovaRussian Federation
Irina A. Bikova, Senior Lecturer at the Department of Theory and Methods of Teaching Informatics, Faculty of Physics and Mathematics, Yaroslavl State Pedagogical University named after K. D. Ushinsky; an informatics teacher, Education Center — School 26, Educational Complex 10
Yaroslavl
M. A. Zavodchikov
Russian Federation
Mikhail A. Zavodchikov, Candidate of Sciences (Physics and Mathematics), Associate Professor at the Department of Algebra, Number Theory and Mathematical Logic, Faculty of Mathematics
Yaroslavl
N. D. Eliseeva
Russian Federation
Nadezhda D. Eliseeva, Candidate of Sciences (Physics and Mathematics), Associate Professor at the Department of Mathematical Modeling, Faculty of Mathematics
Yaroslavl
References
1. Генераторы в Python // Сайт школы 179 г. Москвы. https://ejudge.179.ru/tasks/python/2022b/pgm25__Generators.html
2. Горбачев Н. В. Сборник олимпиадных задач по математике. М.: МЦНМО, 2010. 559 с. EDN: QYBWMT.
3. Готман Э. Г., Скопец 3. А. Задача одна — решения разные. М.: Просвещение, 2000. 223 с.
4. Демоверсии, спецификации, кодификаторы ЕГЭ. https://fipi.ru/ege/demoversii-specifikacii-kodifikatory#!/tab/151883967-5
5. ЕГЭ по информатике (2026) // Преподавание, наука и жизнь: сайт Константина Полякова. https://kpolyakov.spb.ru/school/ege.htm
6. Заводчикова Н. И., Быкова И. А. Психологические аспекты установления внутрипредметных связей между темой «Системы счисления» и разделом «Алгоритмы и программирование» // Информатика в школе. 2024. Т. 23. № 5 (184). С. 23–29. DOI: 10.32517/2221-1993-2024-23-5-23-29. EDN: WGDHWW.
7. Окулов С. М. Программирование в алгоритмах. М.: БИНОМ. Лаборатория знаний, 2001, 341 с. EDN: XWWXSB.
8. Окунев А. А. Спасибо за урок, дети! О развитии творческих способностей учащихся. М.: Просвещение, 1988. 128 с.
9. Перебор комбинаторных объектов // Сайт школы 179 г. Москвы. https://ejudge.179.ru/tasks/python/2022b/pgm26__Combinatorics.html
10. Поляков К. Ю. 100 баллов по информатике. Решаем задачи ЕГЭ на языке Python. М.: Лаборатория знаний, 2025. 367 с.
11. Федеральная рабочая программа среднего общего образования. Информатика (углубленный уровень) (для 10–11 классов образовательных организаций). https://edsoo.ru/wp-content/uploads/2025/07/2025_soo_frp_informatika_10_11_ugl.pdf
12. Федеральная рабочая программа среднего общего образования. Математика (углубленный уровень) (для 10–11 классов образовательных организаций). https://edsoo.ru/wp-content/uploads/2025/07/2025_soo_frp_matematika_10_11_ugl.pdf
13. Яковлев И. В. Комбинаторика для олимпиадников. М.: МЦНМО, 2014. 72 с.
14. Ярославские олимпиады по информатике. Сборник задач с решениями / С. Г. Волченков, П. А. Корнилов, Ю. А. Белов и др. М.: БИНОМ. Лаборатория знаний, 2010. 405 с.
Review
For citations:
Bikova I.A., Zavodchikov M.A., Eliseeva N.D. Methods of solving problems for enumerating words made up of characters of a given alphabet. Informatics in school. 2026;(1):68-72. (In Russ.) https://doi.org/10.32517/2221-1993-2026-25-1-68-72
JATS XML
















