Set Theory and Sandwiches (T.G.E. - Part 15 of 40)

January 20th, 2006 · Posted in Adultitis Escape Plan ·

The Escape Plan

I have been asked by Kim and Jason to take part in their Adultitis Escape Plan, a 40-day plan to become more childlike (not childish)
and to reduce stress and prevent dullness, depression and [insert
another word beginning with ‘d’ here]. Of course I’m gonna do it.

Dreary-ness, that begins with ‘D’.


The fifteenth task: Eat something you’ve never had before.

As not everyone who reads my stuff has done university level maths (where I learned this topic), I am going to give a (very) brief overview of set theory.

Ok, so to start, a definition: A set is a collection of unique objects.

Yep, that’s it. A collection of unique objects. That means that in the set of numbers from 1 to 10 I would have: {1, 3, 2, 5, 4, 9, 7, 8, 10, 6}. If you want to have multiple copies of a number in there, it would stop being a set and start being a list. So the fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13) are a list, not a set.

You might have also noticed in that set there is no given order - that’s because sets don’t have  an order. They are just a collection of values.

That’s the definition, but not very useful on it’s own. However, using sets in combination can be quite useful.

An example is probably in order. Say I have two sets: the set of number between 1 and 10 (as given above) and a set of numbers that are multiples of 3  {3, 6, 9, 12, 15, 18}. Using these two sets I can find the set of numbers that are multiples of three and under ten.

To find this set we perform what is known as an intersection - that is, where the two sets intersect each other, or where they overlap when you put them on top of each other.

Number intersection Venn diagram

So the resulting set is {3, 6, 9}.

The other major thing you can do with sets is a union. A union is quite simply putting the combination of two sets together. So, lets take our set that we created last time: {3, 6, 9} and combine it with the multiples of two that are less than ten: {2, 4, 6, 8}.

Number union - Venn again

The resulting set this time is {2, 3, 4, 6, 8, 9} (notice how the 6 only ends up in the set once).
Not hugely interesting, but you can use these two procedures to find out lots of useful things with sets.

Now a real world example.

I usually have peanut butter and vegemite on my sandwiches. So that means I would have the set of sandwich ingredients like so: {PB, V}. I also like to have peanut butter and honey on sandwiches: {PB, H}. So, considering each sandwich a set of toppings, we can perform an intersection and find out that I like having peanut butter on my sandwiches - the intersection of the two sets is {PB}.

Sandwich topping intersection Venn diagram

Now, we can also perform a union on the two sets here and find another combination that I might also like.
This looks delicious.

The union of the two sets of sandwich toppings I like provides this {PB, V, H}.

So, it seems like a good sandwich for me to try would be peanut butter, vegemite and honey.

… insert 5 minutes here…

Not too bad. It’s like eating dinner and dessert at the same time. The vegemite is pretty salty, and the honey is quite sweet, and the peanut butter… it’s peanut butter. Probably not what I would eat every day, but it wasn’t the horror I imagined it would be.

There you go then, a lesson on set theory, and a tasty snack.

RodeoClown: really does eat this stuff.

You can skip to the end and leave a response. Pinging is currently not allowed.

Comments policy:
I'm pretty happy with you to post anything you want, I love reading what other people think about what I write, but I reserve the right to edit any comment, for any reason. Please don't be offended, it's for the best.

Also, If this is the first time you've posted here, you'll notice a small delay before your comment is seen on the site. I clear each person who posts here to try and stop the horrible enslaught of spam that has been unleased upon comments everywhere.

4 Comments to “Set Theory and Sandwiches (T.G.E. - Part 15 of 40)”

Graham Lea Said:
January 24th, 2006 at 9:54 am

You should try PB and banana! It’s been my lunchtime staple since I was about 10. Also consider PB and green apple, and, especially on a cold night, PB, banana, cinnamon and sugar, open grilled until the PB goes hot and runny. Mmmmmmm…… sacrilicious.

RodeoClown Said:
January 24th, 2006 at 10:02 am

Hey Graham,
thanks for the tips, I might try them out :).

Banana, cinnammon (I don’t know where the double letters go in that one, so I put them both in to be safe) and sugar sounds good. Don’t know if I’d add the PB to it or not though.

Fran Said:
February 2nd, 2006 at 9:18 pm

Wow … Ian, I knew you were slightly out of the ordinary, but didn’t think that it was so far reaching :-)
I definitely had a very good laugh about your sandwich toppings and the mathematical explanation thereof. Vegemite in itself sounds horrid to me, peanutbutter I also only eat when I’m pregnant, well and the two of them together would surely knock me out of my sandals.
Sounds like you’re having the timeof your life fighting Adultitis.
Fran

RodeoClown Said:
February 3rd, 2006 at 6:30 am

Thanks Fran,

I don’t how why you don’t like vegemite. It’s great. Espescailly with peanut butter.

Leave a Reply




  

Subscribe without commenting