functions
AlphabetInv: seqofchar -> bool
AlphabetInv (palph) == len palph mod 2 = 0 and cardelems palph = len palph
operations public Alphabet: seqofchar ==> Alphabet
Alphabet (pa) == alph := pa pre AlphabetInv(pa);
public GetChar: nat ==> char
GetChar (pidx) == return alph(pidx) pre pidx insetinds alph;
public GetIndex: char ==> nat
GetIndex (pch) == let pidx inset {i | i insetinds alph
& alph(i) = pch} in return pidx pre pch insetelems alph;
pure public GetIndices: () ==> setofnat
GetIndices () == returninds alph;
public GetSize: () ==> nat
GetSize () == returnlen alph;
public Shift: nat * nat ==> nat
Shift (pidx, poffset) == if pidx + poffset > len alph thenreturn pidx + poffset - len alph elsereturn pidx + poffset pre pidx insetinds alph and
poffset <= len alph;
public Shift: nat ==> nat
Shift (pidx) == Shift(pidx, 1) end Alphabet
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-04-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.