Use the same program as , replacing only its first line by a test for a final :
If the input ends in , the loop erases it and eventually appends output . Every other input, including the empty word, follows the loop and produces . This is the characteristic function of .

Articles by others on the same topic (0)

There are currently no matching articles.