aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/csci4041/hw2prob2.py
diff options
context:
space:
mode:
Diffstat (limited to 'OLD/csci4041/hw2prob2.py')
-rw-r--r--OLD/csci4041/hw2prob2.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/OLD/csci4041/hw2prob2.py b/OLD/csci4041/hw2prob2.py
deleted file mode 100644
index 39e533a..0000000
--- a/OLD/csci4041/hw2prob2.py
+++ /dev/null
@@ -1,18 +0,0 @@
-
-# Watch the value of K!!!
-# - Jeremiah
-def making_sets(n, k, e, s):
- if k == 0:
- print(s)
- else:
- for e_i in range(e, n + 1):
- s = set.union(s, {e_i})
- making_sets(n, k - 1, e_i + 1, s)
- s = set.difference(s, {e_i})
-
-def make_sets(n, k):
- making_sets(n, k, 1, set())
-
-make_sets(4,3)
-print()
-make_sets(6,1)