TWiki
>
FST Web
>
FstQuickTour
>
TopSortDoc
(2018-04-27,
MichaelRiley
)
(raw view)
E
dit
A
ttach
---+ Topsort ---++ Description This operation topologically sorts its input if acyclic, modifying it. Otherwise, the input is unchanged. When sorted, all transitions are from lower to higher state IDs. ---++ Usage |<verbatim> template<class Arc> void TopSort(MutableFst<Arc> *fst); </verbatim>| |<verbatim> fsttopsort a.fst out.fst </verbatim> | ---++ Examples ---+++ =A=: %ATTACHURL%/topsort1.jpg ---+++ =Topsort of A=: %ATTACHURL%/topsort2.jpg <verbatim> Topsort(&A); fsttopsort a.fst out.fst </verbatim> ---++ Complexity =Topsort=: * Time: _O(V + E)_ * Space: _O(V + E)_ %BR% where _V_ = # of states and _E_ = # of arcs. -- Main.MichaelRiley - 02 Jul 2007
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
jpg
topsort1.jpg
r1
manage
15.4 K
2007-07-03 - 00:36
MichaelRiley
jpg
topsort2.jpg
r1
manage
15.3 K
2007-07-03 - 00:37
MichaelRiley
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r3 - 2018-04-27
-
MichaelRiley
FST
Log In
or
Register
FST Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
Contrib
FST
Forum
GRM
Kernel
Main
Sandbox
TWiki
Main
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback