Skip to content

Repository for the discrete math algorithms that we studied during the IoT course in LPNU

Notifications You must be signed in to change notification settings

DmtkD/iot-discrete-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About iot-discrete-math repository

This repository was created to store algorithms for solving problems in discrete mathematics in a programming language (in this case Python) during the course «Internet of Things» in Lviv Polytehnic National University (@LPNU-IoT).

Algorithm 1.10 (Generating all sequences in antilexicographic order)

Data: n

Result: A sequence of permutations of the set {1,...,n} in antilexicographic order.

image

Algorithm 1.19 (Generation of all partitions of the set {1, 2, . . . , n})

Data: n

Result: The sequence of all partitions of the set {1, . . . , n}, in which each next partition is formed from the previous one by transferring a single element to another block.

image

Algorithm 1.22 (Finding all partitions of a number)

Data: n.

Result: a sequence of partitions of the number n in the reverse order of the lexicographic

image

I took all the algorithms from this book:

Комдинаторика для программистов - В. Липский.pdf

About

Repository for the discrete math algorithms that we studied during the IoT course in LPNU

Topics

Resources

Stars

Watchers

Forks

Languages