Awali
Another Weighted Automata library
awali
dyn
algos
random.hh
Go to the documentation of this file.
1
2
// This file is part of Awali.
3
// Copyright 2016-2023 Sylvain Lombardy, Victor Marsault, Jacques Sakarovitch
4
//
5
// Awali is a free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
#include <
awali/dyn/modules/automaton.hh
>
19
#include <
awali/dyn/modules/context.hh
>
20
#include <cmath>
21
#include <ctime>
22
#include <queue>
23
#include <random>
24
25
#ifndef AWALI_DYN_RANDOM_HH
26
#define AWALI_DYN_RANDOM_HH
27
28
namespace
awali
{
namespace
dyn {
29
namespace
factory {
37
automaton_t
randomDFA
(
unsigned
size, std::string alph);
38
}
// namespace factory
39
40
namespace
internal {
41
dyn::automaton_t
randomize_state_ids
(
automaton_t
aut);
42
}
// namespace internal
43
44
}}
// namespace awali::dyn
45
#endif
awali::dyn::automaton_t
An automaton_t is essentially a shared pointer to an abstract_automaton_t, but also contains static f...
Definition:
automaton.hh:93
automaton.hh
context.hh
awali::dyn::factory::randomDFA
automaton_t randomDFA(unsigned size, std::string alph)
Generates a random deterministic automaton over alphabet alph with size states.
awali::dyn::internal::randomize_state_ids
dyn::automaton_t randomize_state_ids(automaton_t aut)
awali
Main namespace of Awali.
Definition:
ato.hh:22
Generated on Fri Jan 13 2023 09:26:44 for Awali by
1.9.1