Spring 2025 CISC-1100-C01 Homework

  1. Monday, January 13, 2025. Read the course syllabus. Get the textbook and read the Set Theory chapter. Were you able to understand the proof that there is an irrational number on pp. 4–5 of my notes?

    Good news, everybody: I will create an account for each student on the Fedora Linux server storm.cis.fordham.edu. You will use this account to learn the rudiments of the Linux operating system, and to create a little website by writing in HTML, the “Hypertext Markup Language”. We can relate the construction of this website to the topics of this course (the Structures of Computer Science) by emphasizing that a document in HTML is an example of a tree structure: it consists of little things nested inside of bigger ones.

    Fordham says: “On Tuesday February 18th, ALL classes follow a Monday schedule. There WILL BE NO TUESDAY classes.”

  2. Monday, January 27, 2025. Look ahead in the sequences and summations notes so that you won’t be seeing the material for the first time when we do it in class on February 3.

    In class today, we used Venn diagrams to prove one of DeMorgan’s laws on p. 22 of the textbook:
    (AB)' = A' ∩ B'
    See pp. 4– 6 of these notes. Now prove the other law of DeMorgan on p. 22 in the same way:
    (AB)' = A' ∪ B'
    Make Venn diagrams of the two sets (AB)' and A' ∪ B' and show that they have the same territory. Extra credit for serious students: write a proof in symbols that (AB)' = A' ∪ B' like the proof on page 6 of the notes.

    Log into the Linux server storm.cis.fordham.edu and practice the Linux commands in these notes: pwd, cd, ls, more, touch, mv, cp, rm, and wget. Practice editing a file with the vi editor.

  3. Monday, February 3, 2025. ATTENTION. On Monday, February 3, one of the students left their computer in the classroom (room 602 in the Leon Lowenstein Center) after class at 8:45 pm. We left the computer with the guard at the security desk at the entrance to the campus at the northwest corner of Columbus Avenue & West 60th Street. Please let me know what happens.

    By 6:00 pm EST on Sunday night, February 9, 2005, put a file named page.html into the public_html subdirectory of your home directory on our server storm.cis.fordham.edu. You can create this file by downloading my page.html file as we did in class on February 3, but please then use the vi editor to change the content of this file to something more interesting. (While you’re at it, you could correct my minor misspellings and typographical errors.) Here’s the example we looked at in class. Keep on editing, Jake!

    Verify that your web page is visible in any browser in the world by pointing the browser at
    https://storm.cis.fordham.edu/~jsmith/page.html
    where jsmith is your Fordham name. To see the source code (i.e., the actual lines of HTML) of the web page you’re viewing in your browser,

    Admire the web pages of the other students.

    Study the Sequences and Summation notes. On February 10, we will continue with mathematical induction. You could try to download, compile (i.e., use the c++ command to translate the program into an a.out file), and execute the C++ program sum.C on p. 7 of the notes. If you have a pineapple, count the number of spirals in each direction. Are they a pair of consecutive terms in the Fibonacci sequence? Bring it in if you can.

  4. Monday, February 10, 2025. I hereby assign the “masochistic” homework on page 6. Your table will have eight rows, because 8 = 23 = 2 × 2 × 2, and the following eight columns.
    1. p
    2. q
    3. r
    4. qr
    5. pq
    6. pr
    7. p ∨ (qr)
    8. (pq) ∧ (pr)

    To bring this assignment into the realm of the humanly possible, please feel free to use an online truth table generator such as this one. To see how it works, copy and paste the logical expression
    (pq) ∧ (pr)
    into the box where it says
    Enter expression …
    and see what happens. (In this web site,
    ¬ means “not”,
    (the scrunched symbol) means “exclusive or”,
    means “not or”,
    means “nand”, i.e., “not and”.) I am not a hard-hearted man. Thanks, Felix and Max!

    Download the file link.html into the public_html subdirectory of your home directory on storm.cis.fordham.edu and play with the links. Put some links to interesting things into your page.html. (For inspiration, see my page.html.)

    The web homework is due at 6:00 pm EST on Monday, February 17, 2025. The truth table homework should be handed in on paper the next time we meet (Tuesday, February 18).

  5. Tuesday, February 18, 2025. Operate the simple computer at the bottom of page 11. To do this, pick a number in the range 0 to 7 inclusive (i.e., a three-bit binary number), and put its three bits into the three variables p0, p1, p2. (Put the rightmost bit of your number into p0, the middle bit into p1, and the leftmost bit into p2.) Then put values into the other variables on page 12. Did it work? In the variables q0, q1, q2, do you end up with a three-bit binary number that is 1 bigger than the number you started with? (If you start with 7, you should wrap around and end up with 0.) Hand in on paper. Meditate on the “exercise for your imagination” on page 13.

    Extra credit for space cadets only: now that you’ve seen a three-bit incrementer, write a three-bit decrementer. Or expand the three-bit incrementer to a four-bit incrementer.

    Do page 117, exercise 3.3.11 in the textbook. If you have to resort to truth tables, you can use this truth table generator. The button in the generator means “nand”. Hand in on paper.

    Download table.html into the public_html subdirectory of your home directory on storm.cis.fordham.edu and play with the tables. (Check it out: cmajzun has already played with his or her tables.) Then put an interesting table into your page.html file by 6:00 pm EST on Sunday, February 23, 2025.

    Observe that the following three-step syllogism has the same structure as the one on pp. 108–109 about Socrates being mortal.

    1. Page 76 in the textbook says that all statements that can be true or false are propositions.
    2. The bottom of page 93 says that PQ is a statement that can be true or false.
    3. Therefore the statement PQ is a proposition.
    But the conclusion of this syllogism violates the warning on top of p. 93 that says “The statement PQ is not a proposition.”

    I couldn’t remember in class that Immanuel Kant’s two types of propositions are analytic vs. synthetic. Sorry.

  6. Monday, February 24, 2025. The actor Robert Di Niro, playing a retired American president, makes his first appearance in the TV series Zero Day wearing a Fordham sweatshirt. I corrected the embarrasing typos in the class notes.

    Operate the simple computer at the bottom of page 14. (Please press the Recompile button to make sure you’re getting the current version.) To do this, pick two numbers in the range 0 to 7 inclusive (i.e., two three-bit binary numbers). Put the three bits of the first number into the variables a0, a1, a2. Put the three bits of the second number into the variables b0, b1, b2. Then put values into the other variables on page 15. Did it work? In the four variables c0, c1, c2, c3, do you end up with the sum of the two numbers you started with? For your convenience, here are some numbers written in binary. The sum you get might have as many as four binary digits.

     000 (zero)
     001 (one)
     010 (two)
     011 (three)
     100 (four)
     101 (five)
     110 (six)
     111 (seven)
    1000 (eight)
    1001 (nine)
    1010 (ten)
    1011 (eleven)
    1100 (twelve)
    1101 (thirteen)
    1110 (fourteen)
    

    Each of the following tables pictures a relation between the members of the very small set of natural numbers
    S = {0, 1, 2}
    Is the relation in each table reflexive, symmetric, antisymmetric, transitive? Can you identify these relations? For example, is one of them the relation of equality (=) on the set S? How about the relation of inequality (≠) or the relation of less than (<)? (By the way, I made these tables with the HTML TABLE tags. To make the tables easier to read, I colored the entries on the main diagonal.)

    0 1 2
    0 T F F
    1 F T F
    2 F F T

    0 1 2
    0 F T T
    1 T F T
    2 T T F

    0 1 2
    0 F T T
    1 F F T
    2 F F F

    0 1 2
    0 T T T
    1 F T T
    2 F F T

    If you get the join command to work, update your résumé to say “Experience with SQL on a Fedora Linux platform”. Employers will love it.

    Put one or more images into your page.html. (jc208, rr97, rsidbatte did it.) Good news for Windows PC people: the CMD window on your Windows PC has the same sftp command (“Secure File Transfer protocol”) that a Macintosh has.

    At home, I have Safari version 17.4.1 on macOS Monterey 12.7.4. To display Safari’s Develop menu, I pulled down Safari’s Safari menu and selected Preferences…. Then I pressed the Advanced tab, and checked the checkbox ☑ for “Show features for advanced developers”. (I guess we’re advanced developers now.) When viewing a web page in Safari, I pulled down Safari’s Develop menu and selected Show Page Source.

  7. Monday, March 3, 2025. We found a gray Lenovo backpack in the classroom after class, but we left it there. Admire the images in the page.html files: jc208, ac98, cm46, rr97, kzemzami, rsidbatte.

    To get the dimensions of an image file on a Macintosh, select the image file in the Finder and press control-i (or pull down the Finder’s File menu and select Get Info) for information. Under More Info, look for Dimensions.

    Study for the midterm next Monday. It will cover Chapters 1 to 4 inclusive.

  8. Monday, March 10, 2025. No class next week (it’s Spring Break). Watch the total lunar eclipse.
  9. Monday, March 24, 2025.
  10. Monday, March 31, 2025.
  11. Monday, April 7, 2025.
  12. Monday, April 14, 2025.
  13. Monday, April 28, 2025.
  14. Monday, May 5, 2025.