Characteristic samples
Characteristic samples is a concept in the field of grammatical inference, related to passive learning.[src] In passive learning, an inference algorithm I is given a set of pairs of strings and labels S , and returns a representation R that is consistent with S .[src] Characteristic samples consider the scenario when the goal is not only finding a representation consistent with S , but finding a representation that recognizes a specific target language.[src] A characteristic sample of language L is a set of pairs of the form (s, l(s)) where: # l(s) = 1 if and only if s\in L # l(s) = -1 if and only if s\notin L Given the characteristic sample S , I 's output on it is a representation R , e.g.[src] an automaton, that recognizes L .[src]
Characteristic samples is a concept in the field of grammatical inference, related to passive learning.[src] In passive learning, an inference algorithm I is given a set of pairs of strings and labels S , and returns a representation R that is consistent with S .[src] Characteristic samples consider the scenario when the goal is not only finding a representation consistent with S , but finding a representation that recognizes a specific target language.[src] A characteristic sample of language L is a set of pairs of the form (s, l(s)) where: l(s) = 1 if and only if s\in L l(s) = -1 if and only if s\notin L Given the characteristic sample S , I 's output on it is a representation R , e.g.[src] an automaton, that recognizes L .[src] l(s) = 1\text{ if and only if } s\in L l(s) = -1 \text{ if and only if } s\notin L If equivalence is undecidable for a class \mathbb{C} over \Sigma of cardinality bigger than 1, then \mathbb{C} doesn't have characteristic samples.[src] Given a class of representations \mathbb{C} such that equivalence is undecidable, for every polynomial p(x) and every n \in \mathbb{N} , there exist two representations r_1 and r_2 of sizes bounded by n , that recognize different languages but are inseparable by any string of size bounded by p(n) .[src] Assuming this is not the case, we can decide if r_1 and r_2 are equivalent by simulating their run on all strings of size smaller than p(n) , contradicting the assumption that equivalence is undecidable.[src] Given a class \mathbb{C} that has characteristic samples, let R_1 and R_2 be representations that recognize L_1 and L_2 respectively.[src] Under the assumption that there is a characteristic sample for L_1 , S_1 that is also consistent with L_2 , we'll assume falsely that there exist a characteristic sample for L_2 , S_2 that is consistent with L_1 .[src] By the definition of characteristic sample, the inference algorithm I must return a representation which recognizes the language if given a sample that subsumes the characteristic sample itself.[src] But for the sample S_1\cup S_2 , the answer of the inferring algorithm needs to recognize both L_1 and L_2 , in contradiction.[src] Given the sample from the adversary W , the construction of the automaton by the inference algorithm I starts with defining P = \text{prefix}(W) and S = \text{suffix}(W) , which are the set of prefixes and suffixes of W respectively.[src] Now the algorithm constructs a matrix M where the elements of P function as the rows, ordered by the shortlex order, and the elements of S function as the columns, ordered by the shortlex order.[src] Next, the cells in the matrix are filled in the following manner for prefix p_i and suffix s_j : If p_is_j \in W \rightarrow M_{ij} = l(p_is_j) else, M_{ij} = 0 Now, we say row i and t are distinguishable if there exists an index j such that M_{ij} = -1\times M_{tj} .[src] The next stage of the inference algorithm is to construct the set Q of distinguishable rows in M , by initializing Q with \epsilon and iterating from the first row of M downwards and doing the following for row r_i : If r_i is distinguishable from all elements in Q , add it to Q else, pass on it to the next row From the way the teacher constructed the sample it passed to the adversary, we know that for every s \in Q and every \sigma \in \Sigma , the row s\sigma exists in M , and from the construction of Q , there exists a row s' \in Q such that s' and s\sigma are indistinguishable.[src] The output automaton will be defined as follows: The set of states is Q .[src] The initial state is the state corresponding to row \epsilon \in Q .[src] The accepting states is the set \{s\in Q|\text{ } l(s)=1\} .[src] The transitions function will be defined \delta(s,\sigma) = s' , where s' is the element in Q that is indistinguishable from s\sigma .[src]
25 sentences · 25 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Characteristic samples." encyclopegia.org, 2026, https://encyclopegia.org/wiki/characteristic-samples. Accessed 25 November 2026.
Chicago
"Characteristic samples." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/characteristic-samples.
APA
encyclopegia.org. (2026). Characteristic samples. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/characteristic-samples
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON