new file: Files/flashplayer_32_sa.exe new file: favicon.ico new file: globe.gif new file: imgs/download.png new file: imgs/zuck.jpg new file: index.html new file: other.ico new file: script.js new file: site.webmanifest new file: sitemap.html new file: styles/backround.css new file: styles/border.css new file: styles/fonts/Titillium_Web/OFL.txt new file: styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf new file: styles/fonts/webfontkit-20221027-163353/generator_config.txt new file: styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2 new file: styles/fonts/webfontkit-20221027-165950/generator_config.txt new file: styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2 new file: styles/style.css new file: tools/2048/.gitignore new file: tools/2048/.jshintrc new file: tools/2048/CONTRIBUTING.md new file: tools/2048/LICENSE.txt new file: tools/2048/README.md new file: tools/2048/Rakefile new file: tools/2048/favicon.ico new file: tools/2048/index.html new file: tools/2048/js/animframe_polyfill.js new file: tools/2048/js/application.js new file: tools/2048/js/bind_polyfill.js new file: tools/2048/js/classlist_polyfill.js new file: tools/2048/js/game_manager.js new file: tools/2048/js/grid.js new file: tools/2048/js/html_actuator.js new file: tools/2048/js/keyboard_input_manager.js new file: tools/2048/js/local_storage_manager.js new file: tools/2048/js/tile.js new file: tools/2048/meta/apple-touch-icon.png new file: tools/webretro/cores/neocd_libretro.js new file: tools/webretro/cores/neocd_libretro.wasm new file: tools/webretro/cores/nestopia_libretro.js new file: tools/webretro/cores/nestopia_libretro.wasm new file: tools/webretro/cores/o2em_libretro.js new file: tools/webretro/cores/o2em_libretro.wasm new file: tools/webretro/cores/opera_libretro.js new file: tools/webretro/cores/opera_libretro.wasm
434 lines
16 KiB
HTML
434 lines
16 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
|
|
<!-- Mirrored from www.mathsisfun.com/activity/subsets.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:38:32 GMT -->
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<!-- #BeginEditable "doctitle" -->
|
|
<title>Activity: Subsets</title>
|
|
<script>reSpell=[["flavor","flavour"],["flavors","flavours"],["recognize","recognise"]];</script>
|
|
<meta name="Description" content="Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents." />
|
|
<!-- #EndEditable -->
|
|
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
<meta name="HandheldFriendly" content="true">
|
|
<meta name="referrer" content="always">
|
|
<link rel="stylesheet" type="text/css" href="../style3.css">
|
|
<script src="../main3.js"></script>
|
|
</head>
|
|
|
|
<body id="bodybg">
|
|
<div class="bg">
|
|
<div id="stt"></div>
|
|
<header>
|
|
<div id="hdr"></div>
|
|
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
|
|
<div id="gtran">
|
|
<script>document.write(getTrans());</script>
|
|
</div>
|
|
<div id="adTopOuter" class="centerfull noprint">
|
|
<div id="adTop">
|
|
<script>document.write(getAdTop());</script>
|
|
</div>
|
|
</div>
|
|
<div id="adHide">
|
|
<div id="showAds1"><a href="javascript:showAds()">Show Ads</a></div>
|
|
<div id="hideAds1"><a href="javascript:hideAds()">Hide Ads</a><br>
|
|
<a href="../about-ads.html">About Ads</a></div>
|
|
</div>
|
|
</header>
|
|
<nav>
|
|
<div id="menuWide" class="menu">
|
|
<script>document.write(getMenu(0));</script>
|
|
</div>
|
|
<div id="linkto">
|
|
<div id="linktort">
|
|
<script>document.write(getLinks());</script>
|
|
</div>
|
|
</div>
|
|
<div id="search" role="search">
|
|
<script>document.write(getSearch());</script>
|
|
</div>
|
|
<div id="menuSlim" class="menu">
|
|
<script>document.write(getMenu(1));</script>
|
|
</div>
|
|
<div id="menuTiny" class="menu">
|
|
<script>document.write(getMenu(2));</script>
|
|
</div>
|
|
</nav>
|
|
<div id="extra"></div>
|
|
</div>
|
|
<article id="content" role="main">
|
|
<!-- #BeginEditable "Body" -->
|
|
<h1 class="center">Activity: Subsets</h1>
|
|
|
|
<p class="center">Please read <a
|
|
href="../sets/sets-introduction.html">Introduction
|
|
to Sets</a> first!</p>
|
|
<p>This activity investigates <b>how many subsets</b> a set has.</p>
|
|
<h2>What is a Subset?</h2>
|
|
<p>A <b>subset</b> is a set <b>contained in</b> another set</p>
|
|
<p>It is like you can choose ice cream from the following flavors:</p>
|
|
<p class="center larger">{banana, chocolate, vanilla}</p>
|
|
<p>You could choose any one flavor <b>{banana}</b>, <b>{chocolate}</b>, or <b>{vanilla}</b>,</p>
|
|
<p>Or any two flavors: <b>{banana, chocolate}</b>, <b>{banana, vanilla}</b>, or <b> {chocolate, vanilla}</b>,</p>
|
|
<p>Or all three flavors (no that isn't greedy),</p>
|
|
<p><b>Or</b> you could say "none at all thanks", which is the "empty set": <b>{}</b></p>
|
|
<p> </p>
|
|
<div class="example">
|
|
<h3>Example: The set {alex, billy, casey, dale}</h3>
|
|
<p>Has the subsets:</p>
|
|
<ul>
|
|
<li>{alex}</li>
|
|
<li>{billy}</li>
|
|
<li>etc ...</li>
|
|
</ul>
|
|
<p>It also has the subsets:</p>
|
|
<ul>
|
|
<li>{alex, billy}</li>
|
|
<li>{alex, casey}</li>
|
|
<li>{billy, dale}</li>
|
|
<li>etc ...</li>
|
|
</ul>
|
|
<p>Also:</p>
|
|
<ul>
|
|
<li>{alex, billy, casey}</li>
|
|
<li>{alex, billy, dale}</li>
|
|
<li>etc ...</li>
|
|
</ul>
|
|
<p>And also:</p>
|
|
<ul>
|
|
<li>the whole set: {alex, billy, casey, dale}</li>
|
|
<li>the empty set: {}</li>
|
|
</ul>
|
|
</div>
|
|
<p>Now let's start with the Empty Set and move on up ...</p>
|
|
<h2>The
|
|
Empty Set</h2>
|
|
<p>How many subsets does the empty set have?</p>
|
|
<p>You could choose:</p>
|
|
<ul>
|
|
<li>the whole set: <b>{}</b></li>
|
|
<li>the empty set: <b>{} </b></li>
|
|
</ul>
|
|
<p>But, hang on a minute, in this case those are the same thing!</p>
|
|
<p>So the
|
|
empty set really has <b>just 1 subset</b> (which
|
|
is itself, the empty set).</p>
|
|
<p>It is like asking "There is nothing available, so what do you choose?" Answer "nothing". That is your only choice. Done.</p>
|
|
<h2>A
|
|
Set With One Element</h2>
|
|
<p>The set could be anything, but let's just say it is:</p>
|
|
<p class="center large">{apple}</p>
|
|
<p>How many <b>subsets</b> does the set <span class="large">{apple}</span> have?</p>
|
|
<ul>
|
|
<li>the whole set: {apple}</li>
|
|
<li>the empty set: {}</li>
|
|
</ul>
|
|
<p>And that's all. You can choose the one element, or nothing.</p>
|
|
<p>So any set with <b>one</b> element will have <b>2</b> subsets.</p>
|
|
<h2>A
|
|
Set With Two Elements</h2>
|
|
<p>Let's add another element to our example set:</p>
|
|
<p class="center large">{apple, banana}</p>
|
|
<p>How many subsets does the set <span class="large">{apple, banana}</span> have?</p>
|
|
<p>It could have <b>{apple}</b>, or <b>{banana}</b>, and don't forget:</p>
|
|
<ul>
|
|
<li>the whole set: <b>{apple, banana}</b></li>
|
|
<li>the empty set: <b>{}</b></li>
|
|
</ul>
|
|
<p>So a set with <b>two</b> elements has <b>4</b> subsets.</p>
|
|
|
|
<h2>A
|
|
Set With Three Elements</h2>
|
|
<p>How about:</p>
|
|
<p class="center large">{apple, banana, cherry}</p>
|
|
<p>OK, let's be more systematic now, and list the subsets by how many elements they have:</p>
|
|
<p>Subsets with one element: <b>{apple}</b>, <b>{banana}</b>, <b>{cherry}</b></p>
|
|
<p>Subsets with two elements: <b>{apple, banana}</b>, <b>{apple, cherry}</b>, <b>{banana, cherry}</b></p>
|
|
<p>And:</p>
|
|
<ul>
|
|
<li>the whole set: <b>{apple, banana, cherry}</b></li>
|
|
<li>the empty set: <b>{}</b></li>
|
|
</ul>
|
|
<p>In fact we could put it in a table:</p>
|
|
<table border="1" align="center" cellpadding="2"
|
|
cellspacing="2">
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td>List</td>
|
|
<td align="center">Number of <br>
|
|
subsets</td>
|
|
</tr>
|
|
<tr>
|
|
<td>zero elements</td>
|
|
<td>{}</td>
|
|
<td align="center" class="larger">1</td>
|
|
</tr>
|
|
<tr>
|
|
<td>one element</td>
|
|
<td>{apple}, {banana}, {cherry} </td>
|
|
<td align="center" class="larger">3</td>
|
|
</tr>
|
|
<tr>
|
|
<td>two elements</td>
|
|
<td>{apple, banana}, {apple, cherry}, {banana, cherry}</td>
|
|
<td align="center" class="larger">3</td>
|
|
</tr>
|
|
<tr>
|
|
<td>three elements</td>
|
|
<td>{apple, banana, cherry}</td>
|
|
<td align="center" class="larger">1</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" rowspan="1" align="right">Total:</td>
|
|
<td align="center" class="larger"><b>8</b></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p class="center">(Note: did you see a pattern in the numbers there?)</p>
|
|
<h2>Sets
|
|
with Four Elements (Your Turn!)</h2>
|
|
<p>Now try to do the same for this set:</p>
|
|
<p class="center large">{apple, banana, cherry, date}</p>
|
|
<p>Here is a table for you:</p>
|
|
<table border="1" align="center" cellpadding="2"
|
|
cellspacing="2">
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td width="400">List</td>
|
|
<td align="center">Number of <br>
|
|
subsets</td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">zero elements</td>
|
|
<td>{}</td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">one element</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">two elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">three elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">four elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" rowspan="1" align="right">Total:</td>
|
|
<td height="30" align="center"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p class="center">(Note: if you did this right, there will be a pattern to the numbers.)</p>
|
|
<p> </p>
|
|
<h2>Sets
|
|
with Five Elements</h2>
|
|
<p>And now:</p>
|
|
<p class="center large">{apple, banana, cherry, date, egg}</p>
|
|
<p>Here is a table for you:</p>
|
|
|
|
<table border="1" align="center" cellpadding="2"
|
|
cellspacing="2">
|
|
<tbody>
|
|
<tr>
|
|
<td> </td>
|
|
<td width="400">List</td>
|
|
<td align="center">Number of <br>
|
|
subsets</td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">zero elements</td>
|
|
<td>{}</td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">one element</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">two elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">three elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">four elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td height="50">five elements</td>
|
|
<td> </td>
|
|
<td align="center"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" rowspan="1" align="right">Total:</td>
|
|
<td height="30" align="center"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p class="center">(Was there a pattern to the numbers?)</p>
|
|
|
|
<p> </p>
|
|
<h2>Sets
|
|
with Six Elements</h2>
|
|
<p>What about:</p>
|
|
<p class="center large">{apple, banana, cherry, date, egg, fudge}</p>
|
|
<p>OK ... we don't need to complete a table, because...</p>
|
|
<div class="center"><b>... you should be able to
|
|
see a pattern by now! </b></div>
|
|
<h2>Doubling</h2>
|
|
<p>The first thing to notice is that the total number of subsets doubles each time:</p>
|
|
<div class="center80">
|
|
<p class="center larger">A set with <b>n</b> elements has <b>2<sup>n</sup></b> subsets</p>
|
|
</div>
|
|
<p>So you should be able to answer:</p>
|
|
<ul>
|
|
<div class="bigul">
|
|
<li>How many subsets are there for a set of 6 elements? _____</li>
|
|
<li>How many subsets are there for a set of 7 elements? _____</li>
|
|
</div>
|
|
</ul>
|
|
<h2>Another
|
|
Pattern</h2>
|
|
<p>Now let's think about
|
|
subsets and sizes:</p>
|
|
<ul>
|
|
<li>The
|
|
empty
|
|
set has
|
|
just <b>1
|
|
subset</b>: <span class="large hi">1</span></li>
|
|
<li>A set with one element has <b>1 subset</b> with no elements and <b>1
|
|
subset</b> with one element: <span class="large hi">1 1</span></li>
|
|
<li>A set with two
|
|
elements has <b>1 subset</b> with no elements, <b>2 subsets</b> with one element and <b>1 subset</b> with two elements: <span class="large hi">1
|
|
2 1</span></li>
|
|
<li>A set with three
|
|
elements has <b>1 subset</b> with no elements, <b>3 subsets</b> with one
|
|
element, <b>3 subsets</b> with two elements and <b>1 subset</b> with three
|
|
elements: <span class="large hi">1 3 3 1</span></li>
|
|
<li>and so on!</li>
|
|
</ul>
|
|
<p>Do you recognize this
|
|
pattern of numbers?</p>
|
|
<p>They are the numbers from <a
|
|
href="../pascals-triangle.html">Pascal's
|
|
Triangle</a>!</p>
|
|
<div class="center"><img src="../images/pascals-triangle-4.gif" width="334" height="245" alt="pascals triangle" /></div>
|
|
<p>This is <b>very useful</b>, because now you can check if you have the right number of subsets.</p>
|
|
<p>Note: the rows start at 0, and likewise the columns.</p>
|
|
<div class="example">
|
|
<p>Example: For the set <b>{apple, banana, cherry, date, egg}</b> you list subsets of length three:</p>
|
|
<ul>
|
|
<li>{apple, banana, cherry}</li>
|
|
<li>{apple, banana, date}</li>
|
|
<li>{apple, banana, egg}</li>
|
|
<li>{apple, cherry, egg}</li>
|
|
</ul>
|
|
<p>But that is only <b>4</b> subsets, how many should there be?</p>
|
|
<p>Well, you are choosing 3 out of 5, so go to <b>row 5, position 3</b> of Pascal's Triangle (remember to start counting at 0) to find you need <b>10 subsets</b>, so you must think harder!</p>
|
|
<p>In fact these are the results: {apple,banana,cherry} {apple,banana,date} {apple,banana,egg} {apple,cherry,date} {apple,cherry,egg} {apple,date,egg} {banana,cherry,date} {banana,cherry,egg} {banana,date,egg} {cherry,date,egg}</p>
|
|
</div>
|
|
<h2>Calculating The Numbers</h2>
|
|
<p>Is there a way of calculating the numbers such as <b>1, 4, 6, 4 and 1</b> (instead of looking them up in Pascal's Triangle)?</p>
|
|
<p>Yes, we can find the number of ways of selecting each number of
|
|
elements using <a
|
|
href="../combinatorics/combinations-permutations.html">Combinations</a>.</p>
|
|
<p>There are four elements in the set, and:</p>
|
|
<div class="bigul">
|
|
<ul>
|
|
<li>The number of ways of selecting 0 elements from 4 = <sup>4</sup>C<sub>0</sub> = <b>1</b></li>
|
|
<li>The number of ways of
|
|
selecting 1 element from 4 = <sup>4</sup>C<sub>1</sub> = <b>4</b></li>
|
|
<li>The number of ways of selecting 2 elements from 4 = <sup>4</sup>C<sub>2</sub> = <b>6</b></li>
|
|
<li>The number of ways of selecting 3 elements from 4 = <sup>4</sup>C<sub>3</sub> = <b>4</b></li>
|
|
<li>The number of ways of selecting 4 elements from 4 = <sup>4</sup>C<sub>4</sub> = <b>1</b></li>
|
|
<li>
|
|
|
|
|
|
Total number of
|
|
subsets = <b>16</b></li>
|
|
</ul>
|
|
</div>
|
|
<p> </p>
|
|
<p>Can you do the same for a set with five elements?</p>
|
|
<p>Complete the following:</p>
|
|
<div class="bigul">
|
|
<ul>
|
|
<li>The number of ways
|
|
of selecting 0 elements from 5 = <sup>5</sup>C<sub>0</sub> = 1</li>
|
|
<li>The number of ways of
|
|
selecting 1 element from 5 = ___________</li>
|
|
<li>The number of ways of selecting 2 elements from 5 = ___________</li>
|
|
<li>The number of ways of selecting 3 elements from 5 = ___________</li>
|
|
<li>The number of ways of selecting 4 elements from 5 = ___________ </li>
|
|
<li>The
|
|
number of ways of selecting 5 elements from 5 = ___________</li>
|
|
<li>
|
|
|
|
|
|
Total number of subsets = ___________</li>
|
|
</ul>
|
|
</div>
|
|
<h2><br style="font-weight: normal;" />
|
|
Conclusion</h2>
|
|
<p>In this activity you have:<br style="font-weight: normal;" /></p>
|
|
<ul style="font-weight: normal;">
|
|
<li>Discovered a rule for
|
|
determining the total number of subsets for a given set: A set with n
|
|
elements has 2<sup style="font-weight: bold;">n</sup> subsets.</li>
|
|
<li>Found a connection between
|
|
the numbers of subsets of each size with the numbers in Pascal's
|
|
triangle.</li>
|
|
<li>Discovered a quick way to
|
|
calculate these numbers using Combinations.</li>
|
|
</ul>
|
|
<p>More
|
|
importantly you have learned how different branches of mathematics can
|
|
be combined together.</p>
|
|
<p> </p>
|
|
|
|
<div class="related">
|
|
<a href="../sets/sets-introduction.html">Introduction to Sets</a>
|
|
<a href="index.html">Activity Index</a>
|
|
</div>
|
|
<!-- #EndEditable -->
|
|
|
|
</article>
|
|
<div id="adend" class="centerfull noprint">
|
|
<script>document.write(getAdEnd());</script>
|
|
</div>
|
|
<footer id="footer" class="centerfull noprint">
|
|
<script>document.write(getFooter());</script>
|
|
</footer>
|
|
<div id="copyrt">
|
|
Copyright © 2020 MathsIsFun.com
|
|
</div>
|
|
<script>document.write(getBodyEnd());</script>
|
|
</body>
|
|
<!-- #EndTemplate -->
|
|
|
|
<!-- Mirrored from www.mathsisfun.com/activity/subsets.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:38:32 GMT -->
|
|
</html>
|