#discrete-math
1 messages · Page 3 of 1
This is false due to the axiom of regularity.
In fact there are models of set theory in which some sets may contain themselves; it is not inherently paradoxical.
But the axiom of regularity does exclude these in ZF
I am not quite follow how to make a totally ordered subset of $\mathbb{N}$ with the relation of divides. I learnt that totally ordered set is a partially ordered set in which every pair of elements is comparable. I understand how we can compare two numbers with the relation $\le$, but I just don’t understand how to compare two numbers with the relation $\mid$, can anyone help? Thanks.
Trenton
I also understand that $\mid$ fulfills the condition of partial order. But I still don’t know how to compare.
Trenton

The "a divides b" relation cannot be a total order for the simple reason that 2 and 5, for instance, are not comparable
If you want to extend this relation to a total order, then it will no longer correspond to "a divides b"
Oh I got it now, so ${2,4,8,3,9,27}$ is partially ordered set because $2|4$ and $4|8$ and $3|9$ and $9|27$. But how about the subset $Q={2,3,5,7,11}$? Why is it a partially ordered set?
Trenton
Check the axioms: (1) verify that the relation is reflexive, i.e., each element is related to (in this case, divides) itself.
(2) Verify that the relation is antisymmetric: for all pairs of distinct elements (a,b) in Q, verify that if a|b, then b does not divide a.
(3) Verify that whenever a|b and b|c, then it must be the case that a|c.
You can see that (1) makes sense, right?
And are potentially confused about (2) and (3), since seemingly no two distinct elements are related here
But for a partial order, you do not require that distinct elements be comparable: if they are comparable, then they should obey antisymmetry and transitivity. If not, then they vacuously satisfy the conditions for being a partial order.
Also, keep in mind that while what you said about divisibility in {2,4,8,3,9,27} is true, mere comparability of elements is in general not a guarantee that your relation is actually a partial order. You must always check that they satisfy the 3 listed axioms.
So the key is to stick with the axioms. Thank you so much! I got it now.
👍🏻

Hi all, is MaxCut problem on Complete graphs already solved analytically?
solved analytically?
How can the matrix representing a relation R on a set A be used to determine whether the relation is asymmetric?
Start from the definition of what it means for a relation to be asymmetric
Let R be the relation {(a, b) | a is not equal to b} on the set of integers. What is the reflexive closure of R?
is this right? {(a,b) | a not equal to b or a = b}
it would not be reflexive and it would be reflexive. When studying reflexivity you would modify the statement to show {(a, a) | a is not equal to a} which is never true for all x in the domain. Therefore making the statement irreflexive
irreflexive means that there does not exist a reflexive relationship in the set.
@tacit thistle I can go through some problems with you if you would like
i dont think there is reflexive closure
oh
because the relationship is irreflexive there does not exist a relfexive relationship
i think... I haven't seen a problem like this
let's say the set A consists of all integers, right? a not equal to be would be like (2,3), (4,5), (6,7)
we need to add (a,b) such that a = b right?
if the condition is if they are not equal to, then there will never be any 1=1 for example
yes
yeah im confused by that question lol
what if the condition was a = -b?
what is the domain
all integers
of a
0 = 0
is the only reflexive relationship in the set
I vaguly remeber reflexive closure so im trying to refigure it out, but I think it would be 0
but if we follow ur reasoning it can't be both a = b and a = -b
right?
unless a = 0, and b = 0
oh..
im sorry, i didnt see the second or condition
i thought it was only not equal to
yes it is a reflexive function
that's the reflexive closure i got
for {(a,b) | a is not equal to b}
Find the smallest relation containing the relation below that is both reflexive and symmetric.
is it also {(a,b) | a # b or a = b}
What is a#b?
a not equal to b
so all integers?
Mhh, that's what this is saying
For reflexive you make the relation a>=b, and for symmetric the other way should also hold: a>=b or a<=b
for symmetric u get a>b or a<b (a not equal to b) right?
is the answer all integers?
for parts b, d, f, h, is the answer yes to all of them?
Yes, there is a path
hi everyone, can i ask about simplification of Context-free grammar here?
how can i prove that the set (0,1,2,...p-1) is a field iff p is prime without using any concepts from aa?
i know that unless p is prime each element is not going to have a multiplicative inverse but im not quite sure how to formalize this
i want to show that for each x there is a unique solution ax=1 mod p
apart from this, all of the other field axioms will carry out from R right?
This follows from Bézout's lemma.
I am trying to show that if x>0 then x \in R+
this is my method but idk if its rigirous enough:
Assume for the sake of contraidction that x>0 and x is negative. This implies that -x \in R+. We can also write this as \sum_{j=1}^x -1 \in R+. Since 1 \in R+, we must have that -x+1 is also in R+ so we add 1 x times to get \sum_{j=1}^x (-1+1) = 0 which by axiom 1.6.2 is 0 which means it cannot be positive. Hence -x cannot be positive
oh fuck me i think i could have just said x>0 \implies x-0=x \in R+
yes
why is R6 transitive?
Because it's just one element?
why would that mean it's transitive
transitive is basically if u have (a,b) and (b,c) then u must have (a,c)
right?
Yes
But for every (a,b) there doesn’t exist a (b,c)
So the transitive property is true vacuously
why did they go up to M[3]
does ⊂ mean strict or nonstrict subset
proper subset meaning the same definition applies but they cannot be equal
{0} equals itself ofc so its not a strict subset of itself
Yeah but my teacher didn't cover the differences
Which was weird considering it was a HW problem
maybe they expect u to already know the definitions
you need help specifically memorizing them?
and using them
i understand boolean algebra
i just need help memorizing the different laws that will help with simplifying expressions
do you understand why all of them are true?
if so, you can try practicing deriving them yourself
if you only care about memorization (I don't recommend as it limits your understanding of the subject)
You can try making flashcards, there's not too many of these laws after all
i can understand why inputs into a boolean eqaution result in its given output, but i dont understand the reason behind every boolean algebra simplification law
My recommendation would be to start there
Before memorizing said laws
try to understand why they are true
thats kind of impossible with how little information there is on specific stuff like that
atleast online
they kind of just skim over stuff like that
Where are you looking?
There should be enough content online to learn these laws
if all else fails, you can always make a truth table yourself and show that said relations are logically equivalent
In terms of using them, you have to go over a lot of practice problems yourself
No easy way to do get better at using them then using them lol
every learning source online i could find skims over each law very briefly
Hello everyone. I have a graph theory question. In a directed graph, a vertex v is said to be reachable from u iff there is a directed path from u to v. Vertices u, v are said to be mutually unreachable iff u is not reachable from v and v is not reachable from u. The question is: what would you call a set of vertices X such that for all u ≠ v ∈ X, u and v are mutually unreachable?
Someone I spoke with suggested "independent set". X is indeed an independent set, or anticlique, but this is a strictly stronger notion. I've searched a lot online (finding mentions of reachability mostly on wikipedia and stackexchange) to no avail. I have limited experience in this field and don't know where else I could look for an answer.
I would probably call the set of vertices "totally disconnected", but i don't have a reference to someone using this phrase and its likely that i just invented it.
Im reading this paper on Sparsifiers and I dont understand the nomenclature here, what is x? Im assuming is an eigenvector, but the paper does not specify . Can a Vertex be represented by a vector? How?
It does not clarify if this is a row from the laplacian or nothing, all it says is:
@naive arrow well a vertex can be represented as a bunch of co ordinates in a co ordinate system which is a vector
in a set difference if A - B = B - A does that conclude A = B?
did u try proving it?
Well I only concluded that this works in the case of them being only empty sets
Because we haven’t really gotten into proofs yet
can someone please answer my question
So they go up to the third power because the set on which the given relation is defined has 3 elements
First draw a Venn diagram to get intuition and then formalize using mathematics
how do u know that it has 3 elements though
Because of the matrix representation of the relation. If you define a relation R on the set A with cardinality n then R will be a subset of AxA; for matrix representation you'll have an nxn matrix with n rows and n columns each for one element (here you have 3 rows and 3 columns).
so if u have 3 rows and 3 columns that means u have 3 elements?
what if u have 4 rows and 4 columns
Then you have 4 elements
This is only true for relations defined on AxA and not always true for those defined on AxB
What did you get in part a?
= 1, one supposes?
Try writing your identity -16 · 59 + 7·135 = 1 modulo 135.
What do you get wen you write -16 · 59 + 7·135 = 1 modulo 135?
Don't evaluate the left-hand side.
Just $-16\cdot 59 + 7\cdot 135 \equiv 1 \pmod{135}$.
And then recall that 135 is 0.
Troposphere
Whoops yes.
Modulo 135.
Calculating modulo 135 means we ignore differences that are divisible by 135.
And the difference between 0 and 135 is certainly divisible by 135, so we're ignoring the distinction between 0 and 135.
So 7·135 = 7·0 = 0 when you work modulo 135.
Yes -- though with proper notation: -16 · 59 == 1 (mod 135)
This says you have found something that makes 1 when multiplied by 59.
So add or subtract an appropriate multiple of 135 to get into that range.
"Multiple of 135" is "135 multiplied by some integer".
Because that gives you something whose distance from -16 is divisible by 135.
And therefore it is the same congruence class as -16.
It's more of a definition than a lemma (in most books).
As in, that's what it means for two numbers to be "the same" modulo 135.
Now you have found the inverse-modulo-135 of 59.
I'm confused. Do you not see that you're done here?
How is "the inverse of 59 modulo 135" defined for you?
Yes.
I don't understand what you're asking here.
You've just worked through an example of exactly that.
It is not 119·59 == 1mod135, but 119·59==1 (mod 135). The "mod 135" morally applies to the entire congruence, not just to the right-hand-side of it.
Good.
so it says to write this into a math question not to solve it
but how would you write two math equations into one equation
when I read this, that's what comes to mind
No, your equations say that the quotients of dividing by 5 and 6 are such-and-such. The question, however say that the remainders must be such-and-such.
I thought remainder was what's left after doing the division
But your notation there simply means the result of the division.
Since the problem is not asking you to find such an x, but merely predict whether there is a solution, I imagine you're expected to apply the Chines Remainder Theorem, which immediately gives you the yes/no answer you need.
Integer division -- for example 23 divided by 5 -- gives two results at once. In this example the quotient is 4 and the remainder is 3, because 22 = 4·5 + 3.
I've never even heard of the chinese remainder theorem
this is the first question of the homework for my first discrete math class so I don't have like the tools yet to actually go in-depth
so i feel like that's not what it's looking for
Unfortunately there's no commonly accepted symbolic way to write this operation in mathematics. We can specify the quotient in this case as $\Bigl\lfloor\dfrac{23}{5}\Bigr\rfloor=4$ fairly compactly, but there's no compact and common operation for the remainder. Some borrow the % symbol from programming languages and write $23\mathbin{%}5=3$, but the more mathematically common way switches around the inputs and outputs and would instead write $23\equiv 3 \pmod{5}$ as the closest statement of the remainder result.
Troposphere
maybe this changes things, I'm doing number two and then that blue text is explaining what I'm supposed to do
If you haven't heard of the CRT, you might be expected to try brute force trial and error to find the appropriate x.
you can also just list them out
like
integers that have a remainder of 2 when divided by 5 are
There ought to be a solution somewhere between 0 and 30.
2, 7, 12, 17, 22, 27, 32, 37
integers that have a remainder of 3 when divided by 6 are
(you try this)
and you will find an integer
in common of both
ok I think I have like a sever lack of understanding of math terms, so remainder being 2 from being divided by 5, the only answer is 10 in my head
Ok here
so like if I divide 27 by 5 I don't get two
lets put it this way
so is there something I am completely missing
for example $2=5\cdot 0+2$ and $7=5\cdot 1 + 2$...
jswatj
you will get a quotient and a remainder
wouldn't that make the relation not a partial ordering, since it would be symmetric?
omg
thank you
remainder just clicked
you're welcome
that is what is fucking me up so hard is I didn't understand what remainder meant
Correct, the "is comparable to" relation itself is not a partial ordering.
The partial ordering, notated "$a \preccurlyeq b$" in your first quote, is a \emph{different} relation from the "a is comparable to b" relation.
Troposphere
let's say we're dealing with the divides relation, a|b, the relation is antisymmetric since a|b does not mean b|a, but if we're trying to see if two elements are comparable either a|b or b|a (or both), but if both are true that would make the divides relation symmetric
No, it wouldn't make the "divides" relation symmetric. It makes the "is comparable by 'divides'" relation symmetric
They are not the same relation.
There are two different relations involved.
The "divides" relation relates, for example 5 to 45, but doesn't relate 45 to 5.
The "is comparable by the divides relation" relates 5 to 45 and also relates 45 to 5.
The first relation is a partial order. The second one is not.
why does it relate 45 to 5?
Because 5 | 45.
yes but 45|5 is not a whole number
By definition "45 is comparable to 5" holds if 5 | 45 or 45 | 5. One of these is true, so 45 is comparable to 5.
On the other hand, for example, 25 and 45 are not comparable.
Yes?
a=3 and b=2 are comparable because in that case b<=a is true.
Again, the definition of "a comparable to b" is that a <= b OR b <= a. One of these is enough.
I see
You need to distinguish between "is comparable to (by the relation R)" and "is related to (by the relation R)". The "comparable to" is a weaker condition.
it would be an element of the set right or no?
and if it isn't could you please say why
this is an equivalence relation right?
Let $S={a_1,a_2,a_3,\cdots,a_n}$.
The number of functions from $S$ to ${0,1}$ is just $2^n$, since each input of the $a_i$ can have 2 choice of output.
Recall that the number of subsets of a finite set with cardinal number $n$ is just $2^n$. Hence the power set $\mathcal{P}(S)$ of a set $S$ is of cardinality equals to the set of all functions from $S$ to ${0,1}$.
Therefore, there is a one-to-one correspondence between the power set $\mathcal{P}(S)$ of a set $S$ and the set of all functions from $S$ to ${0,1}$.
Yet I can’t understand why this result implies the theorem 0.14. Can anyone help?
Trenton
you do not really need the assumption of S being finite to establish this bijection
Due to the Cantor’s theorem?
What is
The no of subsets in AxB = ?
What are A and B?
no
(2) is from Cantor's theorem, though.
I need formula
Any sets
Do you know how to find the number of subsets of a single set C?
@coral parcel yea
Which is?
2^n
@coral parcel but my teacher made me note down
No of subsets of AxB = nA * nB
Which is for no of elements for Cartesian product so i m so confused
Or am i wrong?
That is the number of elements in A×B.
Yea i have good teacher...i looked at the text he was right the formula it said the same, so i was confused
which is never the same as the number of subsets.
Well, 2^(#A·#B) but yeah.
Thanks for the help
,help
A brief description and guide on how to use me was sent to your DMs!
Please use ,list to see a list of all my commands, and ,help cmd to get detailed help on a command!
Hi, does anyone have an idea how to solve this problem in a 'nicer' way? There is an urn with 5 distinct coloured balls, we draw 20 times every time putting ball back in the urn. What is the expected number of colours drawn this way? So the problem is to find P(X=k) for k in {1,2,3,4,5}. What I tried to do, was just for each k count the 20 element sequences satisfying a_i \in [k] and for all n \in [k] exists i such that a_i = n, then divide by 5^20 (all possible draws). Although somehow Im miscounting. Maybe there is a better approach, if not really, how would you calculate in this way say P(X=3)?
What have you tried? Looks like a principle of inclusion/exclusion sort of thing
Yeah when calculating I saw some i/e-esque terms appearing, wasn't sure how to model it so i/e is useful.
So did you try something like this
[(5 choose 3) 3^20 - (5 choose 2) 2^20 + (5 choose 1)]/5^20
Something very similar although not quite this. Shouldnt it be rather maybe 3 choose 2 and 3 choose 1 in the 2nd and 3rd term?
Maybe not quite again, but Im not sure about the thing you wrote
Oh right, since we are working with just the 3 colors
It comes out to the same thing, the above would work as well
I think you meant
(5 choose 3) [3^20 - (3 choose 2) 2^20 + (3 choose 1)]/5^20
But it would simplify to the same thing No it will not lol
confused on part b
do we distribute the ybar and then use demorgan's or do we use demorgan's directly
Is this correct?
for a relation to be reflexive
besides having (a,a) in R for all a that belong to a certain set
does the relation also have to be on one set
like a relation from set A to set B would not be reflexive?
the definition i am aware of has to be on one set
so A x A
like, you would say "R is reflexive on A" so it can only be reflexive on one set at a time i believe
does anyone understand the statement For p , it is sufficient q
"P is sufficient for Q" just means "P implies Q".
If you know P is sufficient for Q, then anytime P is true you can conclude Q is true also.
Hi, can anybody help me with this question? I am stuck..
this is what i did...
im sure somewhere im wrong.. or totally wrong on how i do it.. T.T
i cant use induction for this question..
sorry for late reply, thanks anyway
But "For P, it is sufficient that Q" not the same statement as "P is sufficient for Q". The word "for" applies to P in one of them and Q in the other one.
I would understand it as "if you know Q, then P will necessarily also hold". In other words, Q is a sufficient condition for P, or Q -> P.
That's a good start, but since you have two unknowns C, and D, you need two equations. Continue by computing v4 using both formulas to get a second equation.
hihi thx, i got the answer already 🙂
Ah shoot, you are right. I was misreading the original statement. Thanks for the correction.
I am here because your boy is scared shitless
any reccomendations to look or watch to get good at discrete maths
Long story short, I am in this Discrete math course in college, I know I am bad at math, I have taken C++ as an intro course and it was okay, But I struggled in Algebra and Pre Cal brought me to my limit, I am studying to be in IT and not some software engineer but I know these concepts are important but nevertheless I just want to start good any video series or resource would be helpful. Only one class has started it is the intro and all that, no material but I want to start having an idea and understand concepts so that I am not lost when I get to HWs and Lectures
what even is the question 😭
what concepts does the class have
because
discrete math books cover different areas
let me find the syallbus lol
depending on the book
ahh
looks like
you might have to go for
Rosens Discrete Math
or Susanna Epps Discrete Math
because they have the trees/algorithms section to them
Would you say the rosen book is easy to follow along for someone thats dog poopies at math
I've only done bits of the book but I think its good enough for first timers
proof of what exactly
if A, n are coprime then gcd(A, n)=1
from there it follows immediately from bezouts identity
why would it not be necessary
actually i don't believe it is necessary
it should be
if gcd(a, n)=d and Ax=B (mod n) then d | B
you said if gcd(A, n) divides B then Ax=B (mod n) exists
converse of what I said
not sure if its true though
either way though, its probably a good condition that A, n are coprime for Ax=B (mod n) to have a solution since A^{-1} might not exist in mod n
would my answer be DNE if the question is asking find the truth value of p if "(p AND q) -> (q OR r) is false"
its a tautology so i assume its Does Not Exist
yes
thank you
beginning of discrete is fucking me up cuz im trying to understand everything but i dont think thats the goal just yet
Does anyone have any good resources to explain predicates, universal/existential, and nested quantifiers?
most discrete math books
Discrete Mathematics by Rosen, Discrete Mathematics by Susanna Epp, How to prove it by Daniel J Velleman
theres 3
Well I figured as much. I just was not sure if there was a standard suggestion such as Stewart for Calculus
the first two seem pretty standard
or at least i've seen the name come up a lot
Would anyone be able to help me out on this next part? I seem to be lost on how to test this part into the original question to prove it. Thank you.
You conclude that either k1 = k2 = 1 or k1 = k2 = -1 here.
As for why, since they are both naturals and their product is 1, we have |k1| <= 1 and |k2| <= 1, which reduces the problem to a finite search.
The rest follows immediately.
I appreciate it. I read something similar online, but you throwing in absolute values in there made it make sense to me. Thank you!
No worries
Are topics including difference equations part of discrete math?
Like discrete time dynamical systems
Recurrence relations are often taught in discrete math so yeah
One way to think of it is like the discrete version of differential equations
Yeah I was just wondering if it officially classifies as discrete math
I never had a course about discrete math but I work much with discrete time dynamical systems
Not sure if this is the right channel to ask this or if I should go into a help channel,
but I wanted to ask about interrogatives and imperatives being true or false
This is not really a math question, perhaps a linguist could help
hm well it is in my discrete structures class
I was hoping if someone could check if I did this correctly? any help would be appreciated thank you!
if you can't assign a true or false value, then is not an statement
questions are not statements
same with imperatives
"get out" . you can't assign a true or false value
gotcha, I figured that was the case. just wasn't 100% sure
"do you want to go to vacation?" same
appreciate it
Does the following connected simple graph G exist?
δ(G) ≥ 2, V(G) = 20, no 2 vertices with same degree are neighbors
What is a unit set?
what's delta(G)? minimum degree over all vertices?
Yes
Yeah, A looks correct, and the offered refutation of it is nonsense.
Is a square with it's diagonals a planar graph?
Yes -- you can draw one of the diagonals outside the square instead.
Then there are no crossings.
Oh, so is it true because this graph is an isomorphic graph?
Yeah, "planar graph" just says that the graph has a crossing-free drawing, not that the particular drawing you're looking at is one.
Thanks, I get it now!
Hello! Suppose I have two partially ordered sets A and B. There are many possible relations between them. Let me denote the set of such relations A — B. Is there a natural way to define a partial ordering of A — B?
"Natural way" is fairly vague. Since your set is the power set P(A×B), you could at least order it partially by set inclusion, but that's probably not very satisfying because it's not using the orders on A and B at all.
Yep. For example, one ordering for functions A → B says f₁ ≥ f₂ ≔ ∀ (a: A), f₁ a ≥ f₂ a. But this definition only looks at the ordering of B.
So, I am looking for something similar but for relations.
I can make «natural way» precise by asking «is the category of partially ordered sets and relations closed». But this is a tall order — I should be happy to see a «weakly universal», non-unique construction.
I suppose I shall have to require that relations be monotone then…
What are monotone relations though? Looks like I have to do some more work here.
How do you prove two sets?
For example A = {1,2,3} and B = {1,2,3,3}.
How about infinite sets?
What do you mean by prove two sets?
Prove them equal.
define "equal"
Bruh
What are the ways we can define it?
formally, two sets A and B are equal if for all x, x in A iff x in B
Can you show this using the example I provided?
there is really nothing to show since sets are a mathematical object with don’t support repetition of its elements
so by definition, B = {1,2,3,3} = {1,2,3} = A
but for your question, given any two sets A and B (infinite or finite), to show that A and B are equal, you show that A is a subset of B and B is a subset of A
to show that A is a subset of B, you fix an arbitrary element a of A and show that a is in B
since A subset B is defined to mean for all x(x in A implies x in B)
cool. so like how do I go about proving that say the even numbers equals the odd numbers?
Or show that they don't.
the even numbers do not equal the odd numbers
they don’t even share any elements in common
to show that two sets are not equal, you need to find an element in one set that is not in the other
I meant the same amount lmao
you need to construct a bijection between the two sets
Oh
What would that look like mathematically?
that’s not really a precise question
are you asking for an example of a bijection from the even integers to the odd integers?
You can't do it with a function right because there is not any equation that describes the odd numbers.
at least I know of lol
i think you are confusing sets and functions from one set to another
a bijection is an invertible function between two sets
in order two show that two sets X and Y “have the same size” or are equinumerious, you need to find a function f : X —> Y that is both injective and surjective (then f will be a bijection between X and Y)
okay thanks a mil
Why is your name c squared btw?
my initials are CC
Nice sounds cool
lol i always thought of it as a variable
how to represent "M to N Cardinality" in math? Is there any terms to describe it? Thank you
Can you restate your question? No clue what you mean.
M companies can have N customers.
What about them...
?
?
I have no clue what you are asking, sorry. Maybe someone else can help.
hey guys, could we consider the relationship between combinations and combinations with replacement the same as permutations and factorials?
@weary tiger I'd like to say no to that, although I'm not sure what sort of relationship you're describing between permutations and factorials
typically speaking, when you don't have replacement, you answer can be written as some sort of factorial expression, while when there is replacement, it can be written as a power of something
For example, suppose you had to choose 5 marbles of 5 different colours, and you arranged them from left to right, if there was no replacement, you have 5 marbles for the leftmost position, then 4, since no replacement, for the next position, then 3 and so on, giving you 5! combinations, while if the selected marble was replaced, then you have 5 for every position, so 5^5 combinations.
im having trouble setting this up. it says to prove it by induction. im still kinda struggling with the whole strong induction thing.
the basis is 0 right? cause i can see how if there were 0 offspring, then we would have 1 node, which is odd.
it can be whatever, as long as the case is easy to verify
ok, so the basis is true. so now my induction hypothesis...isn't it that we assume that it's true for a "0 (< / 🙂 k (< / 🙂 n"?
the smileys are the = sign. idk why it changed it.
Discord turns =) into 🙂 by default. You can turn this off in settings
You could also just write <= instead of (< / =)
ok ty
@primal jolt here is your setup:
define the set M = {n : if T is a binary tree with n leaves then T has 2n - 1 nodes}
- show that 1 is in M
- show that if 1,2,...,n in M, then n+1 in M
- conclude via strong induction that M is equal to the set of natural numbers and complete the proof
thanks for taking the time to answer ZeBeast. I just felt that since combinations with replacements has replacement, maybe its like factorials. This is pretty confusing, not gonna lie.
each edge e ∈ E, an MST of graph G − e is also an MST of graph G.”```
How do I check this efficiently?
constructing an MST for a graph can be done efficiently via prims algorithm or kruskals algorithm, for example
@sturdy helm
yeah right, but question is different
i have to check this in O(VE)
use this to check it efficiently
given a graph G, for each edge e, construct an mst for G - e in V^2 time
then check if it is an mst for G
okay so mst calculation takes ElogV time so, if i do that for every edge
it would be
E^2 log(V)
but i have to do all this in O(VE) time
maybe i misinterpreted this
so for each edge e, if we are given an mst of G - e, it takes V steps to check if it is an mst of G
if we do this for each edge then it is EV time
we are not given MST of G\e
that’s what the condition says
the way you are saying it would lead me to calculate all the MSTs after removing one edge
which is not efficient right?
no, it’s just saying that if we have an mst of G - e, then it must also be an mst of G
it’s not saying to construct and check every mst of G - e
each edge e ∈ E, an MST of graph G − e is also an MST of graph G.” Design an O(mn)
time algorithm to check if a given connected graph G is edge-fault-resilient```
mb
this is complete question
yes ik
the fact that MST of G\e is given doesn't make sense to me
for this problem
the only input I have is graph G
nothing else
i’m having a hard time getting my pint across
let me think a moment and see if i can reformulate
sure
im new to discrete math and its so confusing
for example
B = {2,{2},{3}}. {2}⊆ B ?
dont get why {2} is the subset of B
A is a subset of B precisely if every element of A is an element of B.
What are the elements of {2}? Are they elements of B?
but where is A?
That was just a more general statement about sets aha sorry
Just reminding you what a subset is
so if A was {2}, would it mean B ⊆ {2} ?
Uh okay maybe I've unwittingly caused some confusion - no
I'm saying A is a subset of B iff every element of A is an element of B
Take A = {2} in this example
What are the elements of {2}, and are they all elements of B?
the element of {2} is A
{2} Ɛ A
and they're not all elements of B because B has other elements not just {2}
thats how im getting it
No, A = {2}, A is certainly not an element of itself. 2 is the only element of {2}.
So you look at the elements of A, and for each of them, you show that it is an element of B.
The only element of A = {2} is 2. So all we need to do is show that 2 is an element of B.
This is what potato was saying a moment ago
wait
but i thought now that {2} or 2 is not an element of A
since A isnt an element of itself
is there any math i should go back and relearn since I really dont get how these concepts work
" {2} is an element of 2 "
" 2 is an element of A "
2 Ɛ A
This is wrong
This is right
You are confusing {2}, which is a set containing just the element 2, with the number 2.
2 is an element of {2}
{2} is not an element of 2 — in fact 2 is not a set*
||*Yes, I know in the usual construction of the naturals 2 is a set, I don't care for this at the moment||
We are defining A = {2}
So we are just giving this set, namely {2}, the name A.
So 2 is an element of A
3 is not an element of A
Does this make sense?
You're not answering so I'll continue for a bit longer.
Now remember that {2} is a different thing from 2.
So while it is true that 2 is an element of {2}
It is NOT true that {2} is an element of {2}.
Similarly, it is true that {2} is an element of { {2} }
{ {2} } is a set containing exactly one element, namely the set {2}.
Note conversely, that 2 is not an element of { {2} }. It is an element of an element of { {2} }, but it is not an element.
This person is talking about data bases, or so it appears. In relational data bases, it is a frequently seen construction that you would have two tables employee and project that each have a primary key (and any other columns you could need), and then a third table works with only two columns for the keys of employee and project. There is no special name for this in Mathematics since this does not say anything non-trivial yet. You could make an argument that having this third table lets you represent your data more efficiently, but this argument is not made in the video.
what is meant by "rigorous' proofs?
like each step in the proof has to prove the previous step?
A rigorous proof is essentially one that uses correct inferences to make conclusions, without appealing to facts that have not been proved.
ok so not making assumptions
got it thanks
As opposed to non-rigorous hand wavy proofs
for example, fundamental theorem of calculus
Anyone have any resources or proof on how the second logical equivalence is proven? We went over it in lecture the exact steps, but I was lost the entire time
p -> q = (not p V q)
= (not p) V not (not q) (by double negation)
= not (not q) V (not p)
= (not q) -> (not p)
You can let r be (not q) and s be (not p) and it’s easy to see that the second last line is just (not r) V s which is equivalent to r -> s which is equivalent to the last line
I guess where I got lost is why are we using double negation? I see he did that in my lecture notes as well
Double negation is used so that we can pull out a “not q” eventually
Note that what you wanted to prove was (not q) -> (not p) which is equivalent to not (not q) V (not p)
That is starting to make sense. I really appreciate it a lot
For the second step, when applying the logical equivalency, when did we only change p to not p and the operator?
Why was not (q and r ) left alone.?
I’m confused with this wording
“ Find 2 integers x and y that do not have the same parity such that xy - min(x,y) is odd.
Is it asking for a proof?
hey guys
Is this the same as :
“ If 2 integers x and y do not have the same parity then xy - min(x,y) is odd.”
no it isn't
the first asks you to prove by example the statement "exist x, y: x and y have different parity and xy - min(x,y) is odd"
the second is "forall x, y: if x and y have different parity then xy - min(x,y) is odd"
Can somebody help me with the conversion of statements involving "if ..., then ..."
I did the 'a' part
So I’m just plugging in numbers?
idk what you are doing right now
but as i said
the statement you presented first is an existence statement
which is meant to be proved by presenting one example
Just odd/even proofs
my answer for "a" came out to be "The grass isn't purple, only if the sky isn't green"
I don't need complete answers as that would be plagiarism, help with underlying concepts would be sufficient
:/
For some reason I’m getting a even answer every time, not odd
3 and 4?
12 - 3 = 9
I mean
Thanks
no problem
So you know how odd is 2k + 1
the trick was to keep the odd number smaller
What about 2k - 1
2k - 1 = 2(k-1) + 2 -1 :)
I see
same could be said about this one too ig
2k+1 = 2(k+1) - 1
always odd
yeah
New to discrete and i’m having trouble with 2d and 2f, anyone mind giving me the details or steps to get to the answer ?
there are twelve questions you are supposed to answer, five of which are YES/NO questions and seven of which require you to write down a set.
are we to understand that you are having trouble with answering some of these questions in subproblems (d) and (f)?
or would you rather say that the entire problem is leaving you completely stupefied and unable to even begin? @shadow silo
yeah im having trouble with the entire problem honestly, ive been re-watching some lectures and i cant seem to grasp it at all
ok well alright
there are twelve questions you are supposed to answer, five of which are YES/NO questions and seven of which require you to write down a set.
do you at least understand this?
like, do you understand that in each subproblem there are 12 things asked of you?
for A you have to write a set down if i am correct and the B are the YEs and No questions?
or am i mistaken
figured
five yes/nos, two numbers, five sets
it sounds like a lot but in all honesty each one of these is like
bite-sized
would you like to go through each one of these one by one
that would help honestly
ok
let's do this for letter (d), i.e.
A = {a, b, d, 1, 4, 5} and B = {c, e, 2, 3}
these are going to be the sets we work with
and our universal set, which will matter at one point, is {a, b, c, d, e, 1, 2, 3, 4, 5}
are we clear on this and are you ready
yeah
Yes
No
Yes
...since this is a yes/no question i don't really have any option but to tell you that you're wrong and no, B is not a subset of A
let's examine that in more detail
do you know what it means for one set to be a subset of another set?
Wait, If B is a subset for A if they are the same right?
can you say that again but without it being word salad?
i do not understand this:
Wait, If B is a subset for A if they are the same right?
Is B a subset for A only when they are equaled to each other?
hopefully thats worded better
the wording still could use some work
but now at least i can answer your question
no
we say $A \subseteq B$ (read ``$A$ is a subset of $B$'') if every member of $A$ is also a member of $B$.
for example, the set ${1, 2, 3}$ is a subset of ${-2, 1, 2, 3, 5, 11}$.
Ann
so basically as long as the set has the numbers of the subset then it is considered the "subset"
...
bad
on multiple accounts
i know i gave a numerical example but you must understand sets can have elements that are not numbers
the set of all children is a subset of the set of all humans on earth, for example.
let's go back to question 2 (Is {a, b, d, 1, 4, 5} a subset of {c, e, 2, 3}?) to which you correctly answered "no"
tell me: was that no just a random guess, or did you take some time to think it through before answering?
i saw that in the set {a, b, d, 1, 4, 5} there was no same points in {c, e, 2, 3} that were alike so i said my answer as NO
ok, but when the sets switched roles and i asked you whether {c, e, 2, 3} was a subset of {a, b, d, 1, 4, 5}, you answered "yes". why was that?
i figured that if set A was not a subset of set B then if swapped it could turn into a subset, i honestly don't know my logic to it but it was more of a process of elimination thought process
ok so it was no better than a random guess
maybe it is better if i repeat the definition of subset in relation to these two particular sets
A = {a, b, d, 1, 4, 5} is not a subset of B = {c, e, 2, 3}, because there exist members of A that aren't members of B; for example, 1 ∈ A but 1 ∉ B.
do you understand this? read the entire statement carefully and ensure you understand every part of it and the statement as a whole.
I read and understand it now
So B is not a subset of A because in B {c, e, 2, 3} there are members that A {a, b, d, 1, 4, 5} does not have
and can you give an example of such a member?
e ∈ B but e ∉ A
No
and why is that?
in order for A = B , A needs to be a Subset to B and vice versa
ok yeah good
and in our case, neither set is a subset of the other
so in fact we have more than is needed to ascertain that the sets are not equal
ok
moving on
question 5: Are A and B disjoint?
this is the last yes/no question
Yes
When a pair of sets have nothing in common
...ok yeah that works
would have been slightly better if you said "have no elements in common"
alright
now we come to two questions whose answer is going to be a number
question 6: How many elements does A have?
6
4
ok
good
ok
the answers to the next five questions are themselves sets
question 8: What is the complement of A?
this is the point at which the universal set actually matters.
so it would be { c , e , 2 , 3}
A = {a, b, d, 1, 4, 5} U B = {c, e, 2, 3} = {a, b, c, d, e, 1, 2, 3, 4, 5}
notation could be somewhat better
but yes that is correct
question 10: What is the intersection of A and B?
wouldnt that be None?
empty set
{a, b, d, 1, 4, 5}
and now question 12: What is B - A?
{c, e, 2, 3}
great
ok now aside from the hiccups you had with subsets
it appears that you're able to do all this on your own
i mean the thing is
for literally all the other questions you were able to answer them when asked
just fine
so was it just that you found it daunting to have to decipher and answer 12 questions, or what
can someone help me with some questions please?
b and c yes, e no
what you have for e says john is wealthy and neither healthy nor wise
I was recently solving 2-SAT related problems, one of them was the following:
You are given an undirected graph that consists of
nvertices andmedges. Initially, each edge is colored either red or blue. Each turn a player picks a single vertex and switches the color of all edges incident to it. That is, all red edges with an endpoint in this vertex change the color to blue, while all blue edges with an endpoint in this vertex change the color to red.
Find the minimum possible number of moves required to make the colors of all edges equal.
This is clearly just a 2-SAT problem since we only care about choosing a vertex once or not choosing it at all (actually two of them: for making all the edges red or blue, and then choosing the minimum).
I'm wondering if we can solve a similar problem where instead of coloring edges we would color vertices: each turn a player picks a single vertex and switches its color and the color of all adjacent vertices. I've been trying to start with some simplifications:
- initially all the vertices are colored red
- the goal is to color all vertices blue
- we don't care about the number of moves
But even this turned out to be a hard problem, at least I can't figure out how to solve it efficiently. The only solution that came to mind so far is to use linear algebra:
LetAbe the adjacency matrix, then by calculating(A^-1) * (1, 1, ..., 1)^Twe get a solution. Finding the inverse matrix and matrix multiplication are too inefficient though, especially ifmis much less thann^2.
Are there any better methods to solve it? And what can we do to generalize it (remove all/some of the simplifications)?
What makes the edge-color problem tractable is that there are only two possible moves that influence the final color of each edge.
We don't have that luxury in your variant.
(Hmm, it's not actually obvious to me how you'd use 2SAT to minimize the number of moves in the first problem, rather than just find out if a solution is possible).
If for each X <-> Y we also have !X <-> !Y (and for X <-> !Y we have !X <-> Y etc) then it's possible to find a solution of 2-SAT with the number of variables set to 1 minimized
For each pair of components we just need to choose the one that has more negated variables
And in our case we have exactly that. E.g. if we want to color all the edges blue:
uvis already blue: add edgesu <-> vand!u <-> !v(either both of them are chosen or none)uvis red: add edgesu <-> !vand!u <-> v(exactly one of them is chosen)
Ah, duh! Thanks.
They are "check that you've understood what the words mean" exercises. Not "follow a general method for computing this" exercises.
Yeah.
Well, it should be clear that an independent set cannot contain more than two vertices of an independent. Similar for the inner star.
So if you can find an independent set that has two vertices in each, that must be maximal.
Not sure if this is the appropriate channel
suppose you have N pencils, each one of c different colors
how many ways are there to pick a subset of k pencils
I tried doing stuff with multinomials but the issue is that assumes no bound on the number of pencils of each color
I have a solution that uses polynomials and fast polynomial multiplication algorithms but is there a purely combinational way to do this??
We are told that k << N
so really this is something like "how many ways are there to put k balls into c bins" but some bins have a fixed capacity
What do the pencils have to do with picking a subset of k colors?
should say "k pencils" my bad
Okay, and treating pencils of the same color as identical?
yes
I think you might need to know how many pencils there are of each of the colors.
you do know that
So you know N_1, N_2, ..., N_c, where N_i is how many pencils have color i, and N_1+N_2+...+N_c=N?
ya
If we had unlimited numbers of each color it would be nice and fun and easy because that's just a multinomial coefficient
Hello, I have a question about finding periodic functions.
I want to find a function that repeats {1 ,3,1,0} for inputs {1,2,3,4,5....}
If found ones before messing around with n mod 4, but is there a more systematic way to think of this?
hello
Please solve this question
Please help me guys
I want to know the answer
anyone??
I got 457
not completely sure if this is right but
I tried using inclusion exclusion to find the number that should be subtracted from 1000
I divided 1000 by 3,5,7 separately
you are right
and incremented 1 if answer comes in point
then I added all
then minus from 1000
yeah so this alone won't work because you will overcount some numbers
for example take 15
it's a multiple of 3 and 5
sure
You can just ask here, someone will come along and help
Inclusion-exclusion is almost certainly the intended solution method here. "Use the pigeonhole principle" must be a typo; there's no reasonable way to employ that.
I get 457 too, by another method: The pattern of coprime numbers repeat with a period of 3·5·7=105, and due to the Chinese remainder theorem there are 2·4·6=48 coprime in each period. That gives 9·48 of them up to 9·105=945. But the pattern is also symmetric under negation, so we get a further 24 solutions from a last half-period which takes us all the way up to 997. Then we just need to count 998 too, for a total of 9·48+24+1=457.
Yeah I think so too
The closest thing to pigeonhole principle I can see, is when you are calculating how much to include/exclude you have to use the floor function so
$\left \lfloor \frac{1000}{3} \right \rfloor + \left \lfloor \frac{1000}{5} \right \rfloor \ldots$
ALPH2H
Someone what reminiscent of generalized pigeonhole but barely
Yeah this is neat way to do it
could somebody explain one thing for me really quickly?
what is a fault-line, in regards to chessboards? i'm super confused on what it specifically means
in most cases is the empty set almost always a subset of a set, the only time its not is if theres a set of the empty set?
It's a subset of any set, no exceptions
@azure willow did the word "fault-line" come up in a problem you were solving? it sounds like something ad-hoc for that problem specifically
Any tips for discrete math exam on combinatorics, resursive equations and graph theory?
how would i start this?
definitely pigeonhole principle
∀x(A(x)→B(x))
can someone help me negate this ? im very new and trying to self teach with online questions / courses !
well what would you do first?
Question: Find all positive two digit integers whose product of their digits divide their respective integers (example, 11 is divisible by 1×1 = 1).
I used modular arithmetic to try solving this problem. I'm getting the set of answers {11,12,15}. But, that's the incomplete answer. Actual set of answers is {11,12,15,24,36}. Where am I going wrong?
Hopefully you agree that e.g. 36 is indeed a solution.
Try to plug a=3, b=6 into each of your intermediate conclusions to find where you somehow start concluding something that is false in that case.
That must be the location of an error.
(I can see at least one error, but it's more instructive for you to discover it yourself by checking step for step).
Saw this problem on social media, and I was kind of stumped
There has to exist some partitioning, where it’s possible, right?
If we cut it in n pieces, where all n pieces are symmetric about some line, can we still complete the task ?
On a chess board n x n there is a figure on bottom left corner. Figure can move only one square right or one square up per turn. In how many ways can the figure reach top right corner?
Any tips how to approach this problem?
Hint: the figure must go up n times and to the right n times, out of 2n total steps. So we must count the number of ways to choose which steps will be going right and which will be going up.
What ive noticed is that, all squares except top right corner square, all far top squares and all far right squares, have a choice of 2
So i thought maybe its 2^(n*n - 2n - 1)
Exactly, so your approach doesn't work.
Let me rephrase this hint.
o wait
You have 2n steps to choose. Exactly n of them must be right, and the n remaining must be up.
i was looking at it like
2 choose 1
it might be
nxn choose 2
but that would make it even bigger number than my solution
If you can't justify your answer, it's not good enough.
wait how so
This is just a hint, it's up to you to see why.
are you telling me
any option i choose
I wont make more than 2n steps?
or less
Let's think this through a bit.
You start in square (1,1)
and you want to get to square (n,n)
Moving up increases the second coordinate by one. Moving rightwards increases the first by 1.
You must increase (1,1) to (n,n).
holy
yea
Great.
so i then calculate
on how many ways i can go right and the rest is up?
n times right*
That's correct
2n-1
Thanks 👍
I think we can use combination also
n*C(2,1)
This is not correct
yup
ans is something else
ig
I can write a c++ solution which take polynomial time complexity for it
but what will be for formula, it's not 2n-1 for n=3 it's 4 but ans is 6
There is a very simple formula for it which my hint will lead you to.
okay I have already solved similar coding question(just figure is replace by a robot) i remember it now
it give time complexity O(2^n) which can be optimized to O(n^2), by mathematics we can make it O(n) if get the formula
(2n - 2)! / ((n - 1)! x (n - 1)!)
can you explain it?
n - 1 moves going right to reach (1,n) square
same amount of moves up to reach (n,1) square
which is 2n - 2
so now it should be from that total amount, we choose n - 1
what if we change question to m x n rectangle instead of square?
so from (1,1) to (m,n)?
I mean if the figure in bottom left of m x n matrix and it has to reach top right
This is correct. Another way of writing this is 2(n-1) choose (n-1).
I'm afraid not
yea so we start at (1,1) and have to reach (m,n)
it would probably be
since you need m-1 amount of "up" moves
asking to me about programming?
to reach most upper square
and n-1 moves right
to reach most right square
m+n-2
yes..
total amount of moves to reach (m,n) square
and you can choose either n-1 or (m+n-2) - n-1
Correct, by the way
N.b that (m+n-2) - (n-1) = m-1.
This is not a programming problem
so why don't we choose 2(up or down) after each step
Because we don't always have two choices
If I start off by going all the way up, all subsequent steps have only once choice
However if I go alternately up and right, all steps have two choices until the end
Since the number of choices is not uniform, we cannot use that method.
I give away most of the answer here.
oh ! i got your point
Admittedly, I should have written n-1 instead of n, but oh well.
but i didn't get logic of adding all the step and then choosing up or right
awakening moment
got your reason feeling nice
That's the right answer
The rest is unnecessary
By choosing the n-1 rightwards moves, you have implicitly chosen the rest
∀x∃yP(x, y) v ∀x∃y𝑄(x, y)
im suppose to express the negations of this statement, so that all negation symbols
immediately precede predicates. how should i go around this?
First notice that you are negating a disjunction
so apply De'Morgan's law to turn it into a conjunction
after that, apply the negation to the for all and existential quantifiers
remember, that the for all turns into an existential and existential turns into a for all
that all negation symbols
immediately precede predicates.
This means to have the negation symbol preceding the P(x, y) and Q(x, y)
thank you so much 🙂
what does this mean?
it's short-hand for repeated multiplication
In this set-builder notation, it's letting the exponents be any natural number
and when n = 1?
{00, 11}?
wait why is there a comma
I think it should be {01} when n = 0?
it's a string isn't it
when I said that, I hadn't read the full question that you sent lol
it does make more sense for it to be a string since you're dealing with grammars
what happens when n = 0, n = 1, etc
That should be the set of strings that look like n 0s followed by n 1s
ok
(not the answer to the question, but what the set looks like)
So it would be "", "01", "0011", "000111",...
i see
And 0^n here means 0...0 (n 0s)
Would this channel be where I can get help with Boolean Algebra ?
Here is fine for boolean algebras.
Awesome, thanks
I need to simplify as much as possible..I ended up with C(B'+A'B) But that doesn't feel right
The parenthesis is simply not(AB), isn't it?
I'm not sure. My list of theorems does not look similar to that.
Hi. Do I get help with Knuth Concrete math or art of programming? I'm at the very beginning, but I don't understand anything anymore. And sorry for my poor English.
Why are there two letters of "p" in the fourth picture?
validity or invalidity
i get p and q then r
but i dont know if im doing that correctly
What are your propositions p, q, r?
Also you can do this with only two statements p, q
i figured that one out
would you be cool with answering a new question
create a boolean circuit
Would that be correct ?
The the last equation corresponds to the step
E3. [Reduce] Set m <- n, n <- r, and go back to step 1.
After this step has been executed, both of the variables n and r have the same value, namely the one previously had by r.
I'm not sure why Knuth chose to use the letter p for that value instead of r, but the name doesn't matter anyway.
I believe there's nothing particularly deep happening here. Remember that Knuth was originally writing at a time where programming was not widely known and understood, and writing for an audience who felt more familiar and comfortable with mathematical notation than with code. He's simply trying to convince that audience that the prose pseudocode in the first image corresponds (in a systematic way) to a rigorous mathematical definition.
In how many ways can you organize letters "F","E","S","T","I","V","A","L" in array if letters "I" and "A" are always next to eachother, and letters "E" and "I" are never next to eachother?
My first attempt was to group "A" and "I" together and make permutations with other letters which would be 7! and time that with 2! since "A" and "I" can permute between themselves. Then I group letters "A" "I" "E" together, permute them with other letters which is going to be 6! and time that with 2! since letters "E" and "A" can permute between themselves, and final solution would be: (7! x 2!) - (6! x 2!)
If someone could confirm wether this answer is correct or I'm missing something
When you group "AIE" together, I think you'll miss out on some words.
For example AIE<else> and EIA<else> will be present. but what about I being at the front?