348 cards generated

Salva il tuo mazzo prima che scompaia

Queste flashcard non sono ancora salvate — spariranno se lasci la pagina. Crea un account gratuito per conservarle e sbloccare tutto quello qui sotto.

Salva e studia
  • Save this deck to your account
  • Study with spaced repetition
  • Export to Anki (.apkg) or PDF
Generazioni più grandi e migliori
  • Process documents up to 100 pages
  • Images extracted from your PDFs
  • Sharper text extraction & a more advanced AI model
Sign up free → Free forever · No credit card

Flashcards in this deck (348)

Ricerca in corso...
  • What is the raw material of computation and communication?


    Information

    information computation
  • What are sets used for in programming?


    To define types of objects

    sets programming
  • What is a set?


    A collection of objects without order or repetition

    sets definition
  • What are the objects in a set called?


    Elements or members

    sets elements
  • How can a set be specified?


    By a comma-separated list between curly braces

    sets specification
  • What is the symbol for the empty set?


    Ø

    sets empty_set
  • Give an example of a set with characters.


    {Harry, Ginny, Hermione, Ron, Hagrid}

    sets examples
  • Give an example of a set with numbers.


    {42, -273.15, 1729, 10100}

    sets examples
  • What is the significance of sets in programming languages?


    They underlie any notion of type

    sets programming types
  • What does the symbol represent in set theory?


    It indicates that an object is an element of a set. For example, CSIRAC ∈ {Manchester Baby, EDSAC, CSIRAC}.

    set_theory symbols
  • What does the symbol represent in set theory?


    It indicates that an object does not belong to a set. For example, SILLIAC ∉ {Manchester Baby, EDSAC, CSIRAC}.

    set_theory symbols
  • How can we specify a set succinctly when it has many elements?


    By giving a condition that the elements must satisfy. For example, {x:x is even} represents all even numbers.

    set_theory specifying_sets
  • What does the notation {x:x is even} mean?


    It represents the set of all x such that x is even.

    set_theory even_numbers
  • Can the order of elements in a set affect its identity?


    No, different orders do not affect the identity of the set. For example, {CSIRAC, Manchester Baby, EDSAC} = {Manchester Baby, EDSAC, CSIRAC}.

    set_theory identity
  • What is the importance of the colon : in set notation?


    It separates the variable from the condition that must be satisfied for membership in the set.

    set_theory notation
  • What is an example of a set that is defined by a condition?


    {n:n is even} is a set defined by the condition that n is even.

    set_theory examples
  • What is the general form of set definitions?


    {name : condition}

    mathematics sets
  • How can the set of even integers be expressed?


    {x ∈ Z : x is even}

    mathematics sets
  • What does the notation {x ∈ Z : x is even} mean?


    The set of x in Z such that x is even.

    mathematics sets
  • What is an alternative way to specify a set?


    By giving a rule for constructing each member.

    mathematics sets
  • How can the set of even integers be expressed using a rule?


    {2n : n ∈ Z}

    mathematics sets
  • What does {2n : n ∈ Z} represent?


    The set of 2n such that n is an integer.

    mathematics sets
  • What is necessary for the condition in a set definition?


    It must be precise and clear.

    mathematics sets
  • What is the cardinality of a set?


    The cardinality of a set is the number of elements it contains, denoted by |A| or #A.

    mathematics cardinality
  • How is the cardinality of a set determined?


    By counting the number of elements listed in the set.

    mathematics cardinality
  • What is the cardinality of the set {Harry, Ginny, Hermione, Ron, Hagrid}?


    5

    mathematics cardinality
  • What is the cardinality of the set {42, -273.15, 1729, 10100}?


    4

    mathematics cardinality
  • What is the cardinality of the set {CSIRAC, Manchester Baby, EDSAC}?


    3

    mathematics cardinality
  • What is the cardinality of the empty set {}?


    0

    mathematics cardinality
  • Why is determining the cardinality important in computer science?


    It helps determine the efficiency of algorithms and storage requirements.

    computer_science cardinality
  • What is a common practice when describing large sets informally?


    Listing a few elements and using '...' to imply continuation.

    mathematics informal_sets
  • What is a potential risk of defining sets using English text?


    Imprecision in the definition of the set.

    mathematics sets
  • What does the symbol Ø represent?


    The empty set

    sets mathematics
  • What is the set of positive integers denoted by?


    N

    sets mathematics
  • What does Z represent in sets of numbers?


    The set of all integers

    sets mathematics
  • What is the set of rational numbers denoted by?


    Q

    sets mathematics
  • What is the set of real numbers denoted by?


    R

    sets mathematics
  • What does Z+ denote?


    The set of positive integers (N)

    sets mathematics
  • What is the notation for a closed interval?


    [a,b]

    intervals mathematics
  • What does [a,b) represent?


    A half-open half-closed interval

    intervals mathematics
  • What does (a,b) represent?


    An open interval

    intervals mathematics
  • How do you denote integers within an interval [a,b]?


    [a,b]z

    intervals sets mathematics
  • What is a set of allowed characters called?


    Alphabet

    sets alphabet
  • What is an example of a finite alphabet?


    The 26-letter English alphabet {a, b, c, ..., y, z}

    sets alphabet
  • What is a string over an alphabet?


    A finite sequence of characters from that alphabet.

    strings alphabet
  • What is the length of the string 'babbage'?


    7

    strings length
  • What symbol represents the empty string?


    e (epsilon)

    strings empty_string
  • What does A^k denote?


    All the strings of exactly k characters from alphabet A.

    sets strings
  • What is the set ?


    The set containing just the empty string: A° = {ε}.

    sets empty_string
  • How many strings of length k over an alphabet A are there?


    |A|^k

    combinatorics strings
  • What is |A¹| equal to?


    |A| (the number of letters in the alphabet)

    combinatorics alphabet
  • If A = {0,1}, what is ?


    {000, 001, 010, 011, 100, 101, 110, 111}

    sets binary
  • What is the formula for the number of strings of length k over an alphabet A?


    \(|A^k| = |A|^k\)

    set_theory strings
  • What does A* represent in set theory?


    The set of all finite strings over the alphabet A.

    set_theory strings
  • What is an example of A* for A = {0,1}?


    A* = {ε, 0, 1, 00, 01, 10, 11, ...}

    set_theory examples
  • What does A ⊆ B mean?


    Every element of A is also an element of B.

    set_theory subsets
  • What does A ¢ B signify?


    A is not a subset of B.

    set_theory subsets
  • How is the subset relation illustrated in a Venn diagram?


    Set A is drawn entirely within set B.

    set_theory venn_diagrams
  • What logical implication does A ⊆ B represent?


    If x ∈ A then x ∈ B.

    set_theory logic
  • What is the notation for membership in a set?


    x ∈ A means x is a member of set A.

    set_theory membership
  • What is a proper subset?


    A is a proper subset of B if A ⊆ B and A ≠ B.

    sets subsets
  • What is the relationship between the empty set and any set B?


    The empty set Ø is a subset of every set B.

    sets empty_set
  • What does A ⊂ B imply if A and B are finite?


    A ⊂ B implies |A| ≤ |B|.

    sets cardinality
  • What does A ⊇ B mean?


    A is a superset of B, meaning B is a subset of A.

    sets supersets
  • What is the implication of A ⊇ B?


    Membership of B is implied by membership of A.

    sets implication
  • What is the notation for a proper superset?


    A is a proper superset of B is written as A ⊃ B.

    sets supersets
  • What is the definition of a subset?


    A set A is a subset of B if every element of A is also an element of B.

    sets subsets
  • What does it mean if two sets A and B are equal?


    If A = B, then A ⊆ B and A ⊃ B.

    sets equality
  • How can you prove that two sets A and B are equal?


    Prove that each is a subset of the other: A ⊆ B and B ⊆ A.

    sets proof
  • What does the symbol represent?


    It represents that membership of A is equivalent to membership of B.

    logic sets
  • What does 'x ∈ A if and only if x ∈ B' imply?


    Both conditions either hold or do not hold; they are equivalent.

    logic equivalence
  • What is a maximum clique?


    A clique of maximum size; there is no larger clique.

    graph_theory cliques
  • What is a maximal clique?


    A clique that is not a proper subset of any other clique.

    graph_theory cliques
  • What does A ⊆ B indicate?


    Membership of A implies membership of B.

    sets inclusion
  • What does A ⊃ B indicate?


    Membership of B implies membership of A.

    sets inclusion
  • How do maximal and maximum cliques differ?


    A maximal clique may be smaller than a maximum clique; all maximum cliques are maximal, but not vice versa.

    graph_theory cliques
  • What is a maximum subset?


    A subset with the largest size among all subsets with a specific property.

    set_theory subsets
  • What is a maximal subset?


    A subset that cannot be enlarged without losing the property; it is not a proper subset of another subset with the same property.

    set_theory subsets
  • What is the difference between minimum and minimal subsets?


    A minimum subset has the smallest size; a minimal subset cannot be a proper superset of another subset with the property.

    set_theory subsets
  • In what context are maximum and maximal often treated as synonyms?


    In the context of real numbers, the distinction is often unnecessary, and both terms can mean the same thing.

    mathematics terminology
  • What is the total number of subsets of a finite set B with n elements?


    \(|P(B)| = 2^n\)

    set_theory subsets
  • What is the power set of a set B?


    The power set P(B) is the set of all subsets of B.

    set_theory power_set
  • How does the number of subsets grow as the size of the set increases?


    It grows exponentially as the size of the set increases.

    mathematics exponential_growth
  • What does it mean for two sets A and B to be incomparable?


    A and B are incomparable if neither A ⊆ B nor B ⊆ A.

    set_theory incomparability
  • What is the distinction between maximal and maximum?


    Maximal refers to a property; maximum refers to the largest value with that property.

    mathematics definitions
  • What is the formula for calculating the number of choices for subsets of a set with n elements?


    \(2^{|B|}\), where |B| is the number of elements in the set.

    set_theory formulas
  • What happens when making choices for elements of a set regarding subsets?


    Choices are independent; one choice does not restrict others.

    set_theory independence
  • What does n choose k represent?


    The binomial coefficient \(\binom{n}{k}\) represents the number of ways to choose k elements from a set of n elements.

    combinatorics binomial_coefficient
  • How many subsets of size 0 can be formed from a set of size n?


    There is exactly 1 way to choose 0 elements from a set of size n, which is to choose nothing.

    combinatorics subsets
  • What is the formula for the total number of subsets of a set of size n?


    The total number of subsets is given by \(2^n\).

    set_theory subsets
  • What is a clique in social network analysis?


    A clique is the largest set of people in a network where every person knows every other person.

    social_networks clique
  • What is a mutual stranger set?


    A mutual stranger set is the largest set of people in a network where no one knows any other member of the set.

    social_networks mutual_strangers
  • What is the relationship between subsets and binomial coefficients?


    The binomial coefficients count every subset of a set B exactly once, summing to \(2^n\) for all sizes k.

    combinatorics binomial_coefficient
  • What is the significance of the power set in algorithm design?


    The power set is used to analyze all possible subsets to find optimal solutions in problems like social network analysis.

    algorithm_design power_set
  • What is the number of ways to choose all elements from a set of size n?


    Only 1 way: choose all elements.

    combinatorics binomial_coefficients
  • How many options do we have when choosing 1 element from n elements?


    We have n options.

    combinatorics binomial_coefficients
  • What is the number of ways to choose n-1 elements from n elements?


    We have n options (choosing one to exclude).

    combinatorics binomial_coefficients
  • What is the symmetry observed in choosing subsets?


    Choosing k elements to include is the same as choosing n-k elements to exclude.

    combinatorics binomial_coefficients
  • What is the formula for the number of ways to choose k elements from n?


    \[?inom{n}{k} = ?inom{n}{n-k}\]
    combinatorics binomial_coefficients
  • How do we count the ways to choose k elements in order from n elements?


    Use the formula: \(\(n(n-1)(n-2) imes...(n-k+1)\)\)

    combinatorics permutations
  • What is the factorial of n?


    Defined as: \(\(n! = n(n-1)(n-2)...3 imes 2 imes 1\)\)

    mathematics factorial
  • What is the formula for the number of ways to choose k elements in order?


    \(\frac{n!}{(n-k)!}\)

    combinatorics factorials
  • How many orderings are there for k elements chosen from a set?


    \(k!\) ways to order the k elements

    combinatorics orderings
  • What is the relationship between ordered and unordered choices of k elements?


    ways to choose k elements in order = \(k! \cdot\) (number of unordered choices)

    combinatorics choices
  • What is the formula for the number of subsets of size k from n elements?


    \(\binom{n}{k} = \frac{n!}{k!(n-k)!}\)

    combinatorics subsets
  • Which expression is more efficient for computation: \(\frac{n!}{(n-k)!}\) or \(\frac{n(n-1)(n-2)...(n-k+1)}{k!}\)?


    \(\frac{n(n-1)(n-2)...(n-k+1)}{k!}\) is more efficient

    combinatorics efficiency
  • Why is the order of operations important in computations?


    It affects the accuracy of the result due to number size limitations

    computing accuracy
  • What is a potential issue when computing large or small intermediate numbers?


    It can affect the accuracy of the result

    computing intermediate_numbers
  • What is the binomial coefficient for choosing 2 elements from n?


    \(?inom{n}{2} = \frac{n(n-1)}{2}\)

    math binomial
  • How can we count subsets of a given size recursively?


    Divide subsets into those that include an element and those that don't.

    math recursion
  • In the example with set B = {1,2,3,4,5}, how many 3-element subsets include element 1?


    Count 2-element subsets from {2,3,4,5}: \(?inom{4}{2}\)

    math subsets
  • In the example with set B = {1,2,3,4,5}, how many 3-element subsets do not include element 1?


    Count 3-element subsets from {2,3,4,5}: \(?inom{4}{3}\)

    math subsets
  • What is the total number of 3-element subsets of a set of size 5?


    It's given by \(?inom{5}{3}\)

    math subsets
  • How do we express the total number of 3-element subsets?


    Total = # subsets including 1 + # subsets not including 1

    math counting
  • What is the total number of 3-element subsets of set B?


    It is calculated as the number of 3-element subsets that include 1 plus those that do not include 1.

    sets combinatorics
  • How do you calculate k-element subsets including a specific element b?


    Choose k-1 elements from n-1 elements (those not including b). This can be done in \(?inom{n-1}{k-1}\) ways.

    sets combinatorics
  • How do you calculate k-element subsets not including a specific element b?


    Choose k elements from n-1 elements (those not including b). This can be done in \(?inom{n-1}{k}\) ways.

    sets combinatorics
  • What is the formula for the total number of k-element subsets?


    The total is given by \(?inom{n}{k} = ?inom{n-1}{k-1} + ?inom{n-1}{k}\).

    sets combinatorics
  • What are the base cases for computing binomial coefficients?


    The base cases are \(?inom{n}{0} = 1\) and \(?inom{n}{n} = 1\).

    sets combinatorics
  • How does the recursive method work for computing binomial coefficients?


    It reduces the problem to simpler cases until reaching the base cases, ensuring the process stops.

    sets combinatorics
  • What does Pascal's triangle represent?


    It represents binomial coefficients where each coefficient is the sum of the two coefficients directly above it.

    sets combinatorics
  • What is the value of C(2, 1)?


    The value is 2, calculated as \(?inom{2}{1} = 2\).

    sets combinatorics
  • What is the value of C(3, 1)?


    The value is 3, calculated as \(?inom{3}{1} = 3\).

    sets combinatorics
  • What is the value of C(4, 2)?


    The value is 6, calculated as \(?inom{4}{2} = 6\).

    sets combinatorics
  • What is the complement of a set A?


    The complement of A, denoted by A', is the set of all elements of the universal set U that are not in A.

    set_theory complement
  • What does U/A represent?


    U/A represents everything in the universal set U that is not in set A.

    set_theory universal_set
  • In the context of integers, what is the universal set?


    The universal set can be the set Z of all integers.

    set_theory universal_set integers
  • What is the equation shown in Figure 1.2?


    The equation is 10 = 4 + 6, where (2) = 10, (1) = 4, and (2) = 6 in Pascal's triangle.

    mathematics pascal's_triangle
  • What are some examples of subsets of a universal set of integers?


    Examples include even integers, odd integers, negative integers, and prime integers.

    set_theory subsets integers
  • What is the universe of discourse?


    The universe of discourse is the universal set that contains all elements under consideration.

    set_theory universe
  • What is the notation for the complement of A?


    The complement of A can be denoted by A' or U/A.

    set_theory notation
  • What does A CU signify?


    A CU signifies that A is a subset of the universal set U.

    set_theory subset
  • What is the formula for the size of set A when A and U are finite sets?


    \(|A| = |U| - |A|\)

    sets mathematics
  • What does the complement of A equal?


    \(A^c = A\)

    sets complement
  • What is the definition of the set difference B / A?


    \(B \setminus A = \{ x \in B : x \notin A \}\)

    sets set_difference
  • If A is a subset of B, what is the formula for the size of the set difference?


    \(|B \setminus A| = |B| - |A|\)

    sets mathematics
  • What is the union of two sets A and B?


    \(A \cup B = \{x : x \in A \text{ or } x \in B\}\)

    set_theory union
  • What is the intersection of two sets A and B?


    \(A \cap B = \{x : x \in A \text{ and } x \in B\}\)

    set_theory intersection
  • What does the notation A ⊆ B mean?


    A is a subset of B

    set_theory subsets
  • What does the notation A ⊇ B mean?


    A is a superset of B

    set_theory supersets
  • What is the condition for the size of the set difference |B \ A|?


    It does not satisfy (1.9) unless A ⊆ B

    set_theory set_difference
  • What is the relationship between subsets and supersets?


    A ⊆ B ⇔ A ⊇ B

    set_theory relationships
  • What is the formula for the size of the union of two sets A and B?


    \(|A| + |B| = |A \cup B| + |A \cap B|\)

    set_theory union
  • What does it mean if two sets A and B are disjoint?


    \(A \cap B = \emptyset\)

    set_theory disjoint
  • What is the formula for the size of the disjoint union of two sets A and B?


    \(|A \cup B| = |A| + |B|\) if \(A \cap B = \emptyset\)

    set_theory disjoint_union
  • What is the relationship between the complement of the union of two sets and their complements?


    \(\overline{A \cup B} = \overline{A} \cap \overline{B}\)

    set_theory complement
  • What is the result of counting elements in sets A and B?


    Elements in both sets are counted twice.

    set_theory counting
  • What is the notation for the disjoint union of sets A and B?


    \(A \sqcup B\) or \(A \oplus B\)

    set_theory disjoint_union
  • What is the disjoint union of sets A and B?


    Defined only when sets A and B are disjoint.

    sets union
  • What does Theorem 1 state about union and intersection?


    \(A ?igcup B = A ?igcap B\) when x is in A or B.

    theorems sets
  • What is the complement of the intersection of two sets?


    It is the union of their complements: \(A ?igcap B' = A' ?igcup B'\).

    complements sets
  • What are De Morgan's Laws for Sets?


    They describe duality between union and intersection: \(A ?igcup B' = A' ?igcap B'\) and \(A ?igcap B' = A' ?igcup B'\).

    de_morgan laws sets
  • How can we express Corollary 2 using Theorem 1?


    \(A ?igcap B = A ?igcup B\) by using Theorem 1.

    corollaries theorems sets
  • What is the result of A ∩ (B ∪ C)?


    (A ∩ B) ∪ (A ∩ C)

    set_theory theorems
  • What is the result of A ∪ (B ∩ C)?


    (A ∪ B) ∩ (A ∪ C)

    set_theory theorems
  • How do union and intersection interact?


    Union followed by intersection: A ∩ (B ∪ C). Intersection followed by union: A ∪ (B ∩ C).

    set_theory concepts
  • What is shown in Figure 1.8?


    The relationship between A ∩ (B ∪ C) and (A ∩ B) ∪ (A ∩ C).

    set_theory diagrams
  • What is the symmetric difference of sets A and B?


    \(A \Delta B = \{x : x \in A \text{ or } x \in B \text{ but not both}\}\)

    set_theory symmetric_difference
  • What does the first Distributive Law state about intersection and union?


    Intersection distributes over union: \(A \cap (B \cup C) = (A \cap B) \cup (A \cap C)\)

    set_theory distributive_laws
  • What does the second Distributive Law state about union and intersection?


    Union distributes over intersection: \(A \cup (B \cap C) = (A \cup B) \cap (A \cup C)\)

    set_theory distributive_laws
  • What is the formula for multiplication distributing over addition in numbers?


    \(a \times (b + c) = (a \times b) + (a \times c)\)

    math distributive_law
  • Does addition distribute over multiplication?


    No, generally \(a + (b \times c) \neq (a + b) \times (a + c)\)

    math distributive_law
  • What is the exclusive 'or' in the context of symmetric difference?


    It means belonging to exactly one of the sets, excluding both.

    set_theory symmetric_difference
  • What is the formula for the symmetric difference of sets A and B?


    \(A \Delta B = (A/B) \cup (B/A)\)

    sets symmetric_difference
  • What is the result of the symmetric difference of a set with itself?


    \(A \Delta A = \emptyset\)

    sets symmetric_difference
  • When are two sets identical?


    Two sets A and B are identical if and only if \(A \Delta B = \emptyset\)

    sets theorems
  • What is the relationship between the symmetric difference and complements?


    \(A \Delta B = A^c \Delta B^c\)

    sets symmetric_difference
  • What is a Cartesian product?


    An ordered pair (a, b) consists of two objects a and b together, in that order.

    sets cartesian_product
  • What is the Cartesian product of two sets A and B?


    \(A \times B = \{(a,b): a \in A, b \in B\}\)

    sets cartesian_product
  • If A = {King, Queen, Jack} and B = {♣, ♡}, what is A × B?


    \(A \times B = \{(King, \clubsuit), (King, \heartsuit), (Queen, \clubsuit), (Queen, \heartsuit), (Jack, \clubsuit), (Jack, \heartsuit)\}\)

    sets examples
  • What does R × R represent?


    The set of all coordinates of points in the plane.

    geometry cartesian_product
  • What is the formula for the size of the Cartesian product of two finite sets A and B?


    \(|A \times B| = |A| \cdot |B|\)

    sets formulas
  • What is the Cartesian product of three sets A, B, and C?


    \(A \times B \times C = \{(a,b,c): a \in A, b \in B, c \in C\}\)

    sets cartesian_product
  • What is the general form of the Cartesian product for n sets A1, A2, ..., An?


    \(A_1 \times A_2 \times \ldots \times A_n = \{(a_1,a_2,\ldots,a_n): a_i \in A_i\}\)

    sets general_form
  • What is the size of the Cartesian product of finite sets?


    \(|A_1 \times A_2 \times \ldots \times A_n| = |A_1| \cdot |A_2| \cdots |A_n|\)

    sets cartesian_product
  • How can we express the Cartesian product of identical sets?


    \(A^n\) indicates the Cartesian product of \(n\) identical sets.

    sets cartesian_product
  • What is the example of {0,1}³?


    \(\{(0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0), (1,1,1)\}\)

    sets example
  • How do we represent n-tuples as strings?


    For binary alphabet {0,1}, \(\{0,1\}^3 = \{000, 001, 010, 011, 100, 101, 110, 111\}\)

    sets strings
  • What are and in terms of Cartesian products?


    \(R^2 = R \times R\) and \(R^3 = R \times R \times R\)

    sets coordinates
  • What is the definition of a partition of a set A?


    A partition is a set of disjoint nonempty subsets of A whose union is A.

    sets partition
  • What are the two smallest exponents for any set A?


    \(A^0 = \emptyset\), \(A^1 = A\).

    sets exponents
  • What is the size of A^n if A is finite?


    The size of \(A^n\) is just \(|A|^n\).

    sets size
  • What is a partition of a set?


    A partition of a set A is a collection of nonempty subsets such that every member of A belongs to exactly one subset.

    mathematics set_theory
  • What is one possible partition of the set A = {a, b, c}?


    {{a, c}, {b}}

    mathematics partitions
  • How many parts does the partition {{a, b}, {c}} have?


    2

    mathematics partitions
  • What fails in the collection {{a, b}, {b, c}}?


    Members are not disjoint; b belongs to two members.

    mathematics set_theory
  • What is a real-world application of partitions?


    Classifying plant specimens by species.

    mathematics applications
  • How many partitions are there for a set of size 3?


    5

    mathematics partitions
  • What is the number of partitions for a set of size 4?


    15

    mathematics partitions
  • What is the number of partitions for a set of size 10?


    115975

    mathematics partitions
  • What fails in the collection {{a}, {b}} for A = {a, b, c}?


    The union is not the entire set A; c is missing.

    mathematics set_theory
  • What is an example of a partition of infinite sets?


    { {even numbers}, {odd numbers} } is a partition of the set of nonnegative integers.

    sets infinity
  • What is the coarsest partition of a set A?


    The coarsest partition of A is {A}, which has just one part: the entire set A itself.

    sets partitions
  • What is the finest partition of a set A?


    The finest partition of A is {{a}: a ∈ A}, with one part for each element of A.

    sets partitions
  • What happens if A has one element regarding partitions?


    If A has one element, the coarsest and finest partitions are the same.

    sets partitions
  • How many parts does the finest partition have if A is finite?


    If A is finite, the finest partition has |A| parts.

    sets partitions
  • How many parts does the finest partition have if A is infinite?


    If A is infinite, the finest partition has infinitely many parts.

    sets partitions
  • What is the relationship between coarsest and finest partitions when A has two elements?


    If A has two elements, the coarsest and finest partitions are the only partitions of A.

    sets partitions
  • What does the statement 'int monthNumber;' declare in C?


    It declares that the variable monthNumber has type int and allocates memory for it.

    programming c
  • What does the statement 'char monthName[10];' declare in C?


    It declares monthName as a string of at most 9 characters and allocates memory for it.

    programming c
  • What is the set of possible values for a variable of type int in C?


    Let Int be the set of possible values for a variable of type int.

    programming c
  • What is the set of possible values for a variable declared as a string in C?


    Let String be the set of possible values for a variable that is a string of at most 9 letters.

    programming c
  • What type does the statement 'struct aNewType' create in C?


    It creates a new type called aNewType for objects consisting of an int followed by a string.

    c programming data_types
  • What is the memory allocation for 'aNewType'?


    It allocates memory so that the int is followed by the string in memory.

    c programming memory
  • What type does 'union anotherNewType' represent?


    It represents objects that can be either an int or a string.

    c programming data_types
  • What is the memory allocation for 'anotherNewType'?


    It allocates a piece of memory large enough to contain either an int or a string.

    c programming memory
  • If A is a subset of B (A ⊆ B), what is A ∪ B?


    A ∪ B = B.

    set_theory subsets union
  • If A is not a subset of B (A ⊈ B), what can you say about A ∪ B?


    A ∪ B contains elements from both A and B, but is not equal to B.

    set_theory subsets union
  • Complete: A ⊆ B if and only if Ā ∪ B = ___


    B.

    set_theory subsets union
  • What is an equivalent condition for A ⊂ B using intersection?


    A ∩ B = A.

    set_theory subsets intersection
  • What is an equivalent condition for A ⊆ B using set difference?


    A - B = Ø (empty set).

    set_theory subsets set_difference
  • What does the diagram on the left show?


    It shows the set {a} and its sole subset, Ø (empty set).

    set_theory subsets diagrams
  • What does the diagram on the right show?


    It shows the set {a,b} and all its subsets.

    set_theory subsets diagrams
  • What are the requirements for representing sets in the diagram?


    • Sets are written in curly braces.
    • Smaller sets are lower on the page.
    • Same size sets are on the same level.
    • Arrows indicate subset relations with an extra element.
    • The diagram should be neat and symmetric.
    sets diagrams
  • How to draw a diagram for subsets of {a, b, c}?


    Draw all subsets: - Ø - {a} - {b} - {c} - {a, b} - {a, c} - {b, c} - {a, b, c}

    sets subsets
  • What should be labeled on the arrows in the diagram?


    Label arrows by the sole member of Y \ X for pairs X, Y where X ⊆ Y and |Y| = |X| + 1.

    sets arrows
  • How can you draw the diagram in three dimensions?


    Use layers or spheres to represent sets, with subsets inside larger sets, creating a 3D structure.

    3d sets
  • For a set of n elements, how many sets are there?


    There are \(2^n\) sets in total.

    sets combinatorics
  • How many arrows does the diagram have for n elements?


    There are \(n \cdot 2^{n-1}\) arrows.

    sets arrows
  • How many arrows are labeled by each element of the n-element set?


    Each element labels \(2^{n-1}\) arrows.

    sets arrows
  • How many directed paths are there from set X to set Y?


    The number of directed paths from X to Y is given by the expression \(2^{|Y| - |X| - 1}\).

    sets paths
  • What is the definition of internally disjoint paths?


    Two paths are internally disjoint if no internal set on either path appears on the other path.

    paths disjoint
  • What does it mean for paths to be mutually internally disjoint?


    Paths are mutually internally disjoint if every pair of paths in the collection are internally disjoint.

    paths disjoint
  • What is the characteristic string of a subset A of U?


    It is a string of n bits where the i-th bit indicates if element e_i belongs to A: 1 if yes, 0 if no.

    sets characteristic_string
  • How many subsets does a set of three elements have?


    A set of three elements has 8 subsets.

    sets subsets
  • What is the significance of characteristic strings differing by one bit?


    It allows efficient searching through subsets, requiring fewer changes when moving from one string to the next.

    algorithm efficiency
  • How many regions does a single set divide the plane into?


    A single set divides the plane into two regions: its interior and exterior.

    venn_diagram regions
  • How many basic regions do two intersecting sets divide the plane into?


    Two intersecting sets divide the plane into four basic regions.

    venn_diagram regions
  • What are the basic regions for two sets A and B?


    • A ∪ B
    • A ∩ B
    • A \ B
    • B \ A
    venn_diagram sets
  • How many regions do three sets divide the plane into?


    Three sets can divide the plane into eight regions.

    venn_diagram regions
  • What is the complement of a set in a Venn diagram?


    The complement of a set includes all elements not in the set.

    venn_diagram complement
  • What is the total number of basic regions in a general Venn diagram for n sets?


    \(2^n\)

    mathematics venn_diagrams
  • What is a characteristic of a general Venn diagram?


    Every possible intersection corresponds to a basic region.

    mathematics venn_diagrams
  • What is the maximum number of sets for which a general Venn diagram can be drawn with circles of the same size?


    At most 7 sets.

    mathematics venn_diagrams
  • What is the floor function [n/2]?


    The greatest integer less than or equal to \(n/2\).

    mathematics floor_function
  • What is the ceiling function [n/2]?


    The least integer greater than or equal to \(n/2\).

    mathematics ceiling_function
  • What happens to the sequence of binomial coefficients as r goes from 0 to [n/2]?


    They increase.

    mathematics binomial_coefficients
  • What happens to the sequence of binomial coefficients as r goes from [n/2] to n?


    They decrease.

    mathematics binomial_coefficients
  • What is the significance of drawing Venn diagrams in information visualization?


    They illustrate relationships among collections of sets.

    mathematics visualization
  • What are some criteria for drawing Venn diagrams?


    • Simple curves
    • Symmetry
    • Limited size variability
    mathematics venn_diagrams
  • How can a three-dimensional general Venn diagram be represented?


    By using spheres to represent each set.

    mathematics venn_diagrams
  • What happens to (n) when n is even as r goes from 0 to n/2?


    (n) increases

    mathematics functions
  • What happens to (n) when n is even as r goes from n/2 to n?


    (n) decreases

    mathematics functions
  • What happens to (n) when n is odd as r goes from 0 to (n-1)/2?


    (n) increases

    mathematics functions
  • What happens to (n) when n is odd as r goes from (n+1)/2 to n?


    (n) decreases

    mathematics functions
  • What is the important property for every positive integer r in the range 1 ≤ rn - 1?


    \[\frac{n!}{r!(n-r)!} > \frac{n!}{(r-1)!(n-(r-1))!}\]
    mathematics inequalities
  • Who has more options when choosing subsets of size r? You or your friend?


    It depends on n and r.

    mathematics combinatorics
  • What does |A ∪ B| express in terms of |A|, |B|, and |A ∩ B|?


    |A ∪ B| = |A| + |B| - |A ∩ B|

    set_theory operations
  • What does |A ∩ B| express in terms of |A|, |B|, and |A ∪ B|?


    |A ∩ B| = |A| + |B| - |A ∪ B|

    set_theory operations
  • What does |A ∪ B ∪ C| express in terms of |A|, |B|, |C|, and their intersections?


    |A ∪ B ∪ C| = |A| + |B| + |C| - |A ∩ B| - |A ∩ C| - |B ∩ C| + |A ∩ B ∩ C|

    set_theory operations
  • What does |A ∩ B ∩ C| express in terms of |A|, |B|, |C|, and their unions?


    |A ∩ B ∩ C| = |A| + |B| + |C| - |A ∪ B| - |A ∪ C| - |B ∪ C| + |A ∪ B ∪ C|

    set_theory operations
  • What does i_k represent in the context of sets A1, A2, ..., An?


    i_k is the sum of all sizes of intersections of k of the sets.

    set_theory intersections
  • What is the expression for |A ∪ B| when n = 2?


    |A| + |B| - |A ∩ B|

    sets union
  • What is the expression for |A ∪ B ∪ C| when n = 3?


    |A| + |B| + |C| - |A ∩ B| - |A ∩ C| - |B ∩ C| + |A ∩ B ∩ C|

    sets union
  • What is the general expression for |A₁ ∪ A₂ ∪ ... ∪ Aₘ|?


    Sum of sizes of individual sets - Sum of sizes of pairwise intersections + Sum of sizes of triple intersections - ... + (-1)^{m-1} |A₁ ∩ A₂ ∩ ... ∩ Aₘ|

    sets union
  • What is U₁ when n = 3?


    U₁ = |A₁| + |A₂| + |A₃|

    sets union
  • What is U₂ when n = 3?


    U₂ = |A₁ ∪ A₂| + |A₁ ∪ A₃| + |A₂ ∪ A₃|

    sets union
  • What is the expression for |A ∩ B| in terms of U₁ and U₂?


    |A ∩ B| = U₁ + U₂ - |A ∪ B|

    sets intersection
  • What is the expression for |A ∩ B ∩ C| in terms of U₁, U₂?


    |A ∩ B ∩ C| = U₁ + U₂ - |A ∪ B ∪ C|

    sets intersection
  • How can |A B| be expressed in three different ways?


    1. |A| + |B| - |A ∩ B|
    2. |A ∪ B| - |A ∩ B|
    3. |A| - |A ∩ B| + |B| - |A ∩ B|
    sets intersection
  • What does the shaded region in a Venn diagram for sets A, B, C represent?


    The region(s) that form A ∩ B ∩ C

    sets venn_diagram
  • What is the relationship shown by (A ∪ B) △ (A ∩ B)?


    (A ∪ B) △ (A ∩ B) = A △ B

    sets symmetric_difference
  • What condition do members of A₁ △ A₂ △ ... △ Aₙ satisfy?


    They belong to an odd number of the sets A₁, A₂, ..., Aₙ.

    sets symmetric_difference
  • Does A × B equal A × B?


    No, it does not hold in general. For example, if A = {1} and B = {2}, then A × B = {(1,2)} and A × B = {(2,1)}. They are not equal when the order of elements matters in the Cartesian product.

    sets cartesian_product
  • List all partitions of {1,2,3,4} into three parts.


    • {{1}, {2}, {3,4}}
    • {{1}, {3}, {2,4}}
    • {{1}, {4}, {2,3}}
    • {{2}, {3}, {1,4}}
    • {{2}, {4}, {1,3}}
    • {{3}, {4}, {1,2}}
    sets partitions
  • What are the parts of U defined by sets A, B, C in a Venn diagram?


    1. A ∩ B ∩ C
    2. A ∩ B ∩ C'
    3. A ∩ B' ∩ C
    4. A ∩ B' ∩ C'
    5. A' ∩ B ∩ C
    6. A' ∩ B ∩ C'
    7. A' ∩ B' ∩ C
    8. A' ∩ B' ∩ C'
    sets venn_diagram partitions
  • Can R have a partition with all parts as open intervals?


    Yes, R can be partitioned into open intervals, such as (−∞, 0) and (0, ∞).

    sets partitions real_numbers
  • Can R have a partition with all parts as half-open half-closed intervals?


    Yes, R can be partitioned into half-open half-closed intervals, such as [0, 1) and [1, 2).

    sets partitions real_numbers
  • Can R have a partition with all parts as closed intervals?


    Yes, R can be partitioned into closed intervals, such as [0, 1] and [1, 2].

    sets partitions real_numbers
  • Who was the first president of the United States?


    George Washington

    history presidents
  • What is the capital of France?


    Paris

    geography capitals
  • What is the largest planet in our solar system?


    Jupiter

    astronomy planets
  • What is the formula for the area of a circle?


    \(A = \pi r^2\)

    math geometry
  • What is the formula for standard deviation?


    \(\sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}}\)

    math statistics
  • What are the parts of a neuron?


    • Dendrites
    • Cell body
    • Axon
    biology neuroscience
  • What are the first 5 presidents of the United States?


    • George Washington
    • John Adams
    • Thomas Jefferson
    • James Madison
    • James Monroe
    history presidents
  • What is a function?


    A function consists of: - A set called the domain - A set called the codomain - A specification for each element x of the domain, defining a unique member f(x) of the codomain.

    mathematics functions
  • What three things must be specified for a task?


    • What we start with
    • What we end up with
    • What needs to be done
    task specifications
  • What is the domain of a function?


    The domain is the set of all possible input values for the function.

    mathematics functions
  • What is the codomain of a function?


    The codomain is the set of all possible output values for the function.

    mathematics functions
  • What does f(x) represent in a function?


    f(x) represents the unique value in the codomain corresponding to the input x from the domain.

    mathematics functions
  • How do you sort a list of names?


    1. Specify the type of names and restrictions.
    2. Specify the output as a sorted list.
    3. Perform the sorting task.
    task sorting
  • What is an example of a function task in sports?


    Determining the maximum number of goals kicked by any team in a season based on game records.

    sports functions
  • What is the argument in a function?


    The argument is also called the parameter or the input.

    functions definitions
  • What is the value of a function denoted as?


    The value is denoted as f(x) and is also called the output.

    functions definitions
  • What happens if an argument does not belong to the domain?


    If an argument does not belong to the domain, the function is considered undefined.

    functions domain
  • What is the domain of the function SumOfFourIntCubes?


    The domain is the set of all quadruples of integers (Z×Z×Z×Z).

    functions examples
  • What is the formula for SumOfFourIntCubes?


    The formula is SumOfFourIntCubes(w,x,y,z) = w³ + x³ + y³ + z³.

    functions formulas
  • What is the domain of the function SumOfFourRealCubes?


    The domain is the set of all quadruples of real numbers.

    functions examples
  • What is the formula for SumOfFourRealCubes?


    The formula is SumOfFourRealCubes(w,x,y,z) = w³ + x³ + y³ + z³.

    functions formulas
  • What is the domain of the function SumOfFourIntCubes?


    \(dom(SumOfFourIntCubes) = extbf{Z} \times extbf{Z} \times extbf{Z} \times extbf{Z}\)

    functions domain
  • What is the domain of the function SumOfFourRealCubes?


    \(dom(SumOfFourRealCubes) = extbf{R} \times extbf{R} \times extbf{R} \times extbf{R}\)

    functions domain
  • Why are functions with the same rule considered different if their domains are different?


    • Operations depend on object types
    • Implementation details vary by object type
    • Domain specifies function's reliability
    functions differences
  • What is the image of a function?


    The exact set of possible values of a function, a subset of the codomain.

    functions image
  • What does the domain of a function signify?


    It is a promise that the function will work for every member of the domain.

    functions domain
  • Why might a function have a more modest domain?


    A modest domain can simplify the function's promises, making them easier to keep.

    functions domain
  • Why do we allow 'looseness' in the codomain of functions?


    It is often harder to know the image than to specify a natural codomain. Sometimes it's impossible to know exactly which values are feasible.

    functions codomain
  • What is the codomain in the Maximum Goals example?


    The codomain is the set \(\mathbb{N} \{0\}\) (nonnegative integers).

    functions example
  • Why is the Pompous Python function difficult to compute?


    It is impossible to compute perfectly due to the vast number of programs involved and results on uncomputability.

    functions uncomputability
  • What does the codomain represent in a function?


    It represents a promise that all values returned by the function will be in that set, but not all members must be actual function values.

    functions codomain
  • What is currently unknown about the SumOfFourIntCubes function?


    It is not known whether every integer can be written as the sum of four cubes.

    functions sum_of_cubes
  • What is the codomain specified for SumOfFourIntCubes?


    The codomain is specified as \(\mathbb{Z}\) (the set of all integers).

    functions example
  • What is the practical reason for specifying a codomain?


    It allows for a simple, easily-described set that includes all possible function values, even if it has other values too.

    functions practicality
  • What is a function's codomain?


    The codomain is a set that includes all possible outputs of a function, which may or may not match the actual outputs (image).

    mathematics functions
  • What is a function that maps its domain onto its codomain called?


    It is called a surjection or said to be onto.

    mathematics functions
  • What does the rule of a function specify?


    The rule specifies the relationship between each member of its domain and the corresponding value of the function.

    mathematics functions
  • Does the rule of a function specify how to compute the function?


    No, it specifies what must be done, but not how to do it.

    mathematics functions
  • What is an example of a sorting algorithm?


    Examples include Bucket Sort, Merge Sort, Insertion Sort, and Quick Sort.

    computer_science algorithms
  • What is the Fibonacci sequence?


    The Fibonacci sequence is generated by starting with two 1s and repeatedly adding the two most recent numbers together.

    mathematics sequences
  • Why is the term range avoided in function definitions?


    The term 'range' is confusing as it can refer to either the image or the codomain.

    mathematics functions
  • What is the rule for the function that squares integers?


    The rule is that any integer argument is squared, with domain and codomain as Z.

    mathematics functions
  • What is a function's rule?


    A function's rule associates each argument in its domain with a unique value in its codomain.

    math functions
  • What is the domain of the function Employer?


    {Annie Jump Cannon, Henrietta Swan Leavitt, Muriel Heagney, Winsome Bellamy}

    math functions
  • What is the codomain of the function Employer?


    The set of all astronomical observatories over the last two centuries.

    math functions
  • What are the ordered pairs for the function Employer?


    {(Annie Jump Cannon, Harvard College Observatory), (Henrietta Swan Leavitt, Harvard College Observatory), (Muriel Heagney, Melbourne Observatory), (Winsome Bellamy, Sydney Observatory)}

    math functions
  • Is the function Employer a surjection?


    No, its image is a proper subset of the codomain.

    math functions
  • What is the graph of a function?


    The set of all ordered pairs (x, f(x)) of a function f.

    math functions
  • How can the squaring function be represented?


    As {(x, x²): x ∈ Z}.

    math functions
  • What does the horizontal axis represent in a function's graph?


    The domain of the function.

    math graphs
  • What does the vertical axis represent in a function's graph?


    The codomain of the function.

    math graphs
  • Who is associated with the Harvard College Observatory?


    Annie Jump Cannon

    astronomy observatories
  • What is the domain of the Employer function?


    A set of four people

    mathematics functions
  • What is the codomain of the Employer function?


    Not specified in the text

    mathematics functions
  • What is one way to depict functions visually?


    Using a Venn diagram

    mathematics visualization
  • What does each point in the domain of a function have?


    Exactly one arrow going out of it

    mathematics functions
  • What is the domain of the Sorting function?


    The set of all possible lists of names

    mathematics functions
  • Which observatory is associated with Muriel Heagney?


    Melbourne Observatory

    astronomy observatories
  • What is the purpose of plots in functions?


    To display information about the function

    mathematics visualization
  • What does increasing dimensions in plots not always help with?


    Understanding domains and codomains

    mathematics functions
  • Who is associated with the Sydney Observatory?


    Winsome Bellamy

    astronomy observatories
  • What is the first task in software development?


    To work out what must be done, known as analysis.

    software development analysis
  • What does the analysis process involve?


    Extensive communication with the owner of a problem (e.g., a client).

    software development communication
  • What is a possible outcome of the analysis process?


    A function specification.

    software development functions
  • What is the difference between 'what' and 'how' in software development?


    'What' is the task to be done; 'how' is the method to do it.

    software development tasks
  • What do we design after specifying a function?


    An algorithm for the function.

    software development algorithm
  • What programming language is mentioned for implementation?


    Python.

    software development programming
  • Is the software development process purely linear?


    No, it often involves going back and re-doing parts of previous stages.

    software development process
  • What may highlight problems in the design process?


    The design process itself may highlight problems or gaps.

    software development design
  • What is a function in the mathematical sense?


    A specification of what rather than how.

    mathematics functions
  • What additional aspect does the term 'function' have in programming languages?


    It often includes code or an algorithm for computation.

    programming functions code
  • What is emphasized when using the term 'mathematical function'?


    It indicates that no code or algorithm is given.

    mathematics functions specification
  • What is a function definition format?


    name: domain name(x) codomain, precise description of the function value, in terms of x.

    mathematics functions
  • What does the function f: R → R represent?


    It gives squares of real numbers: f(x) = x².

    mathematics functions
  • What is the domain in the function f: R → R?


    The domain is R (real numbers).

    mathematics functions
  • What is the codomain of the function f: R → R?


    The codomain is also R (real numbers).

    mathematics functions
  • What is a common way to state a function definition?


    The function f : R → R is defined by f(x) = x².

    mathematics functions
  • What does the mapping arrow (→) in a function rule indicate?


    It differs from the ordinary arrow → that goes from domain to codomain.

    mathematics functions
  • What is the alternative form for specifying the rule of a function?


    X → precise description of the function value, in terms of x.

    mathematics functions