#discrete-math
1 messages Β· Page 92 of 1
yeah its not
because g(f(x)) is not the same as f(g(x))
yes
but monoids don't require commutativity
dont i need to show its closed under composition too
@weary tiger 
f and g are functions from A -> A, so f(g(x)) will also be A -> A
and the set A^A, contains all functions from A -> A by definition
right
t!rep @weary tiger
π | yami has given @weary tiger a reputation point!
$\circ$ btw
Ann:
lmao
can a relation be neither symmetric or anti-symmetric?
also, wtf does an antisymmetric definition have to do with the matrix relation, its like they somehow are NOT related at alll
yes
wait how so
π€
oh wait nvm
for second question, how do the asymmetric definition and matrix connect?
mhm
{(3,4),(4,3),(1,2)}
yup
example of one
not symmetric or asymmetric
yes
so the only 3 possibilities, are, either it is symmetric, antisymmetric, or neither symmetric/antisymmetric
idk what you mean by matrix
lemme link something ginmme a sec
it also can be both symmetric and antisymmetric
like there are no relations, then its technically symmetric and antisymmetric
cuz there is no initial condition to begin with
like equality
from the definition of symmetric and antisymmetric
hmmmm
gotcha
ok so for example
u know the transitive relation
the definition
and matrix representation make sense logically
but for asymmetric, that shit dont make sense for soem reason
like the definition of asymmetric states that
if (a,b) and (b,a) are relations, that implies a=b
how tf is that related to
this
i dunz get it
ye
using matrices to represent relations
like i understand the connection between the defiinition and matrix of transitive, symmetric, and reflexive
i just dont get assymmetric
so you have (a,b) , (b,a) -> a = b
yes
so that means if $ a \ne b$ then (a,b) = 0 or (b,a ) = 0
Victoria:
which is what its doing there
im assuming its an exclusive or then
reflecting across diagonal gives you the corresponding symmetric relation
like (a,b) reflected across diagonal gives you (b,a)
oh wait no
its not exlusive or
its inclusive or
ok
that mkes a LOT of sesnse
cuz they never match the initial condition anyways
only way for an implication to be false is when the intiial condition is true and conclusio nis false
but anyways thats why antisymmetric is like that
is there a method to check transitivity of a matrix using boolean square?
I heard u have to keep doing the boolean squarw til its the same or something
actually let me rephrase, how to you take the transitive closure of a matrix by using boolean squre
square*
cuz the only thing i know is to keep taking the boolean square til you get the same matrix, and then take the disjunction of all those matrices to get the transitive closure
Warshall's algorithm
oooooooo
apparently this is the transitive closure algorithm
hmmmmm
do you know what $\exists$ and $\forall$ mean?
Ann:
yeah, so that statement would translate to "There exists an X such that for all Y P(x,y)"
So I have either find an X that works with all Ys or show that it doesn't somehow
or show that no such x exists
Ann:
there. fixed the quantifiers.
Frank:
i dont know how to write the not part, sorry lol
but i think thats how it works, right?
you may as well replace $=$ with $\neq$
Ann:
okay thanks lemme try that
umm this proof seems even harder to play with. So now I have to show that will all X this is true, this is true there exists a Y but there are a lot of things that will make the inequality true for any x but I don't know how to prove it for all of them
I guess, because usually I would try to just find contradictions, but I'm not sure what I can do when I have to go through all of them and can't think of a contradiction at the top of my head
I remember there's a couple of proof methods, proof by cases and proof by contraposition ( which I think that's what we were trying to do) but I'm not that strong in using those proofs when I have a universal generalization
@west crater
Still looking for it?
yeah
well kind of, I think i might have an idea, where I could find an x value and that x value should be true for all the Ys
i think
if it isnt, then its false
im just reviewing this method to see how to do it
unless you have another idea, it could help
Anyway, use this:
x + 2y = xy
x - xy = -2y
x(1 - y) = -2y
x = -2y / (1 - y)
Let's say y = 1. What's x?
So, there's no x for THAT y
OH
okay so if im trying to prove a universal like this, I can try to put it so that y has a part that isnt defined
So that would make it so that p(x,y) doesnt exist from x -> y
i see
that actually helped a lot, is this proof method pretty useful for all of these quantifiers?
Let's do this a different way:
x = -2y / (1 - y)
If y = 0, x = 0
If y = -1, x = 1
This shows that there's no single x for all y
There's a few ways to go about it
in graph theory, theres a theorem that says
D_1(G) + 2D_2(G) + 3D_3(G) + ... = 2 * |E(G)|
how do i find D_1, D_2, etc..
i think i have to find the degree sequence but idk how
nvm, got it
hey folks, just wanna verify that I know why we can use proofs by contradiction
i'll type out my reasoning here, and if you see that its correct/incorrect please let me know
normally, in a direct proof we'd be interested in evaluating something in the lines of p -> q
that is "p implies q"
if p is false, we know that the statement is vacuously true
so we're interested in cases where p is true
now, if p is true and q is true, then p -> q is true and we're good
but if q is false, then p -> q is false
now, the contradiction involves first noticing (via a truth table) that the statements p -> q and (p ^ ~q) -> (r ^ ~r) are logically equivalent
where ~ is negation, and r is some conclusion
we note that r ^ ~r is always false
so if we can show that p ^ ~q is false, then we get F -> F which is true, thus proving p -> q is true
in other words, we then first negate the original conclusion (q) and keep the original hypothesis (p)
if we're able to arrive to a conclusion as r ^ ~r (for example, we start off by assuming n^2 is even and at the end we get to n^2 is odd) then we've successfully shown that it is a F -> F (true)
and thus the original claim p -> q is true
i'm still working out more problems so pls tag me for feedback - thanks!
@weary tiger
Contradiction isn't usually for statements of the form A β B, you're usually better off using another method in those cases. Contradiction is useful in that it proves statements without an "if then" form
Contradiction goes like this:
Take a statement you want to prove, call it A. Assume A is false
Take a statement that you know is false, we'll call it B.
Show that Β¬A β B. That is, show that our assumption on A will prove a statement we know is untrue. This obviously can't be the case, and so our assumption must be wrong; A is true.
Weβve mostly used them on ones with if them form, but also for ones like prove sqrt(2) is irrational, etc
Your nomenclature is confusing me a bit, but I think I get the overall picture
Youβre basically stating the same thing that if the end result (what you call B and I used r ^~r) is something known to be false, then the original claim (which you call A) will make A -> B true only if A is false as well
@weary tiger perhaps another explanation is, in classical logic, there are two truth values T and F, and that every proposition is either T or F
that is, the law of excluded middle holds for every proposition P, (LEM): (P or not P)
then for a proof by contradiction you assume not P, obtain a contradiction C somehow, then as a consequence of LEM, for LEM to hold, you are then justified to conclude P
π
how can i figure out if graphs are isomorphic
sounds hard in general
if they are small you can just check some special properties
like how an isomorphism preserves degree
and loops
and cycles
@slow socket do you know what a graph isomorphism is?
This is wat i got.
i can check the cycles ?
check the degree of the vertices
and for the rest of them build an isomorphism
if you suspect they are isomorphic
what do you need explained here
in (i) it is said reflexive and transitive
I understand reflexive in (i)
I do not understand transitive
R = {(4,4), (5,5), (6,6), (4, 6)}
to prove transitive
(a, b) belongs to R
(b, c) belongs to R
then there has to be (a, c) that belongs to R
from the example (4, 4) and (4, 6) I think (a, b) and (b, c)
where is (a, c)
if (a,b) = (4,4) and (b,c) = (4,6) then (a,c) = (4,6)
so transitivity is not broken there
@twilit wadi
so we do not need extra (4, 6) in the set
from (4, 4) β R_1, (4,6) β R_1, and transitivity of R_1, you would deduce (4,6) β R_1, but that's one of the premises anyway.
thanks
Can someone tell me what this does?
it recognises a language
or rather, it accepts or rejects words
this one looks like it recognises the language of words over the alphabet {0,1} which lengths are odd, but I'm not sure
is there such thing as an asymmetric digraph?
i don't understand what one would look like
i can see it on matrix's or functions
i guess all you can do is the reflexive one
for anti symmatry
@weary tiger i thought of an asymetric digraph, all it would look like would be 4 points
with 4 loops relating to themselves for example
if {3} was a subset of X that would imply 3 is an element of X, which it isnt
but {3} is an element, so {{3}} is a subset
ahh makes sense, thank you
that would also make {{1}} a subset then
thanks
and would {2} be a subset then?
because 2 is an element
exactly
thanks a bunch
Hello all, I have a hard time understanding why the number of solutions to equations of the type axβ‘ b (mod n) is the same as gcd(a,n)
Like i get that theres probably some simple fact that I'm missing from the fact that it can be rewritten as ax-ny=b (it can, right?)
Fix a solution to ax-ny=b. Given another solution how can we get a solution to ax - ny=0?
for the solutions you also mean modulo n I assume, otherwise there ought to be infinitely many
So adding the gcd you mean?
Yeah b is the remainder
I'm not sure if I understood you guys correctly
I mean yeah, there are infinitely many but just all the ones that are relevant in Z_n
So first (assuming there is at least one solution) you can show a correspondence between the solutions to ax-ny = b and the solutions to ax - ny= 0
Then ax-ny=0 iff ax =ny, so iff ax is congruent to 0 mod n
Sorry man I don't understand any of that. How can ax-ny equal 0?
Do you mean rewriting it as gcd(a,n)=ax-ny?
suppose a x_1 - n y_1 = b and a x_2 - n y_2 = b
Then (x_1 -x_2, y_1 -y_2) is a solution to ax-ny =0
Similarly given a solution to ax-ny=0 we can fix a solution to ax-ny = b and get another solution to ax-ny = b
So if you fix one solution to ax-ny = b you get a correspondence to the solutions to ax-ny=0
Similarly in mod n, there is a correspondence between solutions to ax Congruent to b and ax Congruent to 0
So it makes sense that the number of solutions will be fixed no matter what b is
Ok, sorry may I ask you to walk me through this example with real numbers? For 8x=10 in Z_14 we have that 8(10+7k)-14(5+4k)=10. How can I create the correspondence to ax-ny=0?
Two different values for k don't produce 0 as you suggested
We know 3 is a solution to 8x = 10 mod 14. Now given another solution n consider (3-n), which will be a solution to 8x = 0 mod 14
Now given a solution m to 8x = 0 mod 14 consider 3+m. It is a solution to 8x = 10 mod 14
Solution to 8x=0 mod 10
So you just have to figure out how many solutions there are to 8x = 0 mod 10
In this example
You're blowing my mind, perhaps I'm missing some prerequisite but how did you conclude so easily that for another solution n, (3-n) would be a solution to 8x=0 mod 14?
can i get some help with this
Ok, @hexed rune, thanks for helping me. I'll think about it for myself a bit and work up the linear algebra
After this you just have to figure out the number of solutions to ax = 0 mod n
I was just referencing linear algebra because it's the same method
Ok so there are gcd(a,n) solutions for n|ax in Z_n they're all multiplied by 0
like there is a row of zeroes?
or no
I don't know I probably have to sleep on the issue, it is probably very trivial. At least according to my book that left out the answer to the question
Read the section on general solutions to linear diophantine equations
ah, ok I never had such a formula for finding all solutions, I just added and subtracted the lcm, but so the intuition is that as lcm is m*n/gcd. There are gcd number of solutions before it wraps over so to speak, correct?
Yeah basically
because their abm/gcd(a,b) is the same as the lcm
or at least any multiple of the numbers
ok, I think I get it, thanks a lot π
On a completely unrelated note, how do you find brilliant? Is it wort getting to practice this type of stuff? Do they provide lots of practice questions?
I just searched for an explanation of the general solution to linear diophantine equations online and they were the first link lol
I don't usually use them
It seems alright though
alright, got you. I might give them I try sometime
number of total bitstrings is 25
then to find P(B) it is 2^n-1 so 16 P(B)=16/25
then to find P(A and B) I find number of bitstrings for 0 1's, 1 1's 3 1's
that also gives me 16
so 16/25 again
and I don't know what I'm doing wrong
"then to find P(A and B) I find number of bitstrings for 0 1's, 1 1's 3 1's" and 0 ain't odd either
my brain is busted sorry
hey quick question
is it a/(b+c)
because it would be set up as
a(k+j) = (b+c)
then you divde the (b+c) over
to make it a(k+j) / (b+c)
but you dont need to write out (k+j)
???
what was the original question @echo lintel
@echo lintel a|(b+c) is read as "a divides (b+c)", which means (b+c) is divisible by a
Its not the same as a/(b+c)
ft fs
Yes
Perhaps.
can anyone help me understand this please? :(
i don't get the second calculation mainly
they're trying to do 0 - f, and to do that you have to borrow, right
but if you're borrowing the top number should change to 0x1ef0, right
and then do f-f to get 0
instead they have 0x1f10?
i don't know where that 1 came from
the second calculation is doing 10-f already having borrowed
the 1 represents said borrowing
@wanton sable
does anyone know anything about structural inductions?
i can't find any good videos
Does anyone know how to do this in excel because I have no idea, the book just says a spreadsheet
@wooden swift
You can grab/drag the bottom right corner of a cell to "extend the pattern" and excel should be able to do each with that
why is the converse equal to inverse ?
@narrow heron
The converse is the contrapositive of the inverse
p β q = Β¬q β Β¬p
You can always switch the order and apply a Β¬
So, do that to the inverse:
q β p = Β¬p β Β¬q
how was that in any way an explanation?
oh, I guess it is if you understood the contrapositive
With the explanation, now i understood mathemathically why inverse is equal to the converse.
Also from computer science server, someone explained logically to me as shown below :))
Rlly appreciate the help from you guys ;)
I would like to find a point such that its distance to any lattice point is unique (unique in that its distance to any other lattice point isn't the same). Does such a point exist?
@narrow heron isn't the inverse just the contrapositive of the converse
...and that's why they're the same...
Yes agree!! Didnt see that at first π
you guise pointed it out so i found out ;))
@marble mason can you tell me what u mean by lattice or link a wiki page? i forgot and there seems to be multiple concepts with the same name
intuitively I'd say any point with irrational coordinates should do the trick
why?
because my intuition says so
lol
ok...
I think you could argue that a point rational coordinates is on a line with rational coefficients, and if that is so, then it's on a line whose every point is the same distance from two lattice points.
does this work? pick the red dot
there's more lines than those
anyway, reasoning is this:
(my reasoning is flawed)
(I stand by my intuition tho)
i mean this question is equivalent to asking: does there exist a point such that, for all circles drawn with this point as the center, at most one lattice point lies on any circle?
so i don't think it can be true
hmmmmmm
i have a sledgehammer argument for the existence of a point of the kind sought
pls give sledgehammer
i dont think understand what lattice is then. its it not just the set of points (x,y) with x,y being integers?
the lattice is Z^2, yes.
call a point "bad" if there exist two lattice points from which it is equidistant, and "good" otherwise.
now, for each pair of lattice points, their perpendicular bisector will consist entirely of bad points.
let B be the union of all such perpendicular bisectors
claim 1: B is exactly the set of all bad points in the plane
claim 2: B has area 0, so its complement is nonempty
not constructive tho 
I was trying to invoke the structure of R^2 as a Q-vector space so
What is B?
Is it a set?
What is its area tho?
and it's a countable union of lines
0
0, because it is a countable union of sets of area (lebesgue measure) 0
What do you mean by the area of a set
lebesgue measure
I'll look that up
π see i told you it was a sledgehammer argument
hang on
don't look up lebesgue measure
lebesgue nullsets are explainable without all the theory
Ok
a lebesgue nullset is a set which you can cover with (at most countably many) squares of arbitrarily small volume
that is, the sum of the areas of the squares can be chosen to be as small as you want
i think the set of all lines that comprise B is exactly the set of all lines with equations expressible in the form ax + by = c with a, b, c rational.
so eg R seen as a subset of R^2, you can pick squares as follows:
-enumerate the rationals somehow
-for the n-th rational, pick a square with it in the middle and side length Ι*2^{-n}
then the sum of the areas will be Ι, and it covers the whole line as the rationals are dense in R
you can choose epsilon as small as you want and this construction will work
so R is a nullset inside R^2
and the lines ann is using are just rotated versions of R
yeah ok so if you choose x and y so that {1, x, y} is algebraically independent over Q, then (x,y) will not lie on any of those lines and as such will be a good point
so... (sqrt(2), sqrt(3)) is one
π¨
yeah sorry i'm kinda... using overly advanced terminology here
would {a} x {(a,b)} = {(a,(a,b))}
yes
ok cool
wouldn't xH = 111
how do you calculate it? cause the notes didn't list down on how it works
I kept do XOR and sum
this is what i've done
I got it now, the later calculations were that, which confuses me
Hey guys. I know this is a really bad question because of how incredibly unspecific it is, but does anyone have any useful tips or techniques when it comes to proving anything? I've got my discrete math final coming up in 2 weeks and while I know all of the material and I understand it, whenever it comes to actually proving something I always fumble and make stupid mistakes. So yeah, does anyone have any tips or literally any helpful advice for constructing formal proofs.
There's not a lot that can be said in general, you use very different techniques in different subjects
e.g. graph theory/combinatorics, you're often using induction. Analysis you wanna think about yourself as playing a game against the thing you're trying to bound and you're sorta wrestling for control
For discrete, again induction is key
Counting things two different ways is usually helpful
In graph theory, drawing pictures is a double-edged sword
Remember a lot of your identities and try to apply them when possible if you can make some things look like other things
Also note the logic of the situation and in particular, when deciding to prove a statement or its contrapositive, or whether you should gun for a direct proof vs contradiction, it helps to see which set of assumptions each gives you to work with, and in particular, whether a method of proof "gives you an object to work with"
For example, if you're trying to prove a statement of the form "Every X satisfying P also satisfies Q", then contradiction is good, because then you can say "Assume there's an X which satisfies P and not Q". So now you have an object with certain assumptions, and you can explore that objects properties, and fuck something up
(These aren't hard and fast rules but like, if you're stuck on a problem, an attempt with a non-zero probability of either success or failure is better than nothing)
@compact basalt just practice coming up with proofs
Don't read or look up the proof
Prove it yourself
Or at least attempt to each time you need a proof
ok, wow that is a lot of very helpful information
thanks guys π
How many different passwords are there that contain only digits and lower-case letters such that the length is 6 and the password contains at least one digit ?
count the number of possible passwords w/o restrictions and subtract the number of passwords with no digits
yeaah
i have to put it in
terms of P(x,y) * P(x1,y1)
@stray reef
Digits = 10
Letters = 26
Total symbols = 36
Total possibilities - Only digits possibilities - Only letters possibilities
36^6 - 10^6 - 26^6
sounnd right?
why are you subtracting off the passwords that contain digits only?
the problem doesn't say your passwords should also contain at least one letter in addition to containing at least one digit
yes
ahh i read the problem wrong thank you
when doing logic networks, when i go do the output boolean expression do i simplify, factor? or anything?
for example i got
x,y,z [OR] = x + y + z
x,y' [AND] = xy'
then
x + y + z [OR] xy'
is it just
x+y+z + xy'
Seems right
In graph theory, could anyone tell me how I could prove that if Nodes v and w are connected by any path, they can also be connected by an empty path?
Imo it already answers itself but idk
An empty path is a path with no edges, right? Then if two vertices are not the same, how can they be connected with an empty path...?
Connected by an empty path ? Not at all.
Hmmm
"Prove: If the nodes v and w of a graph can be connected by an arbitrary path, they can even be connected by an empty path."
Am I understanding this wrong?

That's what I was thinking 
But it also defines "simple path" as a path with 2 different nodes
That wouldn't work, right?
It all comes down to how "empty path" is defined in your context
Well, when two nodes are connected by a simple path, then they're not the same node by definition lol
I would translate it but the 3 different words and definitions of path in German are all translated to path

What are the German words
Kantenzug, leerer Kantenzug, Weg, Pfad
Kantenzug is a series of nodes, leerer Kantenzug is (an empty) series of nodes with v0, if the edges are different in pairs the Kantenzug is called Weg, if even the nodes are different in pairs, the Kantenzug is called Pfad
It's not even agreed upon in the German mathematical community
Also these definitions vary from literature to literature
Der Begriff des Weges wird in der Literatur nicht einheitlich verwendet. Die angegebene Definition folgt im Wesentlichen den BΓΌchern vonΒ DiestelΒ undΒ LovΓ‘sz. In unmissverstΓ€ndlichen ZusammenhΓ€ngen β und vor Allem im Falle derΒ schlichten GraphenΒ β wird in der graphentheoretischen Fachliteratur ein Weg auch direkt ΓΌber die Folge derΒ benachbartenΒ Knoten angegeben, so etwa beiΒ AignerΒ undΒ KΕnig. Gelegentlich wird auch der BegriffΒ PfadΒ fΓΌr einen Weg verwendet (Steger), wohl deshalb, weil in der englischsprachigen Literatur Weg alsΒ path, teilweise aber auch alsΒ simple pathΒ bezeichnet wird.
I know
"Hahah yeah sometimes I have to check if I'm using the correct word, so please be kind if I use the wrong one"
Yeah no shit if I use the wrong one I won't pass this course
Pfad and Weg seem to mean the same though, according to Wikipedia
A Kantenzug is known as a walk in the English literature
Ahh
how do i find how many spanning trees there are for a givengraph
You could compute the minimum spanning tree and see how many other edges are available
it seems highly nontrivial to me. you can get an upper bound easily, which is (|E| choose |V|-1), but not every set of edges with cardinality |V|-1 is a tree...
you can probably do some dynamic programming algorithm where, say, you count the number of spanning forests only allowing a certain subset of edges or vertices and add them one by one, but I don't see an obvious way to implement it rn
I have these
It says the answers. Idk is confusing for me
In my notes it says. You remove some of the edges but keeping all the vertices
The first one makes sense but idk the rest
you just do it by hand since they are small
and you abuse symmetry to count fast
for number two: the middle vertex separates both parts
so a spanning tree for the whole thing is a spanning tree for top and a spanning tree for bottom
it reduces to counting the spanning trees on the square with a diagonal
which is number three
for number three: divide it by cases
case 1) you drop the diagonal. this reduces to the square, so you know it's 4
case 2) you do not drop the diagonal. then you have to drop one edge on each side, 4 ways
total 8
wuts the difference between euler path and euler circuit
wait nvm
can something both have a euler path AND circuit?
or is it strictly one or the other
I hate the names for euler path, cycle, and Hamiltonian path, cycle. Why not "edge subgraph" or "vertex subgraph" and we can use the word "closed" if it's a circut?
Also "vertex" sucks. "node" is a much better term
You mean Euler trail* and tour*
Node is shorter but vertex makes more sense when you're dealing with Platonic graphs :3c
I guess it's a more historic naming convention
Can a graph be both an euler circuit and euler path?
i don't understand this exercise because If Ben, then Alice, if Cindy then Ben and if Don then Cindy, i think if someone is not going to the lecture then the others wont either
oh i thought i could not use that
oh okay, also i have a question when i say
if ben then alice is ben --> alice, and that means if ben occurs is because alice occurred first ?
If P then Q, if P is true then Q is true
hmmm well that means i can say ben --> alice and alice ---> ben, right ?
No
Not nececessarily
that would be ben will go if and only if alice will go
You only know Alice -> Ben
the other arrow isn't given
so no
Can't make arrows that arent there
Do you know the truth table for material implication?
yes
We have A -> C, B -> C, C-> D
i think it's not clear for me what should i put first and after the arrow
Yeah its worded in a strange way
If alice goes then Cindy will go
if ben goes cindy will go
wait
no
ugh
A->B, B->C, C->D
i have a question if i write
ben --> cindy
what occurs first ? ben being true or false ?
that means that if ben goes cindy will go
What do you mean by what occurs first exactly
i don't understand what does
ben ---> cindy
means, i don't know if it means that if ben is true then cindy is true or if cindy has to be true first then ben will be true
If ben is true then cindy is true
A -> B -> C -> D
Thus, A cannot go because then all 4 will go.
Same with B: 3 will go.
So we get C and D go.
I may be wrong here but if we have C and D going, D only goes only when C goes (so C would have to go first), but doesn't C only go when B goes?
You are asking about B -> C. Write out the truth table for ->...
It is possible for B to not go and C to go.
Same with C -> D.
If instead we were given B <-> C it would be true
I assume its just in one of the CS math classes
We studied propositional logic in my Discrete Structures class(CS250)
@iron nest im using a book called transition to advanced mathematics and one of the topics is logic
anyone know how to prove this is a equivalence relation?
Do you remeber the definition of an equivalence relation?
let me look in my notes
An equivalence relation R on the set A is a relation R c A x A which is reflexive, symmetric and transitive?
ye
Yes
so you need to prove that (x,y) ~ (w,z) is reflesive, symmetric, and transitive
okay so how would I go about for that
Well, do you know what those word would require?
not really when it comes to relations like this
my professor is expecting us to read through the textbook and understanding it
his notes are vague
then did you do it
basically it follows that x^2 + y^2 = w^2 + z^2
for which
(x,y) ~ (w,z)?
yes
For reference, reflexive means $w ~ w$, symmetric means $a ~ b \implies b ~ a$, and transitive means $a ~ b$ and $b ~ c \implies a ~ c$
Darkrifts:
or in this case $(x,y) \cdot (y,x) \implies (y,x) \cdot (x,y) $
agentnola:
ok so how would you connect the relation of x^2 + y^2 = w^2 + z^2 to reflexive
so is that all for reflexive or thereβs more to it
well
well show that it holds when you apply it to itself
addittion is associative
oof
yeah iβm not handling this well as you can see π€
but how would laws of addition be applied to this if thereβs multiplication
how to tell if a graph is isomorphic
oh dear
oh dear
im scared
so iβm doing x+y = y+x ?
ok so is there anything further to show from that?
No, you have proven that the relationship is symmetric
oh wait I thought we were still proving reflexive
or are we still? i know we still had to do symmetric and transitive
okay so after you applied the laws of addition, whatβs next
uhhhh sooo anyone got a clue how to tell if two graphs r isomorphic or naw
nah
@modest zealot They have to have the same number of vertices and edges, for one
total vertices + edges uh huh
@wild harness Now i'd try transitive
@modest zealot In isomorphisms, a vertex with k connections has to map to a vertex with k connections
wait so this isnβt all for reflexive?
like do i have to prove it reflexive as well for w and z?
so just plug it in and do the same thing?
@modest zealot the simplest way to show a graph is isomorphic is to find an isomorphism, and it's nasty sometimes
o so essentially an isomorphic graph is really the exact same graph drawn differently
i mean drawn significantly differently
Not necessarily
a graph is isomorphic to itself
So, in order to show it's isomorphic, just define an isomorphism and show where it sends all points
so is that how itβs written?
like u3 -> v2
I did, u3 goes to v2
So assume that $(x,y) \cdot (y,x)$
o ok
agentnola:
and from that point, you can find where the points connected to u3 can go I think
so question, if u3 connects to u2 and u4, does u2 and u4 correspond to v5 and v3?
cuz v2 connects to v5 and v3
I'd have to look at it a bit but possibly
would it be assume w,z β’ z,w?
I'm p sure yeah
hmmmm
o wait so isomorphism is really just, u can map a vertex to another vertex in another graph, for all vertexes
and they have same edges
isomorphism means you can move the points around to get the same graph if I remember correctly
ok yea thats wat i vaguely remember too
I'd hope your textbook or whatever could provide a more formal def since my graph theory is weak
Ye
basically, it conserves connections
so you can find one by simply moving the points
gotcha
kk tyty
another question
how do you coutn the number of possible paths with given length?
or actually, how do u work with adjacency matrixes
@modest zealot no fucking clue
I don't even know what the hell an adjacency matrix is
is it like a thing that shows 1->2, 1->3 etc?
I don't know what the A4 is
clearly it's something to do with the matrix
graph theory makes me sad
$A^4$ is the matrix that represents all paths of length 4. You can get intuition just by multiplying $A$ by itself and noticing that the resulting matrices count the number of paths of length $n$ in $A^n$.
EpicGuy4227:
@modest zealot
That's what $A^4$ means yes
EpicGuy4227:
kk
That's awfully nice that it counts the number of paths, though that does make sense given the definition
Yeah I thought it was cool when I noticed it just then.
i have two questions about the exercise i posted earlier
- of the exercise doesn't say explicitly that if x doesnt go then y wont either, then i could do this ?
A => B => C => D
F F V V
- when we say an implication is true, what does it mean ? does it mean that A and B are true (in this example that both A and B goes to the talk ? even when both are false?)
||also how do i solve multiple implications like the one in the exercise ?||
Well, you know you have exactly 2 people going
and you know that if you have, say, Ben, then it's guaranteed that Cindy goes, which guarantees that Don goes
so there's only one possibility in which only 2 students go
okay so if the exercise doesnt say 'if Ben doesnt go then Cindy wont either' then i can imply that cindy will go even if ben doesnt ?
Yes
the arrows only go one way
If you have $P \to Q$ and $P$ is false, then you cannot say anything about $Q$
Darkrifts:
so if i say P is true then i have to follow strictly the direction of the arrow ?
ye
you can't go backward
there's a fancy two-sided arrow $\iff$ but you don't have that
Darkrifts:
okay but what does it mean when we say an implication is true ? or the truth table for the implication is to have a reference of what we can imply when P is true or false ?
$P\to Q$ is true if $Q$ is true when $P$
Darkrifts:
we know the arrows are true in this case, so that means the object at the end of the arrow is definitely true if the first one is
so when we have
P Q P=>Q
F F T
then Q is true ?
I can't really tell what that is too well, but i'm gonna take a guess
P is false
Q is false
$P\to Q$ is true
Q is false already
Darkrifts:
The statement $(P \to Q)$ being true only means that if P is true, then Q is definitely true
Darkrifts:
it doesn't mean Q is necessarily true, it just means that knowing P helps you to know Q
oh okay
Another thing is that $P \implies Q$ is not casual
agentnola:
So we dont know that P causes Q, all we know is that from P we may deduce Q
what do you even mean by causal?
agentnola:
what do you mean by P causes Q is the question
Im not talking about the question specifically im saying that material implication is totally independent of causality
I'm asking what you mean by causality
jeez
the point is that it has nothing to do with math
If we know a proposition P to be true, the fact that P is true will necessarily force Q to be true
that's what P -> Q means
No its not
go away
That means that from P we may logically deduce Q
'the material conditional statement p β q does not conventionally specify a causal relationship between p and q; "p is the cause and q is the consequence from it"'
why are u being so mean to me π¦
i have a quick question
in the congruence of first degree that is this:
i can already tell there will be 4 results, but how to determine exactly which are those ?
oh
but isnt the extended euclid only for gcd ?
i already figured that out but i dont see how to determine the actual 4 solutions
express the gcd and then multiply
but the gcd is already 4 which tells me there are to be 4 possible result values to this
for x
what should i multiply ? im meant to divide by the gcd to proceed
oh well, i figured out, bezout's equation did the trick, multiplied the given number for x with the number of y while they are both divided by 4
afterwards i did the result with its respective mod
i have a question i asked yesterday but i didn't understand that much, what does it mean when we say that an implication is true or false ? for example
p q p => q
T T T
what does p => q being true mean ?
does that mean that p/q is true ?
It means p is false or q is true
ehm
That's the definition
okay
but why does it mean p is false ? both can be true
there are three possibilities, right ?
for the implication to be true i mean
Do you know the mathematical definition of or?
Alright here's another equivalent definition
We return true unless p is true and q is false
In which case we return false
yeah but when i know an implication is true i can think of three possibilities, right ? so my question is more about what does it mean for an implication to be true ?
It means one of those 3 possibilities is true
If you also know that p is true you can conclude that q is true
true for my case i suppose, okay i have another question if i have multiples implications like
a => b => c => d
how do i do the truth table ?
You can plug in your values, that's often easier than a truth table
If you put parentheses in that expression so it actually means something you can find the truth table if you want
By testing all the 16 combinations and seeing what happens
Or just doing some manipulation
You can write a=> b as -a or b
So just keep doing that until you have an expression only in terms of - and or
And then it's very easy to get your truth table
hmmm i have a question about this
If you also know that p is true you can conclude that q is true
i can conclude that because there is another possibility but that would mean that my implication is false ?
p implies q iff p is false or q is true
If p isn't false
Then q must be true
This is called modus ponens
And it's very important
omg this is hard to understand for me, i have a question in the truth table if p is true there's the possibility that q is false, right ? why you can conclude if p is true then q is too ?
No, it's the opposite
If p is true q must be true as well
Hence the word implies
We say a implies b if b is true whenever a is true
b can be true when a is false however
and how could i write the case in which p is true and q is false ?
That would be false
so i only writes those cases in which the implication is true ?
What do you mean?
i mean, you just told me that if p is true and q is false then that is false, and yes but there's no way to express it ? you said we use implies when we want to define a case in which p is true and q is too or p false and q true because those two are true implications
okay i just read some examples and when we say an implication is false then does that mean we can not imply it ?
agentnola:
i don't get this example, S is the set of all triangles or S is the set of all equilateral and isosceles triangles ?
i guess it's the second one, if not P(T2) => Q(T2) would not be correct, right ?
oh okay
Then P(T) => Q(T) is always true
logic is more difficult than i thought 
It can be strange yes
Basically the only time we can say P \implies Q is false is when Q is false
when P is true and Q is false*
Yes
I can help you
First of all, you want to know what are P(X=x) for each x between 1 and 6. And the sum of each of these probabilities is equal to 1, since they are elemental probabilities.
@buoyant orbit ?
Good
Then I died from there..
Once you've done that, you know that the opposite event (that means not having a 4) is equal to 1-P(X=4).
Or, you can use the binomial law
It can be interpretated as a binomial law, since you repeat the same thing 3 times, without changing it.
No, I was thinking about it once, but I changed my mind
what problem are you doing
Hmm?
It is said "the biased die"
Oh ya that
okay so first off clearly p=0.15
$P(N\leq 1) = P(N=0) + P(N=1)$, where $N$ is the number of fours in three throws
Ann:
so... $0.85^4 + \binom41 \cdot 0.15 \cdot 0.85^3$, it seems
Ann:
hey question
when do i do P(n,r) vs C(n,r)
like what would the question ask differently
so permutations are when order matters, for example a phone number
555-5656 is unique compared to 555-6565
those are different
but for combinations, it's when order does not matter
such as a hand of cards
a royal flush in any order is a royal flush
@echo lintel
than kyou, that makes more sense
ye
count the strings that do begin with 000
and then subtract that from the total number of 8-bit strings w/o restrictions
Oh
ok makes sense ty
ok so this one is 2^8 obv because the others dont make sense
but idk why it would be 2^8
WAIIT
nvm it's 2^8 - 2
2 because 10101010 and 01010101
not sure if this is the right channel...
is it correct to say, given some x and y. (x * 3 == y*2) implies that x is in the form 2n and y is in the form 3n, for some natural number n
or this is not necessarily the case?
<@&286206848099549185>
only if x and y are intended to be naturals
yes they are
in general, n could be any number and youβd get the same relation
i need to find the complete sum of products for this
xy(x'y' + y)
i got
xy
idk if is right
nvm, i got it
Hey guys
I need direction on how to solve a recurrence
Basically I want to convert the recurrence to closed form
f(0)=0
f (1) = 1Γ1 + f(0)
f (2)= 2Γ2 + f(1)
Ok so this is actually pretty easy
I want help understanding rather than an answer
I really suck at stuff like this
Basically it's from a problem on SPOJ
What do you think f(3) is?
14
Oh right
And f(3)=3^2+f(2)
Okay, now do you know the formula for sum of squares
No, the closed form is what I'm having trouble deriving
Yea that's what I'm asking about
Basically I'm not sure how to go about solving the recurrence
Okay so the online way I know how to derive it is in terms of generating functions
But I'll show you how that works
#include <bits/stdc++.h>
typedef long long llint;
using namespace std;
llint numSquares(llint n){
if(n <= 1) return n;
return (n * n) + numSquares(n - 1);
}
int main(){
llint n = 0;
while(cin>>n){
llint result = numSquares(n);
if(n > 0) cout << result << endl;
}
return 0;
}
Basically consider some infinite polynomial whose nth coefficient is f(n)
So f(0)+ f(1)x + f(2)x^2+ ...
i've never done generating functions
hmm what is the x^2 part
We're basically using the polynomial for bookkeeping
Alright so we have f(n)=n^2+f(n-1) implies f(n)x^n = n^2 x^n + f(n-1) x^n
This gives us $\sum_{n=1}^\infty f(n)x^n = \sum_{n=1}^\infty n^2x^n + \sum_{n=1}^\infty f(n-1)x^n$
Now we pull out an x from the last sum
This gives us $\sum_{n=0}^\infty f(n)x^n = \sum_{n=0}^\infty n^2x^n + x\sum_{n=0}^\infty f(n)x^n$
Liquid:
Liquid:
This was the first one
right
Then we reindex the sum for the last term
This gives us $\sum_{n=1}^\infty f(n)x^n = \sum_{n=1}^\infty n^2x^n + x\sum_{n=0}^\infty f(n)x^n$
Liquid:
could you please clarify what you mean by re-index?
OH
And move up n by 1
That's why we pulled out the x
f(-1) isn't actually defined
So we have to start at 1
In order to have reindexing make sense
but now in the last sum we start at 0


π€