Decoding finite configurations within quadratic time #
The decoders of CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.Space.Decode
run within quadratic time. The cells of a stack tape are read by a finite transducer in linear
time, and folded into the tape by Turing.MultiTapeTM.stackStep, each step taking time linear in
the encoded state, which grows by at most four bits per step; the other fields are read off the
frames of the encoding in linear time, and clamping a count into range is quadratic.
Main results #
Turing.MultiTapeTM.ComputableInO.decodeStackTape,.decodeBiTape,.decodeTapes: decoding tapes within quadratic time and linear space.Turing.MultiTapeTM.ComputableInO.decodeFiniteCfg: decoding a finite configuration within quadratic time and space.Turing.MultiTapeTM.ComputableInO.length_encFiniteCfg_decodeFiniteCfg_le: a decoded configuration is encoded by a word of linear length.Turing.MultiTapeTM.ComputableInO.decodeView: reading the view of a code (Turing.MultiTapeNTM.decodeView) within quadratic time and space.
Stack tapes #
Decoding a stack tape within quadratic time and linear space.
Decoding a two-sided tape within quadratic time and linear space.
Decoding a fixed finite family of tapes within quadratic time and linear space.
Configurations #
Decoding a finite configuration within quadratic time and space.
A decoded configuration has a linear encoding.
Reading the view of a code within quadratic time and space.