Question: Problem # 3 - Challenge Set ( 2 2 pts ) This problem is going to explore programming languages through set theory. You don t
Problem # Challenge Set pts
This problem is going to explore programming languages through set theory. You dont need to know
anything about different programming languages to answer these questions, but you may learn some new
things about programming languages by applying the set theory to this problem. First, lets define a few sets:
P Python C Java, C C# Javascript, Visual Basic, Go SQL Fortran
H C C Fortran, Lisp, Basic
G Python Java, Javascript, Visual Basic, Go SQL Scheme, Haskell, Lisp, R MATLAB, Smalltalk
I R MATLAB, Lisp, Python, Javascript
The set P is the top ten most popular programming languages right now cite The set H is the programming
languages that are over years old cite The set G is the programming languages which have a garbage
collector cite A garbage collector means that the programming langauge automatically manages memory
you will learn about this in and The set I is the programming languages which can
be categorized as interpreted languages cite If you took you know that Python is an interpreted
language which means it does not require you to compile it before running it
a Draw the Venn Diagram for P H and I. Assume the universal set U is made up of all programming
languages mentioned above in any set above P H G and I
b In set notation, represent the area in your Venn Diagram which is equal to Your answer should be
in terms of sets P H and I and set operations X etc. Explain in English what this
set represents.
CS : Mathematical Foundations of Computing Fall
Katok & Reckinger Homework# Due: October th
c Write out the contents of the set GP IG P I. Describe in English what this set represents.
Look at the follow sets:
P G
P H I
P H G
H I
P I
P H G
G P H
P H G
P H
d Which of the sets have a cardinality of
e For any sets with cardinality can you find a programming language not listed in our Universal set
that would make these sets nonzero?
f Which of the sets listed have cardinality of
g Write out the sets listed that have cardinality greater than or equal to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
