Set Notations and Definitions in CSE Discussions

cse 20 discussion n.w
1 / 8
Embed
Share

Explore the concepts of sets, n-tuples, Cartesian products, and set-wise concatenation in computer science engineering discussions. Learn about defining sets, properties of n-tuples, and practical examples to deepen your understanding.

  • Set Notations
  • Definitions
  • Computer Science
  • Engineering Discussions
  • CSE Concepts

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. CSE 20 Discussion Week 1 TA Yuanjun Dastin Huang

  2. Logistics - What is Discussion Session about? - Have a question regarding homework/etc.? - Today s agenda

  3. Review of First 2 Lectures

  4. Notations & Definitions - Set - {} - Order/repetition doesn t matter - n-tuple - () - Fixed length - Order/repetition matters! - String - Order/repetition matters! - Arbitrary finite length - Set Definition - Roster method - Set builder notation - Recursive definition - Cartesian Product - ? ? = {(?,?):? ?,? ?} - Creates set of tuples - Set-wise Concatenation - ? ? = {??|? ? ??? ? ?} - Creates set of strings

  5. Set - Property - {} - Empty set denoted as ? - Order/repetition doesn t matter - 3 Ways to define a set - Roster method - Set builder notation - Recursive definition - Example - The set which contains all natural number from 1 to 5 - The set which contains all even number from 1 to 5

  6. n-tuple - Property - () - Order/repetition does matter - Example - (1, 1) (1) - {1, 1} {1} - (1, 2) (2, 1) - {1, 2} {2, 1}

  7. Cartesian Product - Property - ? ? = {(?,?):? ?,? ?} - Creates set of tuples - Example - ? = 0,1 ,? = 2,3 - ? ? = - Question: A and B both have 2 elements, how many tuples are there in ? ?? - ? = 0,1 ,? = 0,1 - ? ? =

  8. Set-wise Concatenation - String - Order/repetition matters! - Arbitrary finite length - Empty string denoted as - Example - Alphabet = {x, y} - A = x ,B = {?} - A B =? - 1ststep: specify {?|? ?}, {?|? ?} - 2ndstep: write down A B according to definition

Related


More Related Content