Questions tagged [equivalence-classes]

Use equivalence-classes for questions related to decomposing a set into subsets in which each element produces a constant output given a constant input

References

42 questions
2
votes
1 answer

Can equivalence class partitioning be applied for testing an advanced search feature?

I have a Advanced Search feature where in I first search for a key word and then i refine my search by selecting the different filters in a different category, these are multi-select check boxes. Example: Lets say I am looking for a "Car" once I…
1
vote
1 answer

Enumerating equivalence classes

What I have: an equivalence relation on the set {1,...,n}, given as the full list of equivalent pairs (a,b) (this is already transitive; no need to compute a transitive closure). n is large (say, a few millions at most); the total number of…
1
vote
1 answer

RL Equivalence Ratio

I need help with some 2 questions , thank for help There will be L ⊆ Σ* , Prove or disprove: 1. If each RL equivalence class is a regular language, then RL contains an infinite equivalence class 2. If L is a regular language, then RL contains an…
Amit znaft
  • 13
  • 3
1
vote
2 answers

Produce all possible equivalent sorts for a given key function

Say I have points: points = [(1., 1.), (3., 0.), (-1., -1.), (9., 2.), (-4., 2.) ] If I sort them by y axis: points = sorted(points , key=lambda k: [k[1], k[0]]) I get points = [(-1., -1.), (3., 0.), (1.,1.) , (-4.,2.), (9., 2.)] However I…
1
vote
1 answer

Algorithm to determine one-to-one correspondence with an equivalence function

Suppose that I have two sets of items, and a function to check the equivalence of two items (not strict equality so that one item may be equivalent to multiple items in the other set), I want to determine whether there is a one-to-one correspondence…
Hai Zhang
  • 5,574
  • 1
  • 44
  • 51
1
vote
0 answers

Modelling equivalent classes by Protege 3.5

I am using Protege 3.5 ontology editor. I have two classes "ProcessName" and "AvailableProcess". I would like to say that these two classes are equivalent, i.e. that they have the same class extension (same instances in both classes). I would use it…
Eeva
  • 11
  • 2
1
vote
0 answers

Equivalence Relations and Classes

I have a couple of proeblems which I am not sure how to solve. I know that an equivalence relation is a relation set that corresponds to the properties: reflexive, symmetric, anti-symmetric and transitive. 1) Consider the alphabet Σ = {a,b}. For…
John Doe
  • 31
  • 1
1
vote
1 answer

Is the domain & range of owl:equivalentClass rdfs:Class or owl:Class?

The domain and range of owl:equivalentClass raises some questions to which I have been unable to locate the answers. First of all, in OWL itself, the domain and range of owl:equivalentClass is set to rdfs:Class. This domain and range seem to clash…
1
vote
1 answer

functional testing writing equivalence classes

Hey guy's i'm taking a software testing module and trying to study for the final coming up soon but having a little problem getting my head around some of it the question that was asked last year is A large activist organisation uses an add-on to…
sparky971
  • 57
  • 1
  • 9
0
votes
0 answers

Finding equivalent strings through substitutions

I have a problem that's proven to be dramatically more complex than it at first seemed. I have a (long) list of equivalence relations of the form e = abe. I need a function from string to string that produces the same output for any two equivalent…
Nol
  • 75
  • 4
0
votes
0 answers

languages, pumping-lemma and myhill-nerode-equivalence-classes

Is it possible that a context-free-language has infinite myhill-nerode-classes or is there a way to narrow down (in terms of chomsky hierachy) which kind of classes can or can't have infinite myhill-nerode-classes? I have a problem where I should…
0
votes
0 answers

Best approach for storing elements in C# that have within epsilon definition of equality

The program uses vertices in R^2 as nodes and there are edges between nodes, and ultimately more is built from there. There are a high number of circuitous ways that a point (x,y) in R^2 might be reached that may rely on layer after layer of trig…
0
votes
1 answer

Develop equivalence relations among pairs of strings

I have a set of pairs which represents equivalency among them: [(“Player1”, “Player2”), (“Player3”, “Player4”), (“Player2”, “Player3”), (“Player11”, “Player13”)] This means, “Player1” is equivalent to “Player2” and “Player3” is…
0
votes
0 answers

How to write test cases using Equivalence Class, Boundary value, and Basis Path Testing

I have a method isPerfect(x) (with 4<=x<=10000) below, how to write test cases based on Equivalence Class, Boundary Value, and Basis Path Testing: public boolean checkPerfectNumber(int x) { if(x >= 4 && x <= 10000) { int sum = 0;…
0
votes
0 answers

How to determine groupings imposed by equivalence pairings of data?

I have a csv file where each row contains a pair of values. For example, it might look something like this: A, B B, D E, G F, G H, C Each row should be interpreted to mean that the two values should be in the same group. I'm trying to find an…
Jeff
  • 93
  • 1
  • 11