#15850: FiniteStateMachine: provide hook on_duplicate_transition
-------------------------------------+-------------------------------------
Reporter: cheuberg | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: | Merged in:
finite_state_machine | Reviewers: Daniel Krenn
Authors: Clemens | Work issues:
Heuberger, Daniel Krenn | Commit:
Report Upstream: N/A | 12351e2a78fa8bf3b6487495499826eacdf9ebdb
Branch: | Stopgaps:
u/cheuberg/fsm/on_duplicate_transition|
Dependencies: #15841, #15847, |
#15848 |
-------------------------------------+-------------------------------------
Changes (by cheuberg):
* cc: slabbe (added)
Comment:
In [http://trac.sagemath.org/ticket/15078#comment:19 #15078, comment 19],
slabbe recommended having distinct classes {{{FiniteStateMachine}}},
{{{Transducer}}}, {{{Automaton}}}.
Therefore, I think it to be appropriate to briefly explain why I used a
hook in this instance instead of having a new class {{{MarkovChain}}}:
- first, I think that it gives us more flexibility to customize the
behaviour slightly
- second, having a class {{{MarkovChain}}} would probably require us to
check whether the sum of the input weights of the transitions leaving a
state adds up to 1. This would be quite cumbersome and inefficient. This
checking is dealt with in #15961 (depending on this ticket).
--
Ticket URL: <http://trac.sagemath.org/ticket/15850#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.