The paper considers implementations of some randomized algorithms in connection with obtaining a random Sudoku matrix with programming language C++. For this purpose we describes the set of all matrices, consisting of elements of the set , such that every row is a permutation. We emphasize the relationship between these matrices and the Sudoku matrices. An algorithm to obtain random matrices is presented in this paper. Several auxiliary algorithms that are related to the underlying problem have been described. We evaluated all algorithms according to two criteria - probability evaluation, and time for generation of random objects and checking of belonging to a specific set. This evaluations are interesting from both theoretical and practical point of view because they are particularly useful in the analysis of computer programs.

生成讲解博客的中文版本

生成AI智能校验的中文版本