#discrete-math
1 messages · Page 113 of 1
'not really sure why one value should be able to give two different results'
the definition of a relation is just
a subset of a cartesian product ig
you would have problems with this if ur dealign with af unction
a function
infact a function is just a relation that doesnt allow this not really sure why one value should be able to give two different results
well yeah cus it makes no sense as a function
yea yea
why wouldnt you
what
anywayss
you got it now garllak?
can you write me out an example
of a relation over A
A = {1,2,3}
which is transitive
relation over a
a relation over A is just from AxA to A
I guess R = { (1,1),(1,2),(2,1),(2,2)}
what
yeah
so it's ok?
your correct
ok
not really, I already kind of understand these things, the problem is I can't demonstrate it properly when it comes to the tests
it's only when it's very clear what exactly is happening that i can give you an answer
and I just want to finish this course and move on
yeah
does anyone know finite state automata ?
like it's not even knowledge since that would require me to be able to actually apply it
feels more like a poorly formulated IQ test
LOL
I have been busy with other courses though
oh ok
all exams are like this though
they test you on the one thing you know, or they don't
that's really it
and then it's a question of precision
not sure tbh
elaborate
please
It's just it's not really knowledge, it just tests if you can recognize these patterns without actually understanding what they are or used for, memorize an algorithm or just throws you an easy question that you forgot to check and would never be an issue in real practice anyways
oh
Neither is worth being entitled 'knowledge'
these are thing good access to data and experience and basic feedback can solve
not true enlightenment
if that is even a thing

@tawny hollow Do you have a question on FA? Just ask
Oh yes let me show you
I'm not sure if this is correct but I'm trying to do (ab)* + (ba)*
@tidal plinth
Is q₀ your start state?
Yes, sorry I forgot to put that initial arrow for it
That's okay. And this is an NFA?
FSA
Deterministic? But you've got multiple arrows with the same label going out of each state
Both are finite state automata (and are actually equivalent in power). They're just different models
Oh ok
In a deterministic finite automaton, each state must have exactly one leaving/outgoing arrow for each symbol in the alphabet (here, one for a, one for b), so that given a state and a symbol, there is a unique next state
Ahh
Okay, here we want (ab)* + (ba)*. It's either one or the other.
So ababab is allowed, and so is bababa, but not abbaab
Yes
Okay, now suppose I have a word in this language, and I tell you that its first letter is a. Then what is the second letter (and should there be one for sure)?
Ys, sigma {a,b}
No I mean, I have a word in this language: a??????. Do you know what the second letter of this word is (given that the first is a)?
Can a be the second letter?
No
So it must be b
And ab is a valid word, so if your machine reads a first (while it's in the start state), then the next thing it reads must be b, and then that string should be accepted
So you should have
(q₀) -a→ (q₁) -b→ ((q₂))
where q₂ is an accept state.
[Obviously this is incomplete, but you must have this much]
But also, the second letter should not be a, so in q₁, if you get an a, then it should go to another state from which you can never get to an accept state, no matter what later input is received
[Such a state is called a trap state. It's simply a state from which all outgoing arrows lead back to itself. So here, we'll have a trap state with two arrows leaving it, labelled a and b, but both loop back to itself. And this won't be an accept state]
So we also have:
(q₁) -a→ (t) ⊃⊃
(where those ⊃s are my way of drawing two self-loops. Label one with a and one with b)
Do you follow so far?
ghosted, rip
Sure, no problem
right im back @tidal plinth
Okay, so read and tell me if you've understood it so far
I don't mind listening, but can't talk right now
ah thats fine
Yeah
Hm, the idea of a trap state [which is just a construction] is to have a state that you can never come back from, if you make a fatal mistake
(Which is possible only in some languages)
All
as appear beforebs, or allbs appear beforeas
Did I hear you correctly?
Okay, so the string must be either aa⋯abb⋯b or bb⋯baa⋯a
(with some m as and some n bs)
And what's the regular expression for aa⋯a?
And that should be followed by b*
So a*b*
+ b*a*
Yeah, so a*b* ≠ (ab)*
Nope, they're not equal
No, (ab)* means you can repeat ab zero or more times
So that'd give ε, ab, abab, etc.
Okay, we'll still need a trap state, because it's possible in this language to go wrong (irreparably)
I'll explain
What I mean is: Consider the language of all {a, b}-strings that end in a.
Is it possible, when constructing a string in this language, to make a "fatal" mistake?
No, because you can always just add an a at the end and it'll be an accepted string
So in the automaton for this language, you don't need anything like a trap state.
But consider the language of all {a,b}-strings that begin in a. Is it possible to make a fatal mistake here?
If your string begins with a b, then no matter what you do, you can't undo that and make it begin in an a (in the same string)
So if the automaton for this language sees a b when it's in the start state, it should go to a state from which there is no way to later get to an accept state. Makes sense?
Well a trap state is literally a state from which there is no escape — which means all arrows/transitions lead back to itself (immediately)
So you simply make a state in which all leaving arrows loop back to itself
If the alphabet is {a, b}, a trap state, say t, will look like this:
(t)⊃⊃
[Those ⊃s are badly drawn self-loops. One's labelled by a and the other by b]
Meaning, if you're in the state t, and you see a, then it comes back to t. Same for b
Yes, a double-loop here because the alphabet has two symbols
Yes. (Just add the labels)
Okay, now suppose (for a*b* + b*a*), you're reading a string and you see
aba
Is this a valid string (so far)?
Correct, it's not. It's not in the form aa⋯abb⋯b or bb⋯baa⋯a.
And can it be made into a valid string by adding something to it after this point?
Remember, whatever you add, nothing will get deleted
If the string is supposed to be in the first form, that is, aa⋯abb⋯b, then there shouldn't have been an a after the second b (in aba)
And no matter what you add later, that second a cannot be erased, so you can't force the string into the first form.
And it's obviously not in the second form either, because it begins with an a, not a b
So if you see aba, you know the string is not in the language, no matter what comes later
Which means, you immediately send it to a trap state
[Formerly a part of the wall of text]
oh boy now that's a wall of text
Guess I best delete that. It's not very useful for anyone else with the other side of the conversation missing
Discord doesn't make that easy… -_-
or you just don't care
I wish there was a multiselect delete
I think I wil need a hint
Huh why did that individual not reply?
voice chat
ah, i see
One-sided voice chat, since I couldn't talk at the time (nighttime here; didn't wanna disturb the wife)
👌
Can anyone help me with this 3.6 (b) here?
Aren't SIY and Y two distinctive normal forms?
To me, you'll have to provide some definitions; in particular, the definition of fixed-point combinator, SI and that equality sign with the beta and w subscripts
His exercise is from this book
So all the definitions you need will be in here too
uh
your answer is way too large i can guarantee that
why is your denominator 11!*10!?
there are 11! ways to place the A and G beside each other?
how
why is that true?
This is not an explanation at all of why it's 11!
Are you sure there's 11 ways to place the a and g?
Can you list them for me?
that's only one of them
List them for me
There are no a's or g's in the picture
These are the only ways to place a and g next to each other?
No other ways for the letters a and g to be next to each other?
there we go
$$A = {n \in \mathbb{N} : 5n + 1}$$, $$B = { 5n + 1: n \in \mathbb{N} }$$
SushiHammer:


@wanton sable what's that show in your pfp
could anyone show me where i went wrong for #21
the problem asks to show that it is logically equivalent (a word cut out in my picture)
So is $\leftrightarrow$ an iff
Darkrifts:
yes
Darkrifts:
It seems like you put true above
omg, i confused implication
with iff
im a dummy
i was evaluating as if it was ->
not <->
you also fucked up the bottom line I think
Like on the p iff -q one
ah okay tyvm
But yeah, $\iff$ is not $\to$
ah okay good to know
how can i detemrine if the compound proposition above is satisfiable
without a truth table
nvm watched a video on it
We discuss what it means for a proposition to be satisfiable. We then give some examples.
FaceBook: https://www.facebook.com/MathProfPierce
Twitter: https://twitter.com/MathProfPierce
Website: https://www.professorheather.com
Patreon: https://www.patreon.com/user?u=13522455
i'm confused, shouldn't the absolute value be a positive value since it represents distance? why is it defined as -x for all x <= 0 ?
'positive value since it represents distance' Eh that's a more geometric way of looking at things. You can interpret it as the distance of a point on the real line from the origin.
If you look closely at that portion of the definition, x is negative or equal to 0. If x = 0, then -x = -0 = 0. If x<0, then -x > 0. Hence, -x is, indeed, positive.
ah okay thanks! i can see how it works out with your explanation
if x is negative then -x is positive @wanton sable
thanks ann
So I've been working on this for an hour or so
yohst:
Compile Error! Click the
reaction for details. (You may edit your message)
I did this but I don't think it's right
yohst:
Compile Error! Click the
reaction for details. (You may edit your message)
this is what my TA told me but I guess I just was confused about it
I did x \notin B for the sake of trying to disprove it? but I feel like if I had done x \in B I also could've disproved it in the way I disproved x \notin B.
how so?
like what if i said like Let x \in B. and then I went since x \in A \setminus B that x \in A and x \notin B but that contradicts our earlier statement that x \in B
so x \notin B is true by contradiction?
or does it not work that way
If you're only assuming that x \in B, how do you know that x \in A \backslash B
but it still doesn't work
if you don't assume that x \notin B, then you can't say that x \in A \ B
Uh, the definition of A \ B is that x \in A and x \notin B
so unless you assume that x \in B, you can't say that x \in A \ B
but in the case where we assume x \notin B we end up using B \ A where x \in B
does it have something to do with the fact that A\B comes first in that equation A\B = B\A?
idk im just grasping at straws
The definition of A \ B is that x \in A and x \notin B
To be able to say that x is in A \ B
you need to know both things
that x \in A and x \notin B
sorry I'm new to proofs so it's just an unfamiliar way of thinking
so say it was B\A = A\B and I use my original answer where I assume x \notin B to make a proof by contradiction. wouldn't I not be able to say that x is in B\A because although x \notin A, x \in B?
mb messed up the end there
how do you know that x \notin A?
bc we assumed that B\A = A\B I guess?
why would that tell you that x \notin A?
uh let me think some time over that
this is hard to process im sorry
that makes more sense but i need to process it
take your time
that makes so much sense
my mind has been blown by this simple fact
thank you so much

(and harder)
;-;
if only i wasn't a math major
you get to experience all the mindblowning coolness at least
And I wish I'm a math major😂
@modern hamlet uh still having trouble with this?
presmo:
Compile Error! Click the
reaction for details. (You may edit your message)
What do you think?
@spice lance What have you done in order to show that both expressions are equivalent?
i was wrong it should be
$p\iff \lnot{q} = (p\land{\lnot{q}}) \lor (\lnot{p} \land{q})$
presmo:
Once again, same question
What have you tried?
If they’re the same, prove it. If they’re not, prove it. You can do it by playing around with the logical function to the right of the equals sign
The way I would do it would be to distribute:
$(p \land \lnot{q}) \lor (\lnot{p} \land q) \iff [(p \land \lnot{q}) \lor \lnot{p}] \land [(p \land \lnot{q}) \lor q]$
Abhijeet Vats:
So, what can you do with that?
I need help with this question
A dec-string d1,…,dn is bad if di=di+1 or di+di+1=9 for at least one i∈{1,…,n−1} and it is good otherwise. What is the number of good dec-strings of length n?
sorry my latex is not very good
What would b be in this case? (or would this go in proofs-and-logic)
It would be false then
Yes
So for the case of d, it would not be an assertion though
I would say so
I can see a situation where d could be an assertion if you were doing a proof by case distinction
It’s not an assertion here Vats
Those are the two examples we were given of not being true/false
But without more context, I suppose d can’t be treated as one here
alright, also since in e it restricts the x to real numbers it would be false right
sqrt(x^2) = |x|
ahh so its true then
Is it?
sqrt((-2)^2) = -2, by the assertion. However, sqrt((-2)^2) = |-2| = 2, based on what I’ve written above
alr okay
Also, I’d say that for d, you should elaborate on the possibility of it being an assertion in a proof
How would I do that
@spice lance dafuq, what the fuck are you doing in your first line lol
demorgans law
You negated the equivalence and equated it to the equivalence
Bruh
Bruh I told ya to distribute
$(p \land \lnot{q}) \lor (\lnot{p} \land q) \iff [(p \land \lnot{q}) \lor \lnot{p}] \land [(p \land \lnot{q}) \lor q]$
Abhijeet Vats:
Then, distribute again. Notice that you’ll get p or not(p), which is a tautology
So you can just throw it away
Then, all you get in the first bracket is not(q) or not(p), which is basically just p => not(q)
You don’t need to use the De Morgan Laws over here
ok ill give it a shot
Okay, if you need a proof for it, I can give one to you.
By the biconditional law, you have:
$(p \iff \lnot{q}) \iff [(p \implies \lnot{q}) \land (\lnot{q} \implies p)]$
Abhijeet Vats:
Now, you can show, rather easily, that the following is true:
$(A \implies B) \iff (\lnot{A} \lor B)$
Where A & B are propositions
Abhijeet Vats:
Compile Error! Click the
reaction for details. (You may edit your message)
We can apply that to what we have above:
$(p \iff \lnot{q}) \iff [(\lnot{p} \lor \lnot{q}) \land (q \lor p)]$
$(p \iff \lnot{q}) \iff [[(\lnot{p} \lor \lnot{q}) \land q] \lor [(\lnot{p} \lor \lnot{q}) \land p]]$
Abhijeet Vats:
All I've done is to apply distributivity. Then:
$(p \iff \lnot{q}) \iff [[(\lnot{p} \land q) \lor (q \land \lnot{q})] \lor [(\lnot{p} \land p) \lor (\lnot{q} \land p)]]$
Abhijeet Vats:
Then, notice that you have two absurdities in there. So, you can get rid of them and you'll arrive at what you wanted to show
@spice lance
oh baby
another one in 2804
@chilly granite if you're able to do 7 and 8, 9 shouldn't be much more work
like, you can define a dec-string to be strictly-k-bad if for some i, d_i = d_{i+k} or d_i + d_{i+k} = 9
and have a nice formula in terms of k, n for strictly k good dec-strings
then a dec-string is k-good (the normal k-good) if it's strictly N-good for all N from 1 to k
Are there any kind of YouTubers that teach discrete math or are they a myth
depends i guess
what u wanna find
ive had shit luck for proofs with equivalence but u might not
what's a safe set 
presmo:
and i dont see how
@spice lance Your book's statement is a bit fucked
There exists an n in which set?
Depending on the set and the context, that's true because n = 0 does satisfy 2n = 3n.
real numbers
and oh i forgot to consider that
ur question is better suited for probability
ask there
i mean i dont disagree, but this could also be rephrased for a probability course
up to you tho
Can I get help on question A
what's giving you trouble?
why is it saying "x is a odd number" at "A ="
Is it possible that you can link me to a website where I can learn for this level of sets
On youtube I'm just shown the basics
A is a set in thid context
So the problem is saying in the universe 1-10 for all natural numbers, there is a set A that has all the odd numbers
And its then asking you to find the cardinality of that set first
@rigid sentinel make sense?
Do I have to find out all the numbers for A, B and C before starting the part a) question?
If you're having trouble with the problem sure
If I'm correct, C is basically 2, 3, 4?
A is the odd numbers, so 1, 3 , 5 ,7, 9
Yes
B is 1, 4, 9
Cant help you much with B i have no idea WTF a square number is, im not used to english math
You got that one yourself
If it means squared numbers between the universe numbers of 1 - 10, it has to be 1, 4, 9. 1 squared is 1, 2 squared is 4, 3 squared is 9.
That's only if the question is asking me that
unless i've misunderstood
Ah right
I've never had to use those ever
You got the rest of the problem figured out?
So if those values I have are correct for A, B and C, now I can begin to answer part a)
Say if you need more help
I'm going to skip part a)
because I think I know how to work out part b)
I'll attempt part b) and come back
Well you have already done the hardest part of a
Yeah because in problem a its just asking you things like what is the cardinality of A
B = {1, 4, 9}
P(B) = {∅, {1}, {4}, {9}, {1,4}, {1,9}, {4,9}, {1,4,9}}
That's my attempt for B
and i'm not sure if it needs the cardinality aswell, doesn't say and I'm new to this so I'm not sure if it needs the carditality for those type of questions by default.
You cant tell if its asking you for the cardinality?
I mentioned cardinality because I'm doing revision using a youtube video and this individual is mentioning cardinality
n = |A|
Yeah n means any number
2 to power 3 |P(A)| = 8
The cardinality of A id a number
But thats not what the problem is asking
I just said it
I mean
That is notation for cardinality
just the symbol
|
on its own
ohh
so anything with | | is the symbol notation for cardinality
if you said what is |A| do I say 8?
2n is |A|
Its ok
Tell me what is the cardinality
The cardinality is 8
I think it means the number of values, there's 8 in my answer
no no
the number of values
in B
so 3
ah, not attempted A
Attempted A? Whats that lol
so I know that the ∩ symbol means what they both have in common
Yes
so depending on how many numbers in common, the cardinality is the number of values in common?
Thats it
and same goes for C
now my issue is, how am I supposed to get my working out onto text
I'll attempt it now and come back
really?
But good luck
yep working out is needed
ok i'ma attempt it now
Part a)
B = {1, 4, 9}
C = {2, 3, 4}
|A| = 5
|A|∩|B| = 2
|C| = 3```
I'm trying to think about how I can put the working out into text
oh
i just found out in a past paper
Tbh you're right, it looks fine to me aswell having it as how I put it
Looks good
Might have more luck in the #probability-statistics channel with this question
Ooh thanks, my bad @whole cobalt
C = {2,3,4} and U = {1,2,3...,10} which means C' = {1,5,6,7,8,9,10}
Probably, we used different notation in our course
But no idea what C\B means
you used this?
No
Yes?
B = {1, 4, 9}
C = {2, 3, 4}
so my attempt was this
B x C = { (1,2), (1,3), (1,4), (4,2), (4,3), (4,4), (9,2), (9,3), (9,4)}
does it look right
Yep
That looks right to me
Also you can just multiply the cardinality of them to get the cardinality of A x B
So 3 times 3
= 9 in cardinality of theor cross product
Yes
Going to do research on the \ question
No idea what it is
Never saw it in my course
I suppose it could be an XOR but who knows
That's your set difference
Yes, that's the same thing as the set difference.
Indeed.
Yes. In that situation, you'd want all the elements that belong to B and do not belong to C.
Ah
X = {0,1,2,3...,15}
So F can only be the prime numbers in that list
F = {2, 3, 5, 7, 11, 13}
X = {1,2,3...,20}
So G can only be the multiples of 3 in that list
G = {3,6,9,12,15,18}
X = {1, 2, 3, 4, 6, 9, 12, 18, 36}
H = {1, 2, 3, 4, 6, 9, 12, 18, 36}
looks good to me
Sweet
I'm going to have a break for today, I have a headache, thank you for all your help mate
yeah np
why do you list x as a set?
I don't write X in the working out when I'm submitting it.
that was just for the people monitoring my work in this channel
I've worked out what the values of F, G ,H are
However in the next part(B) of the same question it still uses A, B and C
Do I replace A with F, B with G and C with H?
seems like b) has nothing to do with a)
and it just wants you to draw venn diagrams with labels A, B, C
That's really confused me
so for b), I'd just draw a Venn diagram for (i), how would I illustrate it? Just plot on the A, B and C?
I've done this so far
you would illustrate it by shading in the area, or "elements" of the set being described, its just asking for the visual representation
yeah, that's what i think is being asked
like, in general a venn diagram for 3 sets would look like
maybe with a big circle around for the universe
then you can label each circle differently with A, B, C
and shade the appropriate area
Ah, so for part a), it's that Venn Diagram that Lochverstärker has just showed me and for part b) it's to shade in which is what fei has told me
yea, which section(s) would that be
Are you asking me which sections I'd need to shade in?
Also, would I need to shade in (AnB) in a different colour to nC'
you have to read the whole expression
1 colour?
shade in $(A \cap B) \cap C'$
Lochverstärker:
Sweet
the statement $\cap C'$ makes no sense
Lochverstärker:
(it is not a set)
I'll attempt the shade and then come back
ok
You want me to stick with this one?
Yes, that's perfect
Is it correct?
Yes. (A ∩ B) is the space A and B shares, then ∩ C' means to avoid any space that has C
what you shaded for now is not $B \cup C$ though
Lochverstärker:
oh
I'll come back to that later
F = {2, 3, 5, 7, 11, 13}
G = {3,6,9,12,15,18}
H = {1, 2, 3, 4, 6, 9, 12, 18, 36}
is this right
venn diagram for the values above
2nd one
Cheers, but have I answered the question correctly?
i didnt check if your answer was correct but i'd assume so?
I’m having a hard time and I only have 2 attempts left
@rigid sentinel
Yes that looks good
Plz I need help ^^
Don't understand what this question is asking
p means "I learned to play a musical instrument" r means "I own a guitar"
so would my answer be something like "I learned to play a musical instrument" and "I do not own a guitar"
since negation
I'm not sure if I'm understanding the question correctly
Yea that’s correct
can someone help me check my answers to this please (my answers are to the right). tbh i didn't really understand this question and it seemed too simple which probably indicates i did something wrong here
not sure if i'm writing the intervals correctly and my answer to 4. is probably wrong too
Not an answer to your question, but $|x|=\begin{cases}x&\text{if }x\geq0\-x&\text{if }x\leq0\end{cases}$ is sacrilegious as when $x=0$ both choices are valid
Whoever:
but then |x|=0 under both choices
still
wat
im a second year in university
same
and im stuggling on my last 2 assignments for finite math

yeah
my grade is currently a 90 and im afraid to drop from a 90
kk lol ill ask in the morning im go bed rn
Ok, ttyl
but ty for the info ill be back tmr
if i have a value like 0 <= x <= -4 this indicates x is the empty set right
since u cant find an x that satisfies that equality
I’d say so, yes
Nice
havel hakimi algorithm
at least in general, sometimes you can get it quicker
e.g. using handshaking lemma
Yes, go around the outside of the triangle
what do you mean?
Can someone help me with this
7^82 mod 100
I got 45
But its not correct can someone explain why?
Why don't you explain what you did?
I need to prove that $(2^a-1) \textrf{mod} (2^b-1) = 2^{a \textrf{mod} b}-1$
sockratees:
so i wrote that $2^a-1 = k_1 (2^b-1)+2^{a mod b}-1
$2^a-1 = k_1 (2^b-1)+2^{a mod b}-1$
sockratees:
which is equivalent to
$2^a-1 = k_1 (2^b-1)+2^{a-k_2 b}-1
$2^a-1 = k_1 (2^b-1)+2^{a-k_2 b}-1$
sockratees:
but i really dont know where to go from here
okay this is equivalent to what you had
if a<b you are done, so try the other case
@dusk sandal
wait this is done?
like i get the other cases
but i dont get how this is a completed?
a mod b = a
how do you do the other case?
not that, the other case is a>=b
you can split that into more cases
and b > a
i understand the a mod b = 0 case
as well as the a < b
im confused with the last case
what have you done so far for the last case?
the latex above
how about try subtracting 2^(a mod b)-1 from both sides?
then all you are doing is proving that something is divisible by 2^b-1
rosen is the classic
complete it
yeah, just different notation
Ok I've made a full attempt
I've shaded in all objects that belong to B and C, so even if it's the smalls gabs that belong to A, it won't matter as they still belong to B and C
ur missing stuff
then \ means to shade BANDC not A
x is in B or C and x is not in A complement
(BUC)\A' is the set of all objects that belong to BUC but do not belong to A'.
no whay
I'm confused, do I shade in A aswell?
No. First of all, where is B U C in the diagram?
Okay. Where's A'?
:/
Am I wrong
\ means objects that belong to B or C not A
and ` means objects that dont belong to A
according to this
Set symbols of set theory and probability with name and definition: set, subset, union, intersection, element, cardinality, empty set, natural/real/complex number set
well, you shaded $B \cup C$ now
Lochverstärker:
the problem is, that you now need a universe to even make sense of A'
i guess you could solve it without
you can't
A' can only be defined with reference to a particular universal set
Let A, B & C be subsets of some given set U
i mean the overall question can still be solved, as A, B and C are implied to be subsets of the universe
but it would be more instructive if you give yourself a universe
maybe a circle around what you already drawn
then i would ask you to shade in A', maybe with a different color
so the whole square is your universe?
what about the stuff that is in B or C, but not in A
So I did research
BUC means everything that belongs in B or C
so they shaded in parts of A aswell
But does the /A and A' counter this?
and what if it was just \A on it's own and not A'
and what if it was just A' and not \A
honestly what
what question is it the answer to?
then it's wrong
as i said, i would advise you to first shade in A'
(in a different color than $B \cup C$)
You mean do A' first?
Lochverstärker:
yeah, you did $B \cup C$ correctly
Lochverstärker:
i wanna see if you can do just A'
yeah
this is A'
no, this is $B \cup C$
Lochverstärker:
this is all it is to the question
if only the circles are your universe, then it is correct
My teacher hasn't said anything about how the venn diagram should look
I'm just sticking to 3 normal circles
I'll just ask him, cheers though, we've agreed on what is BUC and \A'
Lochverstärker:
In your past, has your teacher told you that you must do 2 different colours?
no, i am just doing this to help you understand
would I lose marks for not stating which part is BUC and which part is A`
well, this is not the final answer
i was trying to help you get to the final answer by using colors, but if you dont care about that, then nevermind
Yes I understand what you mean
You was trying to help me understand for which part is which, as the final answer in this just to me looks like it's BUC eventhough I need to understand why it is the final answer.
If that makes sense, I understand why it's the final answer.
that isnt the final answer...
not sure if this is the right place to post this
I just started with proving correctness of algorithms with induction and loop invariants. But I am not sure how i should prove a recursive one with induction. This one for example
double expRecursive(double x, int n) {
if (n <= 4) {
return expIterativ(x, n);
}
return expRecursive(x, n/2) *
expRecursive(x, (n + 1)/2);
}
It is given that integer divison rounds of to zero and that expIterativ is correct. Prove the correctness of expRecursive
you need to find an invariant, prove it holds (lets say at the beginning of each function call) and prove that on termination that gives the desired result
@errant bear is it wrong?
I just scrolled up, according to fei, this isn't the final answer for (BUC)\A`
you want elements that are in either B or C, or both, and not in A'
It is wrong because everything you shaded IS in A' because it is not in A.
I don't know, I'm clueless now
A' means everything that is not in A
so that's what I shaded
Question: how many ways can you scatter 12 Identical balls to 8 different cells, so that the first 2 cells have at least 10 balls combined
@rigid sentinel it's like a double negative... You want everything in BUC but not in A', so really you want everything in BUC that IS in A.
Yes which is what I did here
and some people are saying that this isn't the final answer
But you still have some stuff that is not in A, specifically all that stuff that is in BUC but not in A.
You need to shade ONLY the stuff that is not in A'.
no it doesnt
thats literally the most important rule in basic logic
If I don't have any money, does that mean you must have money?
no
@errant bear you talking to me or him???
him
Oh, gotcha...
yea
It's been a hot minute since discrete math so just making sure lol.
yeah, urs is correct
I was looking at this, it says all objects that do not belong to set A, so I initially shaded everything that didn't belong to A
Does anyone know any good resources for binary operation questions? I tried the Rosen textbook but the topic was not there.
Need help with these problems
<--> means if and only if I'm pretty sure in grammer
so I think the answer for b is I learned to play a musical instrument if and only if I can read music
yes
-> is if ..., then ...
"I can read music and I own a guitar then I learned to play a musical instrument"
it's q /\ r there
oh
"if I can read music and I own a guitar then I learned to play a musical instrument"
yes
my propositions are "if there are maple trees"
and "it is spring"
so if p is "if there is maple trees"
and q is "it is spring"
and r is "we can make maple syrup"
would this be correct?
Abhijeet Vats:
$q :\iff \text{if it is spring}$
Abhijeet Vats:
$r :\iff \text{we can make maple syrup}$
Abhijeet Vats:
That's how you should define propositions
Oh thanks for the tip that is much better
p <--> you are never bored
q <--> if you have a cellphone
r <--> a good book
correct?
you mean (q or r) => p?
Abhijeet Vats:
Indeed
so it evaluates to "if you have a cellphone or a good book then you are never bored"
I actually forgot negation
so it would be negation p
No. You defined p as you are never bored
yeah that's true
is it okay to have a negation element tied to a proposition
probably is
negation element?
not is negation
You mean $\lnot{p}$
Abhijeet Vats:
yeah
is it okay to write that? Indeed, it is
Correct
My prof wants it as a atomic proposition I think
so It would be
p <--> you are bored
q <--> if you have a cellphone
r <--> a good book
and my final answer would be
not sure if that still works
Uh more like this:
$p :\iff \text{you are bored}$
$q :\iff \text{you have a cellphone}$
$r :\iff \text{you have a good book}$
So:
$(q \lor r) \implies \lnot{p}$
Abhijeet Vats:
Uh your phrasing was just a bit off but that probably works
though I should say that the negation of p is, more appropriately, 'you are not bored', not really 'you are never bored'. The former is a statement about a specific point in time while the latter needs to be quantified
That is true
probably better going with the first answer then cause that's a really good point
mmh
That says "I have air miles or I haven't flown in a plane"
You want to say "I have air miles AND I haven't flown in a plane"
@zinc pewter
yeah you're right
I'
I'm going to assume this is the best place to ask a question about set theory?
Specifically about arbitrary unions
ok
So I'm a bit confused in regards to
What it means by
"empty collection"
is it just a set containing the empty set?
{{}}
Nope. If it's an empty collection, it means that it contains nothing.
It is literally empty.
Then how is it a collection?
We tend to make a distinction between sets of objects and sets of sets. The latter is usually given the name 'family of sets'.
So, the empty collection is the family that contains no set.
Well, that's the same thing as asking 'Why is the empty set a set?'. The answer is that if you look at the axiom of specification and have a set A, then you can define the empty set by means of a contradiction. Since the axioms allow it, it is a set that exists.
Why not call the empty collection an empty set then?



