题目
COMP30026_2025_SM2 Worksheet 8
多项选择题
Let 𝐿 be the language consisting of bit strings of the form 𝑤 𝑤 . More precisely, 𝐿 = { 𝑤 𝑤 ∣ 𝑤 ∈ Σ ∗ } . So, 𝐿 contains 𝜖 , 00 , 11 , 1010 , 0101 , 1111 , 101101 , … Select all options that are fooling sets of size at least k.
选项
A.0
,
00
,
000
,
.
.
.
.
,
0
𝑘
B.1
,
11
,
111
,
…
,
1
𝑘
−
1
C.𝜖
,
𝜖
𝜖
,
𝜖
𝜖
𝜖
,
…
,
𝜖
𝑘
D.01
,
0011
,
000111
,
.
.
.
0
𝑘
1
𝑘
查看解析
标准答案
Please login to view
思路分析
We are given the language L = { w w | w ∈ Σ* }, i.e., strings that are exact concatenations of a string with itself. A fooling set F for L (of size at least k) typically means: there exist pairs (x_i, y_i) for i = 1..m with m ≥ k such that for every i, x_i y_i ∈ L, and for all i ≠ j, x_i y_j ∉ L. In other words, each pair (x_i, y_i) lands in L, but mixing the x_i with a different y_j breaks membership in L. The options provided list candidate sets of strings that could serve as the x_i parts of such fooling sets. We must analyze each option to see whether it can form a fooling set of size at least k, given appropriate choices of y_i, and while keeping in mind the structure of L (strings that are exactly twice some w). Below, I treat each option separately, noting the key structural observations and potential y_i choices, and I point out where the construction is plausible or likely to fail. I also show how the form of the strings in each option interacts with the requirement x_i y_i ∈ L and x_i y_j ∉ L for i ≠ j. I use diverse phrasing and clear, stepwise reasoning to illuminate the core ideas behind why an option would or would not support a fooling set of the required size.
Option 1: { 0, 00, 000, ..., 0^k }
- Observation: The x_i are prefixes consisting solely of 0’s of various lengths. To form a fooling set, we would need to pick corresponding y_i so that x_i y_i ∈ L, i.e., x_i y_i = w w for some w, and for i ≠ j, x_i y_j ∉ L.
- Plausible construction attempt: If we take y_i to be 0^{i}, then x_i y_i = 0^{i} 0^{i} = 0^{2......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Let L be a language defined as follows: L = { w | w ∈ {0,1}* && w does not have any 1s that are separated only by 2*n 0's where n ∈ ℕ\{0} } examples: "11", "101", "00", "010" are in L "1001", "10100001" are not in L Which of the following attempts to prove that L is a non-regular language provides a valid fooling set 'S' + algorithm to choose a distinguishing suffix for a pair of elements in S? For each of the following attempts, select the most specific answer from the respective drop-down. Attempt #1: S = { 1, 100, 10000, ...} = { 102m | m ∈ ℕ } ALG = " Given two elements from S 102i and 102j, where i < j, choose suffix 02i1 " Attempt #2: S = { 1, 10, 100, ...} = { 10m | m ∈ ℕ } ALG = " Given two elements from S 10i and 10j, where i < j: IF (i even and j odd || j even and i odd) -> Choose suffix "1" ELSE -> Choose suffix "0i1" " Attempt #3: S = { 0, 10, 100 } ALG = " Choose the suffix according to the following map of element pairings: (0,10) -> choose suffix "01" (0,100) -> choose suffix "1" (10,100) -> choose suffix "1" " 1: Attempt #1 2: Attempt #2 3: Attempt #3
Let L be a language defined as follows: L = {w | w <- {0,1}* && w does not have any 1s that are separated only by 2n 0s where n ∈ ℕ\{0} } examples: "11", "10001", "0110" are in L "1001", "100001" are not in L Which of the following attempts to prove that L is a non-regular language provides a valid fooling set 'S' + algorithm to choose a distinguishing suffix for a pair of elements in S? Select the most specific answer from the drop-downs below corresponding to the correctness each of the following proofs. Attempt #1: S = { 11, 1001, 100001, ...} = { 102m1 | m ∈ ℕ } ALG = " Given two elements from S 102i and 102j, where i < j, choose suffix 02i1 " Attempt #2: S = { 1, 110, 11100, ...} = { 1m0m-1 | m ∈ ℕ } ALG = " Given two elements from S 1i0i-1 and 1j0j-1, where i < j, choose suffix 0i1 " Attempt #3: S = { 1, 110, 11100, ...} = { 1m0m-1 | m ∈ ℕ } ALG = " Given two elements from S 1i0i-1 and 1j0j-1, where i < j, choose suffix 02j1 " Attempt #4: S = { 100, 110000, 11100000000, ...} = { 1m02^m | m ∈ ℕ\{0} } ALG = " Given two elements from S 1i02^i and 1j02^j, where i < j, choose suffix 02^i1" 1: Attempt #1 2: Attempt #2 3: Attempt #3 4: Attempt #4
L = {(01)n(10)m | n ≥ 0, m ≥ 2} is a regular language. Select the errors that are present in the following fooling set ‘proof’ that L is not regular: Proof (attempt): Suppose there is a DFA with k states that recognises L. Consider the set S = {(01)n | 1 ≤ n ≤ k}. Every pair of strings in S can be written as (01)i and (01)j, with i<j. These two strings are distinguishable with respect to L with the distinguishing suffix (10)i, as (01)i(10)i is in L but (01)j(10)i isn't. Thus every pair of distinct strings in S is distinguishable with respect to L, and so S is a fooling set of size k. Thus, there cannot exist a DFA with k states that recognises L. Because k was arbitrary, no DFA that recognises L can exist, and so L is not regular.
In a consumer society, many adults channel creativity into buying things
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!