What is the most fundamental property of a Tuple and describe the function of its two main operators. Give an example for both operators.
What is the most fundamental property of a set and summarize the differences between sets and tuples (Discuss the table we made in class). Give an example of a set and a tuple when contrasting the two.
We discussed previously how performing logic was contained within performing algebra on the integers. Put another way we discovered that the operations of the logical connectives were the same as the arithmetic operations on the integers 1 and 0. Explain how a similar relationship exists from the arithmetic operations on the integers to the operations of sets. Put another way, how might the operations of sets be thought of as superseding the arithmetic operations on the integers?
Your repository will contain the following files:
CMSI-2820-HW3/
āāā expected_outputs/
ā āāā demo_1.txt
ā āāā demo_2.txt
ā āāā demo_3.txt
ā āāā demo_5.txt
ā āāā demo_6.txt
ā āāā demo_7.txt
ā āāā demo_9.txt
ā āāā demo_10.txt
ā āāā set_1.txt
ā āāā set_2.txt
ā āāā set_3.txt
ā āāā set_4.txt
ā āāā set_5.txt
ā āāā set_6.txt
ā āāā set_7.txt
āāā .gitignore
āāā mappa.py
āāā README.md
āāā setflix_titles.csv
āāā setflix.py
āāā test_storage_wars.py
āāā tiktup.py
āāā type_helper.py
As a refresher, here is the helper video that goes from complete start to finish for the process of receiving, setting up, and turning in your programming portion of the HW:
The creative endeavor I am suggesting for the Numbers standard is the same as with the Logic standard, integrate your learning into a real world event/experience/memory! (However always remember that you can work out an alternate creative endeavour if you want to involve your hobbies! You can make creative works in any form such as games, drawings, paintings, dioramas, sculptures, videos, fake blogs, memes, anything!) (For instance, while I am working on this HW I am remembering what it was like to visit the grand canyon! Want to break down a hiking trail into Venn diagrams? Create your own rock climbing beta guided by the integers? Go for it!) (Just make sure to talk to me first!)
We saw in class that Numbers, while being an instance in their own right, were a "cover" of sorts for a large world of abstract algebra. We were able to perform what we typically know as "addition" without numbers at all! With that said, the creative endeavor I am suggesting for the number standard is to find abstract algebraic operations in your hobbies!
How do you find abstract algebra in your hobbies? Well, consider what it really means to be associative or commutative and see if you can find that in the interactions of your hobbies! For instance:
Take your abstract algebraic patterns in your hobby and write to me about how they inherently display the properties of abstract algebra! Then try and create a collection of "arithmetic" operations within your hobby!
For instance, I enjoy rock climbing, and a sample process would be potentially investigating the link between addition and combining climbs together that are next to each other. I could even investigate if "down climbing" is a form of beta negation! I could then try and find see if there are ways in which I can rock climb that seem to represent subtraction!
The more properties you include and the more operations you find, the more points you earn!
This optional project can be submitted until one week after the homework due date.
| Component | Points | Description |
|---|---|---|
| Q1 | 5 | Tuples and their operators |
| Q2 | 7 | Sets vs Tuples comparison |
| Q3 | 8 | Sets superseding integer operations |
| Programming | 80 | Storage Wars implementation in Python |
| Optional Section | 20 | Abstract algebra in your hobbies (Points For S2 Only) |
| Total | 100 |