// Numbas version: exam_results_page_options {"name": "Simon's copy of Basic Set Theory: subsets and set equality", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution-ShareAlike 4.0 International", "description": "

Introductory exercise about set equality

"}, "variablesTest": {"condition": "AB + BC + CA =1 and AsubsetB + BsubsetA + AsubsetC + CsubsetA + BsubsetC + CsubsetB=4", "maxRuns": 100}, "tags": [], "name": "Simon's copy of Basic Set Theory: subsets and set equality", "advice": "

Remember that the ordering of sets does not matter, nor do duplicate elements. We can therefore simplify the question by rewriting each of our sets with the elements in order and the duplicates removed.

\n

\n

So we have

\n

$A = \\var{Asimple}$

\n

$B = \\var {Bsimple}$

\n

$C = \\var {Csimple}$

\n

\n

(a)

\n

You can check to see if $A \\subseteq B$ by progressively checking if each element of $A$ is also in $B$. There are six questions so you will have to do this six times.

\n

\n

(b)

\n

We can easily compare our rewritten sets above to see which are equal.

\n

\n

\n

It is worth noting that for two sets $M$ and $N$, if $M \\subseteq N$ and $N \\subseteq M$ then $M=N$

\n

", "variables": {"CsubsetB": {"templateType": "anything", "name": "CsubsetB", "description": "", "group": "Ungrouped variables", "definition": "if(set(C)=intersection(set(C),set(B)),1,0)"}, "AsubsetC": {"templateType": "anything", "name": "AsubsetC", "description": "", "group": "Ungrouped variables", "definition": "if(set(A)=intersection(set(A),set(C)),1,0)"}, "CA": {"templateType": "anything", "name": "CA", "description": "", "group": "Ungrouped variables", "definition": "if(set(C) = set(A),1,0)"}, "A": {"templateType": "anything", "name": "A", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(1..4),4)"}, "CSimple": {"templateType": "anything", "name": "CSimple", "description": "", "group": "Ungrouped variables", "definition": "set(sort(C))"}, "AB": {"templateType": "anything", "name": "AB", "description": "", "group": "Ungrouped variables", "definition": "if(set(A) = set(B),1,0)"}, "BsubsetC": {"templateType": "anything", "name": "BsubsetC", "description": "", "group": "Ungrouped variables", "definition": "if(set(B)=intersection(set(C),set(B)),1,0)"}, "Asimple": {"templateType": "anything", "name": "Asimple", "description": "", "group": "Ungrouped variables", "definition": "set(sort(A))"}, "AsubsetB": {"templateType": "anything", "name": "AsubsetB", "description": "", "group": "Ungrouped variables", "definition": "if(set(A)=intersection(set(A),set(B)),1,0)"}, "BC": {"templateType": "anything", "name": "BC", "description": "", "group": "Ungrouped variables", "definition": "if(set(B) = set(C),1,0)"}, "BsubsetA": {"templateType": "anything", "name": "BsubsetA", "description": "", "group": "Ungrouped variables", "definition": "if(set(B)=intersection(set(A),set(B)),1,0)"}, "B": {"templateType": "anything", "name": "B", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(1..4),5)"}, "C": {"templateType": "anything", "name": "C", "description": "", "group": "Ungrouped variables", "definition": "repeat(random(1..4),6)"}, "Bsimple": {"templateType": "anything", "name": "Bsimple", "description": "", "group": "Ungrouped variables", "definition": "set(sort(B))"}, "CsubsetA": {"templateType": "anything", "name": "CsubsetA", "description": "", "group": "Ungrouped variables", "definition": "if(set(C)=intersection(set(A),set(C)),1,0)"}}, "preamble": {"css": "", "js": ""}, "ungrouped_variables": ["A", "B", "C", "AB", "BC", "CA", "AsubsetB", "BsubsetA", "CsubsetB", "BsubsetC", "CsubsetA", "AsubsetC", "Asimple", "Bsimple", "CSimple"], "parts": [{"displayColumns": 0, "displayType": "checkbox", "maxAnswers": 0, "warningType": "none", "minMarks": 0, "marks": 0, "extendBaseMarkingAlgorithm": true, "minAnswers": 0, "showFeedbackIcon": true, "shuffleChoices": false, "choices": ["

$A \\subseteq B$

", "

$B \\subseteq A$

", "

$C \\subseteq B$

", "

$B \\subseteq C$

", "

$C \\subseteq A$

", "

$A \\subseteq C$

"], "variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "scripts": {}, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "type": "m_n_2", "prompt": "

If every element of the set $A$ is also an element of the set $B$ then we say that $A$ is a subset of $B$: $A \\subseteq B$. Which sets are subsets of one another?

", "matrix": ["AsubsetB", "BsubsetA", "CsubsetB", "BsubsetC", "CsubsetA", "AsubsetC"], "showCellAnswerState": true, "showCorrectAnswer": true, "distractors": ["", "", "", "", "", ""]}, {"displayColumns": 0, "displayType": "checkbox", "maxAnswers": 0, "warningType": "none", "minMarks": 0, "marks": 0, "extendBaseMarkingAlgorithm": true, "minAnswers": 0, "showFeedbackIcon": true, "shuffleChoices": false, "choices": ["

$A=B$

", "

$B=C$

", "

$C=A$

"], "variableReplacements": [], "customMarkingAlgorithm": "", "unitTests": [], "scripts": {}, "maxMarks": 0, "variableReplacementStrategy": "originalfirst", "type": "m_n_2", "prompt": "

Sets are equal if they are subsets of each other. Which sets are equal?

", "matrix": ["AB", "BC", "CA"], "showCellAnswerState": true, "showCorrectAnswer": true, "distractors": ["", "", ""]}], "rulesets": {}, "statement": "

Consider the three individual elements $1, 1$ and $2$. If we consider these elements as a single unordered collection of distinct objects then we call it the set $\\left\\{1,1,2\\right\\}$. Because sets are unordered this is the same as $\\left\\{2,1,1\\right\\}$ and because we only collect distinct objects this is also the same as $\\left\\{1,2\\right\\}$.

\n

For example, let $A=\\left\\{\\var{A[0]},\\var{A[1]},\\var{A[2]},\\var{A[3]}\\right\\}, B=\\left\\{\\var{B[0]},\\var{B[1]},\\var{B[2]},\\var{B[3]},\\var{B[4]}\\right\\}$ and $C=\\left\\{\\var{C[0]},\\var{C[1]},\\var{C[2]},\\var{C[3]},\\var{C[4]},\\var{C[5]}\\right\\}$.

", "extensions": [], "variable_groups": [], "functions": {}, "type": "question", "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Daniel Mansfield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/743/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}