Questions tagged [equivalence]

Equivalence is a relationship in which two or more identifiers are abstractions for the same data structure.

References

168 questions
0
votes
0 answers

python "is" equivalency is confusing for some mutable objects

this is the first time i'm asking a question; i apologise in advance for any mistakes i may make out of ignorance; here's my question: why do i get "False" for any equivalence of mutable objects using 'is' while they seem to point at the same memory…
Bogdan D
  • 1
  • 1
0
votes
1 answer

.NET XMLSerializer equivalence in Java/Android?

I've Googled the XMLSerializer in Android, but I found it's totally different from .NET. What I need is that, from a Serializable Class, I can write them to a XML file, and then read the XML file to return the class's properties values…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
0
votes
2 answers

Why isn't .equals recognizing my variable as the same string that I'm passing it?

So this little function is supposed to check if parentheses and brackets are matched next to each other. I feel like it should work and I've tried it a few different ways but I can't figure out how to check if my next char is what I expect it to be.…
B. Mars
  • 9
  • 1
0
votes
3 answers

2D Array Equivalence?

I'm trying to determine whether or not two 2d arrays are equivalent in terms of integer values. When I input the following values for the arrays: First Array: 1 1 1 1 2 2 1 1 1 Second Array: 1 1 1 1 1 1 1 1 1 //I get: Equivalent //which is…
0
votes
1 answer

Im textbox From 1 to 1000 write testcase to allow only multiple of 5 Using Equivalent partition and boundaries value analysis?

Write test case for selecting only multiple of 5 from 1 to 1000 using equivalence partition and boundary analysis technique
Oggy
  • 1
0
votes
1 answer

Constructing logic gates from only AND, OR and NOT gates

I am doing some revision for my exams and one of the questions that frequently occurs is to construct logic gates using only the functions AND, OR and NOT. The most commonly occurring ones are NAND, NOR, XOR, XNOR and the equivalence function. Am I…
0
votes
1 answer

Directed acyclic graph through removing arches or reverting them

I have been struggling now with a way to formalize and throughouly prove the following: We are given the street network of a city. Prove that if we can remove all cycles in this network by creating at most p blockins, then we can remove all the…
0
votes
0 answers

How is possible to use glm() function or Bayesian Network in R for equivalency test for binomial data?

Is there any way to use glm() function or Bayesian Network to check whether the two binomial data are equivalent. More to point, I have two binomial (success=1 and failure=0) datasets and intend to apply a statistical test to show whether they are…
0
votes
0 answers

create a tool that manages an equivalence relation that can be changed in a specific way by the program

Whats going on: So I've written a program that manages equivalence relations and it does not include a main. I'm supposed to test it in a separate file where I make an ER (equivalence relation), merge some things, and show the result. What I need…
0
votes
1 answer

jQuery object equivalence test (deep comparison of content, not identity)

How can I check that two jQuery objects have equivalent features, that is the same tag names, attributes, values, and text contents? This question is not a duplicate (content-wise or identity-wise) of any of these: comparing jQuery objects How…
Bob Stein
  • 16,271
  • 10
  • 88
  • 101
0
votes
1 answer

Equivalence of structs? is typealias the "Swift" way to do this?

Maybe I'm over thinking this or having a brain cramp. typealias myZero = reallyLongAndObfuscatedEnum.ZERO Let's say I have some legacy code and need to convert it to Swift 3. This is of course a very simplified version of what I'm dealing…
0
votes
2 answers

Perl-regex word boundary equivalence

I read that the regex \ba is equivalent to (?
0
votes
0 answers

SQL Server equivalent of substring_index function in MySQL that works with negative count parameter

On mysql we have the substring_index function: SUBSTRING_INDEX(str,delim,count) Definition: Returns the substring from string str before count occurrences of the delimiter delim. If count is positive, everything to the left of the final delimiter…
guimarques8
  • 27
  • 2
  • 7
0
votes
2 answers

std::set. Custom set of sets

Word. I have a struct, containing a single field that I would like set to use for comparison and equivalence, and other fields as metadata: struct read_tag{ unsigned int read_id; // want std::set to use this int offset; //…
izaak_pyzaak
  • 930
  • 8
  • 23
0
votes
2 answers

Requirements of the inequality operator of an input/output iterator

I'm creating a small tile based game. Items in the game store their location in a matrix of buckets. I've implemented this as a class template named Grid which contains a bucket class named Tile. The Grid is essentially just a wrapper around a…
Fibbs
  • 1,350
  • 1
  • 13
  • 23