Awali
Another Weighted Automata library
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 
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 {
42  } // namespace internal
43 
44 }} // namespace awali::dyn
45 #endif
An automaton_t is essentially a shared pointer to an abstract_automaton_t, but also contains static f...
Definition: automaton.hh:93
automaton_t randomDFA(unsigned size, std::string alph)
Generates a random deterministic automaton over alphabet alph with size states.
dyn::automaton_t randomize_state_ids(automaton_t aut)
Main namespace of Awali.
Definition: ato.hh:22