1 / 6

C241 PLTL Session – 10/7/2014

C241 PLTL Session – 10/7/2014. More on sets!. Warm-Up Exercise. Grab a worksheet Begin completing the worksheet in pairs or small groups. Problem 1. What do you think sets are especially useful for?. Problem 2.

seoras
Download Presentation

C241 PLTL Session – 10/7/2014

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C241 PLTL Session – 10/7/2014 More on sets!

  2. Warm-Up Exercise • Grab a worksheet • Begin completing the worksheet in pairs or small groups

  3. Problem 1 What do you think sets are especially useful for?

  4. Problem 2 Which two properties, (that are crucial when dealing with sequences), do not matter for sets?

  5. Problem 3 Are the sets (3, 4, 6, 2, 1) and (6, 1, 3, 2, 4) equivalent?

  6. Problem 4 Visit the SETL website, http://setl.org/setl-server.html, and answer the following questions: (Give both the answer and the SETL code that generated you this answer.) Note that sets are denoted by braces {}, the intersection operator for sets is denoted by *, and the union operator for sets is denoted + in SETL. Using parentheses, (), to denote a set is a more conventional notation than using braces, {}. A = (11, 4, 13, 4, 25, 6, (), (1, 2)), B = (1, 4, 25, 6, (), 17, 8, 9), and C = (4, 7, 8, 9, 10, (11, 12, 13), 12) (i) What is the set difference between A and B? (ii) What is the set difference between C and D = (11, 12, 13)?

More Related