StringTools - Maple Help

Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Combinatorics on Words : StringTools/IsEodermdrome

StringTools

 IsEodermdrome
 test whether a string is an eodermdrome

 Calling Sequence IsEodermdrome( s )

Parameters

 s - string; any Maple string

Description

 • The IsEodermdrome command checks whether a string s is an eodermdrome, returning true if it is, and false otherwise.
 • An eodermdrome is a string with the property that the sequence of consecutive digrams of the string form an Eulerian trail in the complete graph on the characters appearing in the string.

Examples

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{IsEodermdrome}\left("EODERMDROME"\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{IsEodermdrome}\left("SURTOUTSORS"\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{IsEodermdrome}\left("STRING"\right)$
 ${\mathrm{false}}$ (3)
 References