10. (10 pts) Let I = {w = {0.1} has the same number of O's and 1's). Consider the fol- lowing algorithm that decides L.
Posted: Sat May 14, 2022 7:32 pm
10. (10 pts) Let I = {w = {0.1} has the same number of O's and 1's). Consider the fol- lowing algorithm that decides L. M = "In inputs 1. Scan across the tape until a 0 or 1 is found. 2. If none is found, accept. 3. If one is found, continue scanning until a matching 1 or 0 is found. 4. If none is found, reject. 5. Otherwise, cross off that symbol and repeat. Using the Big-O notation, state the time complexity of each step of M, and the overall time complexity of M.