Logic and computation CS1602 week 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

- Vague flashcards for 12/01/26 exam

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

29 Terms

1
New cards

A set

An unordered collection of objects

2
New cards

2 facts about sets are?

No repeated elements

Order is irrelevant

3
New cards

Is an element of

4
New cards

Is not an element of

5
New cards

|A|

Cardinality, the number of elements

6
New cards

N

Natural numbers

7
New cards

Z

Integers

8
New cards

Q

Rational numbers, fractions

9
New cards

An empty set

10
New cards
<p>Intersection</p>

Intersection

All elements in a and b, A n B

11
New cards
<p>Union</p>

Union

All elements in A or B, A u B

12
New cards
<p>Difference </p>

Difference

Elements that are in A but not B, A \ B

13
New cards

Write orange IS an element of F

Orange ∈ F

14
New cards

Write orange IS NOT an element of F

Orange ∉ F

15
New cards

Write the cardinality of F is 4

|F| = 4

16
New cards

Means infinite

17
New cards

The elements in x will be in both a and b

18
New cards

Not a subset, there is at least one element not in both a and b

19
New cards

A proper subset, where a and b contain the same elements but one is smaller than the other

20
New cards
<p>Remember this rule!</p>

Remember this rule!

Yes

21
New cards

Disjoint sets

Sets that do not contain any elements

22
New cards

Propositional logic

True or False statements

23
New cards

If then

24
New cards

←>

If and only if

25
New cards

Predicate

A logical expression that has a true or false outcome

26
New cards

XOR

One input is true, the other is false

27
New cards

DFA

A way for regular expressions to be expressed mathematically

28
New cards

Regex

The numbers after a set prefix which are random

29
New cards

A propisition

A statement expressing the condition of something