#discrete-math
1 messages ยท Page 152 of 1
is there anyone here who can help with formal logic? i.e. generalization and instantiation in proofs, using inference rules, etc.
please DM or reply if u can
I have a problem to find the total node at depth d ...the formula can be recursive. I started the problem but I can't figure out the formula. Is anyone available to help?
<@&286206848099549185>
@swift agate you can use T(d-2) in your solution too, right?
yes
okay, then try to use both. (specifically, you can use them to get n_d.)
I know I want to add all the nodes from previous depths which I called T(d-1) to all the nodes at depth d which I called n_d. And I was think n_d is a multiplication of 2 values. depth * number of nodes at that depth
i am still thinking about it
right. how can you find the number of nodes at a particular depth using T(d-1) and T(d-2)?
right now I'm trying to think about what T(d-2) is and its stretching my brain
circle T(d-2) and T(d-1) on the same graph, it might help
why do you think so?
all the nodes at a particular depth = all the total nodes - all the nodes at the previous depth
yeah, exactly.
Is anyone available to help me out on how to approach this question and find the errors?
I think it is related to the fact that you can't be sure what is going to happen when r^(-1), but I recommend you to wait for the help of someone who knows more about this. I am not exactly good at doing proofs. To put it better, you can't be sure that r^(-1) is going to be 1 at all, because your induction rules are very clear that they apply when k>=0, and there you are messing with a number outside that range.
hello, for part b. i understand that we could find out by A(total ways to place elements) - B(ways to place elements without 6). that gives us A-B = 100,000 - 9^5. but i was wondering if we need to deduct 1 because of the number 100,000
Hi, I am not sure how I am supposed to solve this particular exercise.
@grave lagoon just get the probabilities, pi by dividing fi/n, where n is the total number
ie. sum of all the fi
from there the expected value and variance formulae can be applied
@nimble cove thanks, a fellow student solved this problem this way and I thought something was off.

how do you read this?
@vast mulch From what I remember from maths it's translated n doesn't exist
@grave lagoon what about this
for every n
The first one might alternatively be read as "there does not exist a n such that [...]"
The first one might alternatively be read as "there does not exist a n such that [...]"
@weary tiger yeah you're right. I wasn't entirely accurate
@nimble cove In this case I will compute expected value and variance this way?
Bruh I don't even know trigonometry and you guys are discussing crazy stuffs. Mad respect
@grave lagoon Yes
this is some induction proof, does anyone know what they did at the very last step? im kind of confused
this appears to be the last step and im not sure how this really proves anything
@zinc swift Use the principle of inclusion-exclusion.
I gotta say Discrete Math is way harder than any of the Calculus. IDK how people can say that Calc II is the hardest math, not even close.
^^
Freshman in calc 3 & discrete and can easily say discrete is the hardest class Ive ever taken
and on that note, does anyone have any recommendations for YT channels or just videos online I can watch to get a bit more solid w/ discrete concepts?
Could somebody guide me through this question?
I'm confused, how do I find the basis step, inductive hypothesis, etc
To find your base case youre going to set n equal to 1 and then show that the left hand side is equal to the right hand side @unique herald
And then work from there in regards to your IH and IS
maybe this discord will carry me through this class
Commander Vimes:
thanks ๐
what is the name of this function?
sigma denotes summation
this looks like pi, what is the name of this?
ye, it is pi
thanks!
No
xRy as y is born 11 months after x
yRz as z is born 11 months after y
xRz is not true as z is born 22 months after x
because of that right ^
Yes
@fallow raft I did take logic and algorithm class similar to discrete but its more on computer science and watching theTrevTutor helped me a lot.
@unborn walrus we do not give out answers here.
clarification question; proving disjoint sets using symmetric difference is contradictory no? i assume this is a trick question (simple yes or no can suffice)
<@&286206848099549185>
i corrected myself @honest barn
i read it as the intersection of A and B equaled the symmetric difference oops
can someone plz briefly explain the concept of multiset combination to me?
Any one familar with Bayes' theorm and can explain it XD
I am note sure what happenes to the summ when you square it?
wdym @versed granite
right side = (summ k)ยฒ is it = to summ kยฒ?
and if you wanna say it with the summ symbol?
because how do i know, that this counts? its [n(n+1)/2]^2
first i would need to proof that, right? ^^
not sure if htis is the right place for this
but for this infinite series
in a problem that i'm doing, i use this summation
but, i dont want to include hte first term of k=1, and want to start the summation at k=2
i was wondering if doing so would simply make the rhs the same but just subtract 1
since i don't want the first term of 1. I'm thinking this doesn't work but let me know if i'm wrong.
yes
For this question, should I let A = {1}? Im not sure how to prove this
So far, I let AโX. Thus f(A)=Y. That would men f-1(f(A)) = f-1(Y) = X
I proved that f-1(f(A)) = X but not the subset of X which is A
@willow root what exactly is the objective? to define a function f?
I have to identify the set A and determine f-1(f(A))
(also nice handwriting. do you usually underline/overline your sets?)
but you define f, right
okay, so you just need a single element whose image doesn't map to itself then
yeah
so what do you want f to be?
I have no idea what he means define a function f, my professor hasnt done a problem like that
I assumed he wanted us to just find numbers in A that contradicts f-1(f(A)) = A that follows f: X -> Y
By defining the function, do I set Y?
yeah, i guess. this is a weird question to ask
So I just set Y = {1}
And since f: X -> Y, that would mean f(1)=f(2)=f(3) = 1 right?
I know 2 would make f-1(f(A)) != A be true
yeah, {2}
So since AโX, f(A) = Y?
And that would mean f-1(f(A) = f-1(Y) cause i just take an inverse of both sides?
f(A) is {1}, which is also Y in this case, sure. (i'm kind of guessing at how the output of the function is defined on a set).
also, i kind of skipped over the part where you take the inverse of f
this particular function isn't invertible
no clue, actually. for any element x, it should be that f-inverse(f(x)) is x (by virtue of how the inverse is defined)
just to confirm i got e) right {1,2,4,6}
it just that my professor sent the answers and it says {7}
which doesn't make sense for me
sorry im confused. im just learning set so i may be wrong but doesn't $\overline{C-A}$ mean that $x$ does not belong to $C$ but belongs to $A$. But since all elements of $A$ belongs to $C$, wouldnt $\overline{C-A} = \emptyset$? And since $\overline{C-A} \cap B$, wouldnt it mean its $\emptyset$?
lohzna:
@mystic moss Can you only do inverse if f is one to one and onto or does that not matter?
ohh i see
So for my previous question, would I need to choose different values of Y instead of Y={1}?
So if I choose X= {1,2,3}, Y={1,2,3} and f: X->Y, I could take the inverse?
yeah, you could
Now what ๐ญ
assume it for n then prove it for n+1
that is just induction
actually you don't really need induction here n+ 6. n(n+1)(2n+1) /6
And the induction step is just changing i to k+1
Well for some reason my professor wants it broke. Down
Broken
no the induction hypothesis you will take it the summation of i from 0 to k
then prove it for i from 0 to k+1
Oh! sorry take i from 1 to k and then from 1 to k+1
take 0 and 1 as base case
yes
h(x,y) = (f(x), g(y))
Can someone help me prove if this is 1-1 or not
and either onto or not
So if anyone is interested, I need help coming up with some graphs to use for a problem for my class.
It's for my math-for-liberal-arts class, and we just started talking about games and probability. But we also have done graph coloring toward the beginning of the semester.
So, take the idea of Competitive Graph Coloring. Players take turns properly coloring vertices of a graph using some number of colors. The first player who can't make a valid move wins.
What would you suggest as simple graphs that could be analyzed by beginners?
triangles/paths/loops?
that sounds interesting. this can be done with any number of players, right
I'm sticking with two players
have you come up with some already? just so i know what you mean by "simple"
you could have some that are always colorable (i.e. no one wins)
Well so far I have a path of 3 vertices, and a cycle of 4 vertices
In the first case (the 3 vertex path), P1 can force a win just by choosing to color the middle vertex first
Oh I'm using two colors here btw, blue and red
In the second case (the 4 vertex cycle), P2 can force a win by choosing to color the opposite vertex P1 chooses first, and using the opposite color
does the first person who can't make a valid move win or lose?
why not use salersperson variation?
Either by coloring the last vertex or trapping the other player.
i mean problem statement is quite simple
What's that @last timber ?
salesperson problem, haven't you heard about it?
you mean tsp?
ye
how does that relate...?
you can extend the path one to a triangle, in which the first person always loses
perhaps you can even do one with a 1-coloring
like a 4-vertex path, where the second person forces the win
actually the second person will win regardless of what happens
I'd like one more graph that makes things "interesting"
I'm thinking of taking the square and adding a diagonal
Actually no that makes it easier
Maybe a pentagon?
can you generalize a strategy for cycles of odd/even length?
well, actually, as one pretty simple option you can do the following variation which is fairly simple:
take random simple graph
first player chooses any vertex to be his initial one
second does the same
then on each move player can color any vertex which is adjacent to colored by him (or you can even make these conditions harsher) or skip the move
maybe we can add something like capture but this is superfluous ig
once all vertices are colored one who colored more vertices wins
i see some possible exploits here, but i guess it is useful game to analyze graphs
do not punish me if this is too stupid

maybe instead of coloring all vertices the condition could be when no player can further color vertices instead
It looks so far like P2 can win the cycles ๐
@mystic moss Yeah that's the strategy
Or the win condition
i guess Madeleine commented my variation
Either you win if you've colored the last vertex, or you win if you've made it so the other player can't do anything
yeah, i was talking about the variation. incidentally, how does P2 win?
Well at least I've gotten a way P2 can win the 3, 4, and 5 cycles
Who knows if it works in general ยฏ_(ใ)_/ยฏ
But I think I've found what my other questions will be
Well I guess since these are finite games there's always SOME winning strategy, but I don't have to tell them that. ๐
Thing is this is meant to be accessible to non-majors.
well many graph problems can be treated mainly by pure logical reasoning rather then heavy theoretical machinery
i think they can reach a conclusion fairly confidently by just playing it out themselves
Yup! That's why I love graph theory
i mean if you want to find isomorphism algo you have to use heavy machinery
but for example for showing the graphs are not isomorphic it maybe enough pure reasoning
also for (c) and (d) they might just give you a vertex and an edge
is that a solution path you'd like?
I mean if they think of it, then that's fine lol
If we proved that an NP-complete problem has no polynomial solution what does that mean for the relationship between P and NP?
Does that mean that P != NP?
can someone tell me how this person got 11 and 29?
nvm
Once the previous questions are answered, can anyone help explain this to me? I don't really know what's going on and I tried googling and watch the recommended video. None of those explain about rectangle problems like this one..
This is just a sketch that I don't even sure if it's 100% correct..
How can we polynomial time mapping reduce SUBSET-SUM into 0-1 KNAPSACK?
@feral hearth you set V and W to something intuitive. take a guess, maybe
S?
k?
I'm just not seeing how I can translate the equality from subset-sum to the inequalities for 01 knapsack
you set both v and C to k.
Is this correct to these questions A) - F)?
A) R = {(1,1),(3,3),(5,5),(7,7),(1,3),(3,1),(5,7),(7,5)}
B) R = {(1,1),(3,3),(5,5),(7,7),(1,3),(3,5),(1,5)}
C) R = {(1,3),(3,1),(5,7),(7,5),(1,3),(3,5),(1,5)}
D) R = {(1,1),(3,3),(5,5),(7,7)}
E) R = {(1,3),(3,1),(5,7),(7,5)}
F) R = {(1,3),(3,5),(1,5)}
i have no idea what to do with -3/x^2 in
if anyone can kindly help, i'll appreciate it! โค๏ธ
@rapid lily Find the general term of the given expansion, simplifying x as far as possible. Then equate the exponent of x with 21 to find the value(s) of n, i.e., the term(s) for which the exponent of x is 21. Find their respective coefficients and add them(if there's more than 1).
Could I have help with this problem please?
@bronze wagon what is SList L
๐ป
lets say i have 2 binary strings, one is A and the other is B. How would i calculate (A n B)' ?
i know how to calculate A n B
n stands for AND?
and ' for complement?
yes
then you can just calculate A n B and complement resulting string
i meant n stands for intersect
or use De Morgan
n stands for intersect
so (A intersect B)'
and wait i forgot Union was or operation?
and intersect was and operation?
right?
yes
seems fine
Ye
Guys i was thinking of taking a course on discrete math...is it going to be extremely hard and do you know what kinda topics they teach in that course?
Discrete math proofs could be intimidating at first, so it's hard to say how hard it would be for you
Honestly, just practicing and getting used to examples makes discrete math really easy
well, they're intimidating if it's your first time doing proof-based math (which is the case for many)
In terms of topics, it can be ridiculously broad, but in general, discrete math teaches: propositional logic, proof techniques (induction, etc.), basic graph theory, recursive sequences, combinatorics
these are all general things; it will be up to the prof to dcide what specifically
@arctic orbit see above comments
Thanks
Anybody available to guide me through a problem? I have an issue with basic inequalities but I don't know how to pinpoint my issue in the proof to actually understand it.
Basically, using Well ordered Principle Technique, prove (2n choose n) <= 4^n
The Well Ordering Principle says that any non-empty subset of the positive integers has a minimum element. This can be used to prove things about the positive integers by contradiction.
So the first step would be to assume the set of integers for which the proposition is false, say A:={nโฅ1 | (2n choose n) > 4^n} is non-empty and let n be the minimum element in A. (Here we use the W.O.P.)
other than that, what have you tried thus far?
My issue isn't the concept of it.
It's the need to get to the fact (2x choose x) < 4^x given (2(x-1) choose (x-1)) < 4^(x-1)
After a lot of reordering and simplification I've led myself to (2x choose x) <= 4^x * [(2x-1)/2x]
Textbook says that [(2x-1)/2x] < 1 and thus it just becomes 4^x but I'm confused as to why that is so
Does that make sense? I'm really bad at explaining my confusion in math. LMK if there's more clarification needed
Ty for being patient with me
oh, it probably means you have
$$
\binom{2x}{x}\leq 4^x\dfrac{2x-1}{2x}< 4^x
$$
since $\dfrac{2x-1}{2x}<1$ for $x>0$
derivada.schwarziana:
Oh, that makes sense. It's weird since the other questions with inequalities have a similar setup but the reason you get to reduce the inequality is different each time
This is what confuses me but I'll look into it more and the different methods.
Thanks so much derivada.schwarziana! You're awesome.
I have 8 containers and 12 items, I want to fill these with these items and I want to see how many possibilities there are to fill them, when 1 containers has to have at least 3 items inside it
I don't know how to calculate this ๐ฎ
set of integers modulu 61
like for this, would the answer be all odd values?
i cant tell if these graphs are plane or not
the one on the left looks like it could be as all its vertices have only 3 lines on them (i dont know the right words for this in english)
heres a clearer version
well its been 15 so <@&286206848099549185>? (sorry to bother)
Can anyone help?
@fervent briar check over your diagram again
(no, check over it again.)
I would get something like this?
The vertical connection can honestly be anywhere.. from all the way to left to all the way to right. They just have to be at the same x coordinate..
For the horizontal connection, the same.. They can be as high or as low as they want. Just that the same y coordinate
you only glue together the opposite sides, not everything in between
So it looks like this? Like a prism?
Actually, it might even look like diamond depending on the x value..
Is it possible to change the dimension of a matrix?
I've played with data science and I remember being able to reshape matrices. I'm working on a practice set for my discrete class and we have a problem for adding matrices with different dimension. I'm just wondering if reshaping matrices exists outside of computing or should I just answer that it isn't possible?
Tried browsing but keeps ending up in matlab pages.
youre gonna have to give some more context
Right, let me make it more simple.
Can you add a 2x2 matrix with a 1x4 matrix?
by potentially reshaping that 1x4 into a 2x2?
if you reshape your 1 by 4 matrix you will no longer be adding the original 1 by 4 matrix to anything
you will be adding the reshaped version
So a 1x4 matrix of all 1 is not exactly equal to a 2x2 matrix of all 1?
it's not "not exactly equal" it just isn't equal
these are two very obviously distinct objects
I see, thank you.
can someone help me with this question, I am trying to simplify this using the laws of set algebra
A-B'โช BโฉA (using Commutative and difference laws)```
after this I am not sure how to continue
(AโฉB')โช(AโฉB) -> A โฉ (BโชB') -> A โฉ u -> A
thank you @minor dagger
Let's see if this helps.
https://www.math24.net/logic-set-notation/
Set theory is a branch of mathematical logic. Therefore, it is natural that logical language and symbols are used to describe sets. In this section, we will look at the basic logical symbols and ways of defining sets. Propositional Logic A proposition is a declarative statemen...
Does a probability of 1 guarantee an event
yeah
How would I go about proving 3^n = 2n+1
with well ordering
I got up to 3^x * (1/3) = 2x - 1 but I'm a bit confused on how to move on from there
(Solved)
3^n = 2n+1??
3^n=2k+1 was meant
you mean that 3^n is odd for all n??
Yeah that's what I meant. I solved it.
Do you mind checking my work for a problem?
It's different. It's on relations.
ok sure
Basically, xRy if and only if 2x+5y = 0 mod 7.
So I got it's reflexive since 2x+5x = 7n and 7 divides 7x.
It's symmetric because if 7 goes into 2x+5y then it goes into -2x-5y as it's simply a switch of parity.
Then finally for transitive, it's transitive because if 2x+5y = 7n and 2y+5z = 7n then 7|2x+7y+5z. I'm not 100% on transitivity part
But I'm trying to prove it's an equivalence relation.
oh boy your work has multiple issues
first off there isn't even any structure to speak of, this reads like a barely coherent string of consciousness
you'd have done better to start with:
i have this relation R defined as xRy iff 2x+5y = 0 mod 7, and i'm trying to prove this is an equivalence relation.
so that i, the reader, know what you're trying to achieve.
So I got it's reflexive since 2x+5x = 7n and 7 divides 7x.
2x + 5x = 7x, this n of yours came out of nowhere
Oh, my bad. I used the definition of division.
and the definition of conguence modulo
2x+5y - 0 = 7n
where n is a member of the set of integers
you would've had to introduce n accordingly
right now it reads as if it came out of the blue
It's symmetric because if 7 goes into 2x+5y then it goes into -2x-5y as it's simply a switch of parity.
it's wrong to describe this as a "switch of parity", nothing here is switching between even and odd.
also this says nothing about whether or not 2y+5x is 0 mod 7, which is really what you need to address here.
Well, to prove it was symmetric (p --> q) I thought we assumed p is true initially.
that's not the issue
you're missing my point
you stated xRy (albeit poorly) but then proceeded to say nothing of yRx
you do not even mention 2y+5x, let alone its being divisible by 7, in your single-sentence attempted proof of symmetry
do you understand what i'm trying to tell you here
Yeah, that my proof is really bad and is basically [a really bad word]. I should string my thoughts more coherently and logically by identifying the definitions.
I should establish definitions and basis of my proof before going through it to not be led astray.
am i understanding correctly that you'll now attempt to redo your proof
Well, yeah but I asked because I noticed the symmetric and transitive part didn't make sense.
I just put down the wrong thought process I noticed I had to state this was my initial thinking.
okay this isnt much better content-wise
and replacing $\equiv$ with congruence modulo'' just feels weird. just write = instead if you don't have the fancy symbol, it's fine. you have the word mod'' there to disambiguate.
Ann:
if anything, $\equiv$ should be read as just ``congruent''
Ann:
or "congruent to"
anyway
yeah you didn't prove symmetry at all, and also more pressingly you used n for two different things in the symmetry section of your proof
which is bad
์ฉํ์ง:
That's why I'm asking.
I tried defining x and y in terms of each other.
But I can't reorder the terms to get 2y+5x.
Yeah, that it's an equivalence relation in of itself.
no, not that
specifically, do you know that congruence modulo n preserves addition and multiplication? namely that if a = a' (mod n) and b = b' (mod n) then a+b = a'+b' (mod n) and a*b = a'*b' (mod n)
No, I did not.
Oh, I do actually. I just didn't read it right.
bruh
okay so there is a shortcut and a way to make this all significantly easier but i don't know how receptive you'll be to my attempts to share it
I actually just want to understand in depth.
Because as you probably noticed, I have trouble abstracting definitions to practice as shown just now with modulo.
so do you want the non-shortcut or the shortcut
ok
Thank you!
i will rephrase the definition of R as 7|(2x+5y) so as to make the subsequent work a little bit easier
and i'll make use of some properties of the divisibility relation which i will assume as known.
so now:
the relation R is defined as xRy <=> 7 | (2x+5y), for all x, y โ Z. our goal is to show that R is an equivalence relation.
to prove R is an equivalence relation, we will prove that R is reflextive, that R is symmetric, and that R is transitive.
to prove R is reflexive, we need to prove that xRx for all x โ Z.
by the definition of R, xRx <=> 7 | (2x+5x), or in other words xRx <=> 7 | 7x. since x is an integer, 7 | 7x is obvious.
to prove R is symmetric, we need to prove for every x, y โ Z that if xRy, then yRx.
by the definition of R, this amounts to proving that 7|(2x+5y) implies 7|(2y+5x).
notice that we can write 2y + 5x = 7(x+y) - (2x+5y), thereby expressing 2y+5x as the sum of 7(x+y) (a multiple of 7 directly from the definition of multiple) and -(2x+5y) (a multiple of 7 as follows directly from the assumption). since the sum of two multiples of 7 is again a multiple of 7, we get 7 | (2y+5x) as desired.
to prove R is transitive, we need to prove for every x, y, z โ Z that if xRy and yRz, then xRz.
by the definition of R, this amounts to proving that 7|(2x+5y) and 7|(2y+5z) implies 7|(2x+5z).
notice that we can write 2x+5z = (2x+5y) + (2y+5z) - 7y, thereby expressing 2x+5z as the sum of (2x+5y), (2y+5z) (both multiplse of 7 by assumption) and -7y (a multiple of 7 directly from the definition of multiple). since the sum of three multiples of 7 is again a multiple of 7, we get 7 | (2x+5z) as desired.
we have shown that R is reflexive, symmetric and transitive, and therefore R is an equivalence relation. this completes the proof.
this is wordy i know but proofs like this showcase so much detail because they're aimed at beginners
I never knew you could do 7(x+y) from 7|2y+5x
I mean I knew, but from definition of divsibility it wasn't clear to me.
i'm not doing 7(x+y) "from" anything
you could instead see it as 7x+7y
and like, expressing 2y + 5x as (7-5)y + (7-2)x
and some reorganization
My thinking process was that I couldn't use yRx like you did to prove it since we're proving for it unless I'm still reading it wrong.
In my head from reading your proof, I'm thinking if P does imply Q, then this case happens. Since this case is mathematically true by the algebra I have shown, it does imply Q. That's how you approached it to me
Oh, I see. You didn't use yRx, you used two numbers being 2y and 5x.You got 7(x+y) comes from though because since 7|(2x+5y) and 7|(2y+5x), you add 2y+5x+2x+5y which is 7x+7y = 7(x+y).
,,,, no
no, i would not describe it as that
how i came up with 7(x+y) has no bearing on the proof whatsoever
I got it.
I'm just really dumb.
Thank you for making such a detailed proof. I really did not see that. It's like stating 0 = 1-1.
i can still give you the shortcut proof
Sure. Thank you so much again.
This helped out more than just this proof.
Really expanded the box for multiple problems I struggled on this assignment with.
take 2x+5y = 0 (mod 7) and multiply both sides by 4 to get 8x + 20y = 0 (mod 7). notice that 8 = 1 and 20 = -1 mod 7, so this becomes x - y = 0 (mod 7) or just x = y (mod 7)
more formally: 2x + 5y = 0 (mod 7) <=> 8x + 20y = 0 (mod 7) <=> x - y = 0 (mod 7) <=> x = y (mod 7)
so our relation turns out to be the same as the relation of congruence mod 7 itself
I gasped.
That's really smooth.
Thanks again for breaking it down for me and helping me expand my critical thinking skills.
And being super patient.
If your question has not been answered for a minimum of 15 minutes, you may use the Helpers tag once. Please do not try to bump your question using this ping unnecessarily. Do not abuse this ping. Do not individually ping users with the Helpers tag without their express permission.
How to get started with this? I'm completely stuck
moved to questions-y
I think you delete the original question and use the tag in one of the channels below while providing context and what you know
Okay. Done
Thank you ๐
is this graph theory
Yea
Itโs a Hamiltonian path
huh?
Sorry S is the subset of the vertices of a graph G
do you mean a traceable graph is a graph that admits a hamiltonian path?
what's G - S? is it the graph you get by cutting out all vertices in S from G (and the edges incident to them)?
This is the question:
In this book, traceable is defined as a Hamiltonian path. Which is the path that spans all vertices in G
I donโt know what you mean by โadmittingโ
it doesn't mean the graph consists of only a single path and nothing else
a traceable graph is a graph which has a hamiltonian path, yes?
Yes
I made examples and I see how it makes sense. I just donโt know how to prove it mathematically
ok
I kind of made a proof but donโt think itโs rigorous enough
ok, can you show?
I assume G is traceable and S subset of V(G), then deleting |S| vertices splits the path into at most |S|+1 paths => G-S has at most |S|+1 connected components
the idea's fine but the last part is a bit of a leap of faith
Can you help me improve it?
you might mention that if in a graph G there exists a family {A_1, A_2, ..., A_m} of pairwise disjoint connected subsets of V(G) then G has at most m connected components
which is pretty simple to show
and then back to your reasoning, deleting S from the path will split it into some number of smaller paths, say k - and you have that k โค |S| + 1 with equality iff no two vertices of S were adjacent along the path
and then applying that lemma i mentioned you'll have (# of connected comps of G) โค k โค |S|+1 and you're done
you can also be more explicit in saying exactly what vertex sets G gets split into
do y'all have any hints on how to prove that every graph on n vertices must have either a clique or anti-clique of size $\frac{\log_2{n}}{2}$? (wanted to ask here before reading the proof)
Madeleine:
This is my own work/research. How do I get from the top statement to the bottom..
I kinda get why just from looking at it but have no idea how to explain it or write it in math formally.
If you answer and I don't repond soon, it's because I've gone to bed (2am for me ๐ฆ ) but I will be very happy to chat during daytime tomorrow.
are you guys familiar with the empty graph by any chance
I am not, sorry.
Actually, after googling it I understand the concept, I did a little graph theory.
yah its basically an edgeless graph
anywho, my question is, are graph contractions possible on an empty graph?
cuz graph contractions are usually respective of edges
By that do you mean edge contractions? If so no because there are no edges.
I spent quite a while trying to find an example of something similar/and the exact proof but failed ๐ฆ
thats what im saying lol
im doing a course on graph theory
and one of my assignments asks for performing an algorithm called the connection-contraction algorithm on the empty graph $E_4$
Oh I thought you were trying to abstractly help me out.
Majez_tic:
ohhhhhh shit. Im sorry dude. my bad
Haha its okay I'll post in a different channel.
are you sure you're in the right chat for your research question tho?
Well, it is discrete math
This is literally called the discrete Fourier transform ๐
ah i see. i wish i could help ๐ฆ I havent done discrete math in 4 years and forgot everything about that fourier transform
you too!
thanks
Does anyone know how to prove this yellow part?
If a graph has Hamiltonian cycle then it has a nowhere-zero 4 low
ok, can you show the example graph on which you're trying to construct a 4-NZF?
@sleek island what is a Hamiltionian cycle?
its a Hamiltonian path that is a cycle
What does ~ mean? @earnest comet
negation]
Do you mean the complement? Or what is the negation of a set?
i think it's more to the negation of the set
Do you mean the complement? Or what is the negation of a set?
@quaint star
negation of a set
What does that mean?
So you don't know what ~ฮ is either?
Indeed
So it meant the complement of
The fact that your solution is in English tells me this is not a translation issue. SETS CANNOT BE NEGATED.
Sets have complements
im sorry man
You don't have to keep apologizing, lol
I just want to know whether you understand what ~X means or not
I mean
I see where he came from though
~P if P is a statement or ~C is C is a statement does mean the negation of P or C
Yeah, but he is just not answering my questions and keeps apologizing so it's difficult to help
yeah yeah gotcha
some (old) books denote implications with the inclusion symbol @quaint star
Interesting, but here they specifically said A and B are sets
ah yeah lol
I have never seen that though, so that is interesting
just a weird way to denote complement idk
yeah, I'd just go with the notation that it means the complement of the sets
like A->B would be noted B \subseteq A, as in the conclusion (B) is included in the antecedent (A)
but yeah it's just sets here fuck @quaint star
From the proof he said, it definitely means complement, even though no universal set was mentioned
Please help
I know how to find out number of solutions of x1 + x2 + ... + xk = n
But I'm not sure how to connect that to this
<@&286206848099549185>
Can anyone help me with this?
@normal dragon still working on it?
look at the combination and consider what it means
like do you have an idea of why it should work?
I do
I took some examples and saw why it comes
Also, I'm pretty sure it relates to the aforementioned "bars and stars" analogy
But I just don't know how they fit in here, or if they do at all
they do. what does the combination mean?
So, the sequence is an arithmetic progression.
We have to select all legal ones
2 or more
i mean the ${n - r + 1} \choose r$
Madeleine:
Oh that. It's selecting r things from (n-r+1) things. We can do that in (n-r+1)!/(r!)(n-2r+1)! ways
okay, so what do the r and (n - r + 1) things represent in this case
okay, so why (n - r + 1)
so i claim that we have n - r + 1 positions, and we choose r of them to be part of the sequence with no restrictions. how do we now fulfill the restrictions?
i.e. how many positions are we "missing", and how do we use them?
We miss n + 1 positions
And we fill them with the values not in the initial sequence i.e x+1 because the next term will be at least x+2
n+1?
Oh wait
Is it like
T(n+1) >= T(n) + 2
So we take all possible combinations and subtract it with {T(n+1) < T(n) + 2}?
But since it is a subsequence of {1,2,3,....,n} we can't have T(n+1) = T(n)
So we take away T(n+1) = T(n) + 1 ?
Is this a half-decent approach?
not entirely sure what you're doing there my guy
the problem is: i have n positions, choose r of them but they can't be next to each other
so what are we doing? take away r-1 positiions
choose r of the remaining
and then what?
Arrange them in such a way that T(n+1) is at least 2 more than T(n)?
Like, fill in the values
yeah, you squeeze one of the remaining r-1 positions in between each of the r positions you chose
now you're guaranteed to fulfill the restriction
Yeahh makes sense
But how would we justify the said property?
Does that get taken care in the selecting r positions part?
wdym said property?
We have to have sequences, where each term is at least 2 more than the previous term
And count number of those
As in, our selection of these numbers and gaps will fulfil this requirement of the selection
the non-adjacent requirement is fulfilled by the insertion of the r-1 "spacers"
Yeah
And non-adjacent means at least 2!
As it's at least x+2 from x
Oh man
Awesome!
Thanks a lot m8
yw
Hi guys so Iโm struggling with proving the periodicity of a sequence
So itโs basically the Fibonacci sequence but mod 5
I mean itโs pretty obvious that the sequence is repeating itself but how exactly do I prove it
the answer to this would be 14 right? Prove by strong induction that any amount of postage can be made >= ________________ using any number of 5 and 9 cent stamps, along with possibly one 2 cent stamp. You should fill in the blank with the smallest whole number that works.
Seems ok to me.
Hey I was wondering if someone can help me with an induction proof...
wanna just give me a head start for letter c ? plz and ty. I just finished a and b but im a little confused for c
hey does anyone have any videos on mathematical inductions, methods of proofs and relations? these are very hard to me if anyone has any idea on what to do
Help how to do this
13C2 * 13C3 * 13C2 * 13C0
13C0 doesnt matter tho obviously theres only one way to choose zero cards
so 13C2 * 13C3 * 13C2
How can I prove that in a connected graph, there is a path that goes through every edge exactly once with different starting and ending point iff there are exactly 2 odd-vertices ?
@restive olive
What is equivalence here?
I don't think you're allowed to just make up what ~ means, haha. Odds are f ~ g means that they have the same end behavior. That is,
lim{x โ inf} f(x)/g(x) = 1
Note that f(x) = O(g(x)) if this is the case
But I'm not certain of that, it might depend on context. Where's the question from?
It would be false
Again, f(x) = O(f(x)) for ANY function. As such, f and g can be anything
And so f ~ g isn't guaranteed
I believe that to be true, but I'm still a little iffy on what ~ is
Trying to look it up
Yeah actually I think I did get it, looking at it now
It's been a while bear with me
๐ป
Can someone help me understand this?
for a) monotone sequence theorem
Let me try to get something off my textbook pertaining to that and them get some sort of start.
Would b) be Bolzano-Weierstrass?
nah, just continuing of a)
well prolly you can use bolzano there
but it is just a) finished
I'll see what I can make of it! Thank you!
I'll have to review the monotone sequence theorem but I'll try to make a proof based on things from the book.
The book has an almost-similar function used to describe a bounded decreasing sequence
wait never mind
Question moved to question-y
it is possible ^
euler proved it
yes its a euler path
so if you can draw the graph without lifting up your pen (the graph has an eulerian path) if and only if all the vertices have even degree or exactly 2 vertices have odd degree
*odd degree
yes
IS anyone good with proofs that is up atm?
I think you're supposed to also not cross lines you made previously too but
Shouldnt step 5 be Ez and not Ex
idk where to start
Does anyone know how to do group multiplication tables? I don't know how to start if im given this: {1,i,โ1,โi}
Do I just make a table like so:
x | 1 i โ1 โi
1 |
i |
-1 |
-i |
yeah that's literally it
so i dont start with 0 first? bc I saw an example (Z / 7Z) where they go from 0-6
0 is an element in z/7z but not in the group you're looking at, just multiply all the elements in the table
@coral raven do you mind checking this? I wanna make sure I didn't make any mistakes.
it's fine
Is anyone good at pythagoras?
@weary tiger can you please make your 1 and i more visually distinct this is kind of a pain to read rn
it all just blends together into a forest of sticks
this is literally my handwriting and therefore i feel obligated to defend it
the handwriting's shit when it comes to math
it does not take that much more energy to add a little swoosh to your i's
pain
lmao
can anyone help me with some proofs for big O, omega and theta?
@tawdry pasture Just put the question. YOu shouldnt "ask to ask"
I don't think that's discrete math though.
Perhaps it is, I don't know, but anyways, just throw the question ๐
@tawdry pasture Any idea how to approach
i don't know what proof method to use
I understand graphically how the statements are true
but no idea how to put it into math
and when i asked my professor last week for a mathematical explanation she said we wouldn't have to do that in her class
then she gave us this exercise because people didn't understand graphically
I think you can take the thing in O and divide the left "function" with it. And then take the limes of n to +inf
So for the first example:
1/2n^2 - 3n
lim --------------
n->+inf n^2
Now, I think if this is a number bigger than 0 and not infinity, then it is proven equal. Otherwise it is not equal
I base that on this table from wikipedia:
rightmost column., says that for theta, both Big Oh and Big Omega must be true. The first says it must not be infinity, the other says it must be bigger than 0.
@weary tiger Don't ask to ask. Just ask, on the appropriate channel.
sorry just new to discord
dont know how this server and stuff works
Just need help with this
rightmost column., says that for theta, both Big Oh and Big Omega must be true. The first says it must not be infinity, the other says it must be bigger than 0.
@glacial flame thank you
@weary tiger I never saw something like this, but I guess (i) should be simple?
Just replace x and y with concrete values. and you get -1=1 which is false
(ii) is weirder. But it seems to me that it means: "for every y there exists x such that the statement x+y=1 is true"
yeah ii is confusing me so mucg
Which is obviously true. But the proof would say: "for any given y observe x=1-y. This is also an integer because 1-integer is an integer, and it satisfies the statement x+y=1. Thus (ii) is true."
Perhaps "proofs-and-logic" might be a better channel to ask.
@tawdry pasture There is slightly more traditional proof which involves the definition in the second to last column in the image I pasted.
Don't know which one your professor expects.
Do algorithn questions go here too? I'm learning algorithms in discrete math
Let's say before doing a loop
A=10
B=20
And inside the loop, theres:
A = A+B
B = B-A
In "B=B-A", is the "A" value the one found from "A=A+B" or the one before the loop (A=10)?
the most recent
Ok so A= A+B -> A = 10+20 =30....so then B = B-A -> B = 20-30 and not 20-10? Just want to be 100% certain. Thanks
How do I read/translate this problem?
a โก b(mod 3)
Can anyone help me with 1b? I feel like I have the right theorems, but I'm not sure how to apply them.
haven't i already helped you with it
Well, can I get some pointers with it?
I applied monotone convergence.
And in the book, it says something about how lim(xn) = sup(xn : n is element of natural numbers)
for 1a) it is just monotone sequence theorem
because v_m is obviously >= v_n whenever m <= n
I got that part out of the way, yes. I managed to prove it was bounded and increasing, and that v_m+1 was also convergent.
yes nice
for b) you can just show that x_s is lower bound of S
and that for each eps > 0 there is subsequence that converges to something in ]x_s, x_s+eps[
like just push defn of infimum
I was scrambling for theorems I could use and I ended up finding four that seemed relevant, but also redundant.
I think I ended up writing sup(v_m) = sup(inf(x_n : n >= m))
And wanted to follow up with an identity by grabbing from x*
well i would do it so: let L be any subsequential limit. then L obviously >= x_s by definition of convergent subsequences
then showing second parf of inf's definition is also not so hard
There's a certain part in my book that I thought relevant for the next part of the proof and it was the following:
ok btw d) is just your statement
but with inf's
you can read its proof if you want
because compase c and your statement
Wait, is it? I figured it couldn't work, but maybe it can if I look at the proof.
One sec
I see that in (d) they applied (b). I like it.
But that (d) implies (a). If we switch sup(x_n) to inf(x_n), it should still work.
i men look at c and what happens if in u_m you change sup by inf
this would be just v_m then
Maybe I overthought it. So the statements are still equivalent even with infimum instead of supremum?
i meant your statement is just this theorem restated for lower limit
anyway, point is that you have to show that for every eps > 0 there is convergent subsequence with lim = L in ]x_s, x_s+eps[
Oh! I think I can do that!
Also, if I may ask, what does the format ]x_s, x_s+eps[ represent?
well, once you show that x_s is lower bound for set of subsequential limit it will show that x_s is its inf
]a,b[ is just (a,b)
i prefer ][ notation for open interval to not mix it with ordered pair
Oh! Never seen that before, but that clears a lot of doubts on ordered pairs and open interval.
Let me see if I can get some sort of proof going. Thank you so much, again!
yw
@last timber you prefer to impale yourself on the loose ends of these brackets
Lets say f(x) goes from N -> R
and g(x) goes from N -> R.
Am I right to say that we CAN'T do fยฐg (composition) since the end result of f(x) doesn't match the starting point of g(x) since is R and N respectively?
in general yeah you cant do that
Thx :D
just need to confirm my answer (dont have solutions)
they arnt isomorphic cuz in G_2 4 and 3 have 4 nodes are of degree 4 and none of the nodes in G_1 are of degree 4
thus not isomorphic
confirm/deny anyone :)
they arnt isomorphic cuz in G_2 4 and 3 have 4 nodes are of degree 4 and none of the nodes in G_1 are of degree 4
what?
more like that sentence isnt legible
(sorry for bad english)
im really bad at english
but
what
i mean
you see nodes 3 and 4 in G_2
they are of degree 4
no theyre not
idk did u come up with an isomorphism?
Yes, if you say they are isomorphic, you should be able to create an isomorphism between them
i can create an isomorphisn with a function tho?
a graph isomorphism is a bijection between the nodes
so function i get should be a bijection ? @pale epoch
that its also a bijection between edges kinda
if {x, y} is an edge in one graph, then {f(x), f(y)} is an edge in the other and vice versa
yes
for this example i would first try to draw the left graph differently
switch b and d to get a 'square'
and then move f and c inside
should be easier to see then
so you try and make it visually the same
ye
remember, the drawin is arbitrary
ye
and the given drawing of G_1 is kinda ugly imo
too many crossings, makes it hard to check for isomorphism invariants
ye
When the question asks to find the simplest g(x) function of the same order as f(x) such that f(x) O(g(x)). I'm having a really hard time reducing this whole function. Like I don't see anything to factorize that would be useful or any properties that I can directly apply.
can't guarantee I'm gonna be much help, but what does make a line mean here? there will be some 3 in a row, diagonally, horizontally, or vertically, such that all 3 are either all black or all white?
There's only so many slopes of lines allowed, maybe that helps somewhere?
Oh snap I think that does it
can't guarantee I'm gonna be much help, but what does make a line mean here? there will be some 3 in a row, diagonally, horizontally, or vertically, such that all 3 are either all black or all white?
@weary tiger i think what it means is that even though there isn't a straight line of black dots, there will exist 3 separate pairs where two black dots will have an empty white dot between them that connects the black dots to make a line
I don't think I understand
alright for part i do you have any ideas what the elements of each set will be?
what values of x satisfy 1<x^2<42
try to focus on the inside before distributing the negation
do you know a statement logically equivalent to q implies r
yes you can
Lemme try then
not p and q
and then you can break the biconditional down into conditionals
and use the logical equivalence on them
how do i find reflexive closure
Can any one help me do this?
Can any one help me do this?
@compact orbit I want to covert this to non canonic CNF
Can any one help me do this?
<@&286206848099549185>
what is the transitive closure of this {(a,a), (a,c), (b,a), (c,a), (a,1), (1,2)}
i got (a,2) (c,1) (b,c) (c,2) (b,1) and (b,2) but not 100% sure
please @ me
@rugged pebble (c, c) would also work right
for which two?
(c, a) and (a, c)
oh, you can do that? even if it goes back to itself?
i thought pairs that are the same count
i mean, doesn't transitivity mean that if a*b and b*c, then a*c
ya
hm?
Does anyone know what B is
,rotate
well thinkof it
no
presumably there is a universe of discourse here
do you have the problem exactly as stated
the "only" is whats tripping me up
yeah but P & G says nothing of everyone else
yea
i mean idk you could have sth like
E: someone else has been caught by the police
and then it'd be P & G & !E
Did anybody understand my question?
@drifting pewter This Venn diagram?
Yes @glacial flame
What is your attempt
To find the smalles central area you have P^Q^R ^=intersection
Making a complement of that will give you everything but that small shaded area, and intersecting that with P again, will give you everything in P without that small shaded area.
So (P^Q^R)c ^ P gives you everything in P but that small central shaded area. That is this formula gives you the unshaded area on the picture.
You are asked to get the shaded area, so you need to complement all that once more and that is your final solution.
My attempt had P complement in it but I realized it couldnโt be P complement if part of P is shaded
So my solution is clear to you?
You said itโs (P intersect Q intersect R) complement intersect P
So put all that in parentheses and complement it
hi so does anyone know how to do a turing machine that returns x if x >= y, and y if y > x? i found a few similar examples online but couldn't tell if they returned x when x and y were equal (e.g. https://www.geeksforgeeks.org/turing-machine-to-accept-maximum-of-two-numbers/)
@weary tiger as far as i can tell, they return y when x and y are equal in that example. you can just change the order in which you search, though, and you'll get the opposite result.
@weary tiger as far as i can tell, they return y when x and y are equal in that example. you can just change the order in which you search, though, and you'll get the opposite result.
@mystic moss oh thanks, how do i change the order though?
search for a 0 on the right side first
@mystic moss oh okay and how do i do that? sorry
im kinda lost
i think you can just start in q1 @weary tiger, maybe.
hmm maybe let me see
Hi can someone help me understand the answer to this question?
6d
I donโt get it from this sentence: โbut in any such coloring, at most k-2 colors appear on the neighbors of vโ
Do they mean that since we assumed that there is a vertex of degree k-2 or less that, by definition of k crit, we have neighbors with at most k-2 colors?
<@&286206848099549185>
Can someone verify if this answer is correct?
pain
@meager verge Can you explain what is the question and this table?
any hints?
@meager verge I think that looks right
Unless the booleanification of your Heyting algebra is nontrivial...
nah jk
the sum of all the elements is 465 @inner veldt
lol yeah
i don't intuitively see how to go from there tho
465, but then what? I thought about looking for a bijection but haven't found much
cuz like 465 - 232 = 233
but huh
well if u take any subset
either the set or its complement will have a sum larger than 232
very useful fact right there
I also saw that this subsets should have at least 9 elements and at most 21
oh Ic
okay
will go on from there
thanks
Can someone help me understand this? Is it saying that each digit in '00000' is a set with two possibilities, hence 2^5?
when constructing a bitstring of length 5, you have two options for each bit (0 or 1)
(kind of by definition. thats what a bit is)
Gotcha. Thank you! I'm new to all this. Just started a CS degree
Hello all, just joined, I have a very basic "Big O" question, f(x)= x^2 and g(x)= 2^x, i know g(x) is the upper bounded equation, but how would u say that correctly in big oh format?
would it be g(x) is big O f(x)?
thank you (:
g(x) is the upper bound, not the upper-bounded
Could someone help me understand this? Does 'u' under the recursive definition represent any possible 'string'? As in, it could represent 'a', or 'b', or even 'ab'?
And lambda I believe just represents 'nothing'?
by 'string' does it have to be just a or b, or can it be any combination of a's and b's together?
strings do not have to consist of only a single character
would be kinda boring if they did, no?
there's a bunch of strings listed above. The alphabet is the stuff with single letters only...
the alphabet has the letters
which sounds obvious and tautological
and it kind of is
well, it's a primitive object
start going anywhere but up with them, you just go in circles, logically, lol
Or at least I do, when I don't realize I'm trying to get something to imply an axiom or definition, lol
sometimes people overthink things
Thanks friends. Feels like i'm asking the obvious but it's nice to have affirmation โค๏ธ
Thank you.

