English

On some randomized algorithms and their evaluation

Discrete Mathematics 2024-08-09 v1 Data Structures and Algorithms Combinatorics

Abstract

The paper considers implementations of some randomized algorithms in connection with obtaining a random n2×n2n^2 \times n^2 Sudoku matrix with programming language C++. For this purpose we describes the set Πn\Pi_n of all (2n)×n(2n) \times n matrices, consisting of elements of the set Zn={1,2,,n}\mathbb{Z}_n =\{ 1,2,\ldots ,n\}, such that every row is a permutation. We emphasize the relationship between these matrices and the n2×n2n^2 \times n^2 Sudoku matrices. An algorithm to obtain random Πn\Pi_n 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.

Keywords

Cite

@article{arxiv.2408.04445,
  title  = {On some randomized algorithms and their evaluation},
  author = {Krasimir Yordzhev},
  journal= {arXiv preprint arXiv:2408.04445},
  year   = {2024}
}

Comments

14 pages. arXiv admin note: substantial text overlap with arXiv:1312.0192

R2 v1 2026-06-28T18:07:41.444Z