All Questions
Tagged with venn-diagram set
6
questions
0
votes
1
answer
295
views
Highlighting sectors of Venn diagram in Python
I am trying to create a program that would highlight a part of the Venn diagram, depending on user's input. The user would input a set operation and it would highlight the section. Currently, I am ...
3
votes
2
answers
2k
views
Code to find unique elements among lists / sets
The above shaded area, according to Wolfram is supposed to represent:
A XOR B XOR C XOR (A AND B AND C)
How to translate this into python code? The code must closely correlate to the set ...
0
votes
0
answers
23
views
Is there an XML-like language (or any language) which allows easy expression of overlapping data?
(This is PROBABLY in the wrong site but I am unsure of where the right site is to assign this question to. Mod(s), please forgive and assist me.)
I have the following sequence:
cdadbcdacdbcbc
I ...
7
votes
4
answers
2k
views
Number of common letters in two strings
I have this code using collections Counter to find the number of common letters in two strings.
from collections import Counter
a = "abcc"
b = "bcaa"
answer = 0
ac = Counter(a)
bc = Counter(b)
...
0
votes
3
answers
3k
views
How to get counts of intersections of six or more sets?
I am running an analysis of a number of sets and I have been using the package VennDiagram, which has been working just fine, but it only handles up to 5 sets, and now it turns out that I need to look ...
11
votes
2
answers
439
views
What is a better algorithm than brute force to separate items in overlapping categories?
I have an arbitrary set of items (dots below), and some number of categories overlapping in an arbitrary way (A-C below). The test is to determine whether it's possible for each item to be assigned to ...