equivalence-classes Questions

19

Solved

Consider there are some lists of integers as: #-------------------------------------- 0 [0,1,3] 1 [1,0,3,4,5,10,...] 2 [2,8] 3 [3,1,0,...] ... n [] #-------------------------------------- The qu...
Rackety asked 2/2, 2012 at 10:36

6

Say I have a finite iterable X and an equivalence relation ~ on X. We can define a function my_relation(x1, x2) that returns True if x1~x2 and returns False otherwise. I want to write a function th...
Seigler asked 12/8, 2016 at 18:33

2

Assume you have many elements, and you need to keep track of the equivalence relations between them. If element A is equivalent to element B, it is equivalent to all the other elements B is equival...
Ismaelisman asked 17/9, 2010 at 19:52

4

Solved

How come when I change the order of the two sets in the unions below, I get different results? set1 = {1, 2, 3} set2 = {True, False} print(set1 | set2) # {False, 1, 2, 3} print(set2 | set1) #{Fa...
Veradia asked 11/6, 2017 at 23:29

4

Solved

I have a project of converting one database to another. One of the original database columns defines the row's category. This column should be mapped to a new category in the new database. For exa...
Scyphus asked 17/12, 2009 at 11:8

1

Solved

For an automata algorithm, I require a fast Union-Find data structure in a functional language. Since I need to formally prove the correctness of the data structure, I would prefer a simple structu...

3

Solved

When overloading the "==" operator in c++, is there a standard definition as to what equality explicitly means, or a set of guidelines as how "==" should behave? I currently have a class that does...

1

Solved

Java has a Comparator<T> for providing comparison of objects external to the class itself, to allow for multiple/alternate methods of doing ordered comparisons. But the only standard way of ...
Montreal asked 31/8, 2011 at 15:9

3

I use VS 2008, .net 3.5, C# projects. I need do the same functionally like Microsoft.VisualBasic.FileIO.FileSystem.DeleteDirectory. Anyone says referencing the Microsoft.VisualBasic is often undes...
Federation asked 6/4, 2011 at 9:31

3

Solved

I'm looking for a good data structure to build equivalence classes on nodes of a tree. In an ideal structure, the following operations should be fast (O(1)/O(n) as appropriate) and easy (no paragra...
1

© 2022 - 2024 — McMap. All rights reserved.