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.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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.
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!