Beispiel #1
0
        public static void Ser_Iterative_DeSer_Recursive <V>(Input <V> inp, InOut <V> .Ergebnis erg)
        {
            string     serialized   = inp.tree.SerializeIt(inp.serializer);
            IBTree <V> Deserialized = BinaryTree <V, IBTreeNode <V> > .DeSerializeRecursive(serialized, inp.deserializer);

            erg.Setze(new Output <V>(Deserialized, serialized));
        }
 public InOut(string s, string s2) : base(InOut.Convert(s), s2.Split(','), true)
 {
     inputStringConverter  = InOut.InToString;
     outputStringConverter = arg => "Ausgabe:\n" + InOut.OutToString(arg);
     ergStringConverter    = arg => "Ergebnis:\n" + InOut.OutToString(arg);
     CompareOutErg         = Helfer.ArrayVergleich <string>;
     AddSolver(SolverRecursive);
 }
Beispiel #3
0
 public InOut(string s, int m, string s2) : base(InOut.Convert(s), new Output(m, Helfer.Assemble(s2), temp), true)
 {
     AddSolver(Remove_Doubles);
 }
 public Input(int k, int x, int y, string points) // "1,2;2,3"
 {
     this.k      = k;
     this.p      = new Helfer.Point(y, x);
     this.points = InOut.ConvertToList(points);
 }