#discrete-math
1 messages · Page 97 of 1
you can add nothing and make it an equivalence relation
The third question begins "If yes...." :)
Very hard to get 3 points.
you can add all the pairs, and it would be another trivial equivalence relation
yeah, you can always turn a relation into an equivalence relation
is this from a real exam?
the notation for S is horrible
it isn't even a set
Jk I can't add
😃
was having heart attack
I study computer sciences at Karlstad University in Sweden and this is from an old exam earlier this year.
rip
I have a question about notation here. Suppose you have the sets A, B, and C. Let A x B x C be the cartesian product of the sets. Let A have elements a1, a2, etc B have b1, b2, etc and C have c1, c2, etc.
Why is it that A x B x C results in elements such as:
(a1, b1, c1) and not ((a1, b1), c1)?
@weary tiger mostly convention
Are both correct? I would think they are two different things
It's clear that there's a bijection between (A x B) x C and A x B x C in exactly the way you described
And it's a very natural bijection
So people just write the latter
It's important to note that the operation is associative
so suppose I add in D, then (A x B) x (C x D) is the same as A x B x C x D?
So that we have that (A x B) x C is naturally bijective with A x (B xC)
Yep, because of this associative property
they aren't the same thing but you'll have an easy bijection
It does seem to say at the bottom in a comment:
`Despite this result, the cartesian product of three sets is usually just written A×B×C and understood to be the set of all ordered triples.
That is, as the set of all elements like (a,(b,c)).
From Cardinality of Cartesian Product, we have that:
|A×(B×C)|=|(A×B)×C|
and so:
A×(B×C)∼(A×B)×C
where ∼ denotes set equivalence.
So it matters little whether A×B×C is defined as being A×(B×C) or (A×B)×C, and it is rare that one would even need to know.
When absolute rigour is required, the cartesian product of more than two sets can be defined using ordered n-tuples or, even more generally, by indexed sets.
`
My book also follows the convention of what you're saying @faint narwhal so I'll just use that
Everyone follows this convention
I think my confusion comes from a programming side where (a, (b, c)) is different from (a, b, c) because if I want to get b in the first one I index tuple[1][0] and in the second it is tuple[1]
but you unrolling the first one gives you the second one
Is {λ} = the empty set, where λ is the empty string?
No, that set has an element
so |{λ}| = 1
Yep
If A = B, Then A and B are partitions of each other, right?
As long as they're not the empty set
but A is a partition of B if A = B, right? I don't see in the set of rules that it can't be
For all i, Ai ⊆ A.
For all i, Ai ≠ ∅
A1, A2, ...,An are pairwise disjoint.
A = A1 ∪ A2 ∪ ... ∪ An
Which one here is violated?
Although my by my book I think that it would be okay to word it that way
it's the only partition with just one element
Since my book states something like "A, B, C" and not {A, B, C}
"A, B, C is a partition" sounds confusing
that's different though
you added the is a partition thing, not me
i'm just saying that this is fine
I'm just saying it does not say "{A, B, C} forms a partition of D"
so i think it would be corrct to say "A forms a partition of A"
ok, fair enough
Note that D'E' ≠ (DE)'
yes it would be the complement of de
so if d = 0 and e = 0 then d * e would be 0
but de complement would be 1 * 1 = 1
wouldnt it?
The complement of D OR E ≠ The complement of D OR the complement of E
If + is an OR gate here
yes + = an or gate
but when DE are stuck together like that that means multiplication and multiplication means AND
Derp lol I used the wrong word
The complement of D AND E ≠ The complement of D AND the complement of E
why do you take the complement of it after?
I'm not, you are without realizing it
this is what i am doing
i see DE with the complement sign over both of them
i plug in the original values of d and e in this case lets say o
complement of d = 1 complement of e = 1
then i do the AND
1 and 1 = true, or 1
why is the first one 0
0 and 0 = false, or 0 but then you complement it afterwards
which would be 1???
Wow, you're right, my bad
Bleh, I'm not hitting the right example lol. You have
DE + D'E'
Let D = 0, E = 1
01 + 0'1' = 0
that makes sense but thats just for 1 combination
just because one combination turns our false the whole thing is false?
No, but it's definitely not always true
ok i see where you're going
so because its definitely not always true we can't have it equal 1
opposed to if its was something like (D' + D)
Which is always 1 yeah
then it would definitely be 1
ok so let me clarify the reason behind it not being 1 is because theres a possibility that it could be false with another combination
and unless we know with certainty we can assume otherwise?
1 is a statement of "this is always true no matter what D and E are" which isn't the case
You may be able to write DE + D'E' differently to better express it
thanks
is it possible to find the minimum flow from source to sink?
or did my instructor just mess up and mean to put minimum cut?
do edges have a maximum flow passing through it? or is it a different problem entirely?
if they all have upper bounds on the flow like a normal flow problem, then the min flow would be 0?
and thus he probably just had a typo
otherwise this may be a thing https://stackoverflow.com/questions/18598399/what-algorithm-should-i-use-to-find-the-minimum-flow-on-a-digraph-where-there-ar
Guys, if A= {1,2}, B = {a,b,c}, c= {3,4} are the sets then
AxBxC = {((1,a),3), ((1,b),3)....} are the elements or
{(1,a,3), (1,b,3), (1,c,3)...} are?
by convention it is {(1,a,3), (1,b,3), (1,c,3)...}
Why not the other one?
but, (1,(a,3)) would represent it in a wrong way?
why?
oh, that's same
it's the difference between (AxB)xC and Ax(BxC)
So, this way: {((1,a),3), ((1,b),3)....} is wrong?
i wouldn't call it wrong
your way of writing it and the {(1,a,3), (1,b,3), (1,c,3)...} way are isomorphic
mathematicians have just decided to use the way of writing it with less brackets
because that is easier and less confusing in practice
My teacher crossed the whole answer and gave me a 0.
hm
i would disagree with your teacher
depending on the notation you used in the rest of the answer
or was that the whole question?
how did you define cartesian products in class
maybe you just didn't use the definition you were taught
but conceptually, you can do both
what you did was give (AxB)xC
The teacher is known for his marks deduction capabilities.
I will use the notation from now on, thank you!
did you talk with your teacher already?
Yes, he said that is a wrong way to write it.
i mean, depending on how exactly you defined cartesian products, i can understand him giving you 0 points
do you know what an isomorphism is?
Looks same
yeah, kinda
well, your way of writing is not wrong per se, imo
it's just unconventional
you should adopt the style with less brackets, but you weren't wrong
Yeah
Like I said
There's an obvious bijection between the two sets
But, it seems like your teacher has defined it in a certain way
And so you should follow that definition
His definition was very simple*
His definition specifies which one to use
His definition as it is:
Let A and B are two non-empty sets then the cartesian product of set A and B is denoted by AxB. The set of all possible ordered pairs from set A to B.
AxB = {(x,y): x belongs A, y belongs B}
ok, but that doesn't define how to deal with the cartesian product of more than 2 sets
exactly
if this is the only definition you have
one could argue that your answer is the correct one
because it would be the only way you could possibly deal with the cartesian product of 3 sets
Arguing means deduction in marks in other ways (assignments, etc)
tbh if this was the only defintion given in class
and you did this
you would get full marks
Set theory itself is harsh and a teacher like this one is cherry on top
and i would possibly deduce marks from everyone else xd
Lol, be our professor then
Arguing means deduction in marks in other ways (assignments, etc)
what
Welcome to India! ^
"don't talk back or i'll dock marks"
that's just one step away from "anyone who disagrees with 2+2=5 will be shot in class"
so you're saying that a teacher can grade however the fuck he wants and the students are to just shut up and take it?
what if the teacher sees a completely valid piece of work and decides to just give it a 0 for no reason?
You can do 2 things:
- Ask for rechecking which only means recounting all the marks given.
- Sue the college.
recounting all the marks given? so the only thing you can ask for is for the graders to check whether they've made an arithmetic fuckup in determining your grade?
Yes even for the final exams.
what if you ask for recounting and they count even less marks
what the fuck
i mean seriously what the fuck kinda fucked up education system even IS that
i mean in theory it's the same here
the students have exactly 0 say in how they're graded
The thing is if the grader itself is fucked up then what is the use of rechecking.
that's bullshit
a professor could go full "fuck you" and your last straw would be going to court
i just never met an asshole prof
can you at least ask for explanations on what you got docked points for
or is it just "you just got docked another point just for asking that"
Even after performing exceptionally good in C++, I have got 80 marks whereas those who didn't even know how to write got A+ (100)
tf
BTW, I have to go. I will try to ask him in a buttering way.
Thank you for helping!
how is india going to become a superpower by 20xx that way
tbh i can understand a prof marking that wrong
but if a student were to come to me with his answer
and the definition of a cartesian product like that
i would have to go "damn, he right"
or at least he did the most logical thing with the definition given
Hello, right now I'm getting into discrete maths, and I wanted to ask if there's a online resource/guide or follow up steps out there, and if not which books do u recommend?
Really depends on what you want to learn
https://en.wikipedia.org/wiki/Discrete_mathematics so here are 17 topics, and I'm willing to get into the IT Industry focusing blockchain, ia and quantum computers
so I don't know if to study everything, or some parts
Uh that's not what the IT industry is and I think you mean AI
But, if you want to do those things
Then you'll need to learn a lot about discrete math
There's a book called applied combinators by Trotter
That's the one I read at least
Gotcha will have a look
Can anyone suggest a good book on set theory, I am facing hard time in proofs.
A book on set theory isn't what you're looking for
Try reading How to Prove It by Velleman
I hope I understand this right. Is this true to say?
"If 5 is even, then 3 is prime." This statement is true by propositional logic, right? Because the first statement is false, so whatever comes after doesn't matter and the proposition holds.
Correct
the statement is vacuously true yes
$\text{It is in \LaTeX}\iff\text{It is false}$
EpicGuy4227:
$2+2=4$
Ann:
epic plis
I thought a good exercise would be to reason why the statement I posted is a paradox
$\text{It is in \LaTeX}\implies\text{It is false}$
EpicGuy4227:
nvm i think i wrong
lmao
How to Prove It by Velleman or goldrei classic set theory?
For someone is facing problem with the proofs^
how to prove it
Thank you!
First line, LHS has limits i=0 to N-1
and RHS has 1 to N
what is the method to change its limits?
Write out each sum, you'll see that they're the same
They might be same but, is there any technique to change the limits?
it's called an index shift, i think
Yeah
Every i in the first sum
Becomes i-1 in the second sum
That basically keeps i the same throughout
And you're subtracting i and that's why it adds 1 to each of the products
it adds 2 to only one product?^
It technically does that yes
But if you look at it, because you can switch the order of multiplication
It's the same as adding 1 to each of the products
The following is a proposition, right?
∀x Q(x) ∨ P(3)
Because the x is bound and P(3) is a truth value that can be known.
what's your definition of "proposition"
A proposition is something like "The sky is purple"
or " 7 is even" or "2 is a prime number"
where as a predicate is "x is even"
yes, it's a proposition
My problem comes with this:
Let Q(x) mean "x is a perfect square" and P(x) mean "x is prime"
Then ∀x Q(x) ∨ P(3) means what?
"For all x, x is a perfect square or 3 is prime"
Then the truth value is true? (Because 3 is prime)
oh and the domain is set of all integers
thank you
anyone online?
nope, you're alone
dang
im going over notes for a test review and idk how to "write a formula for recursively defined functions"
the first example is:
f : all Natural numbers -> all Real numbers
f(1) = 1, f(n) = nf(n - 1)
You mean write a closed/explicit formula?
Are quantifiers associative? For instance are these two the same:
-
$\exists x \forall yP(x,y)$
-
$\forall y \exists xP(x,y)$
DeathPox:
I assume they are the same
As the bounded variables are the same
My reason for this is from this question:
Let x and y be in the domain of all real numbers. Then which of the following are true?
$$
\forall x \exists y(x + y = 0)
\exists x \forall y(x + y = 0)$$
DeathPox:
Compile Error! Click the
reaction for details. (You may edit your message)
The first one is obviously true to me
they are not associative
but the second one seems false
think of continuity
(if you know the epsilon delta definition of continuity)
your example works as well though so yeah
it's probably better
I think I understand. Am I right with the first being true and the second is false?
yes
you can think of it that way
in the first case the y can depend on the specific x
in the second case the x must work for all y
ah okay, thank you
I'm trying to improve my proof writing, can someone tell me if this is a good proof statement of the following:
"Among every consecutive three integers, there is a multiple of 3."
I then write:
Take some $x, x\in Z$. There is always some $n, n\in Z$ in the range $x\le n\le x+3$ such that for some $k, k\in Z, n = 3k.$
DeathPox:
Is that too wordy?
I'm thinking it may be able to be reduced more and perhaps establish all my variables in the beginning? Any feedback is welcome!
No
This is the opposite of too wordy
You literally haven't said anything at all
You didn't explain at all your last sentence
Why should that be true
You just stated it without proving it
@weary tiger
Can a graph be a group?Cause there exists graph automorphisms and isomorphism are only possible between groups.If a graph is a group under what operation and in what set?
The set of automorphisms of a graph is a group @long mica
You could look into Cayley graphs of groups too
isomorphisms are only possible between groups? that's wrong
@faint narwhal That is exactly the assignment. We are just supposed to restate the statement but in a formal way.
Yeah I guess it's fine then
Ive been at this for hours now, I know it has to be simple.
I have to prove via induction that 5^n + 2 * 11^n is divisible by 3
Which would be like, 5^(k+1) + 2*11^(k+1) as the inductive step
Even just a hint would be very helpful
Shit I did it I think
Im confused by this thing my book calls "definition by strong induction" of functions, and I'm just looking for clarification about the definitions my books uses from this text. Its a bit hard to follow, but I've ended up just writing it out for myself. What I'm confused about is defining the domain of h, and how the ordered n-tuple (k(0),k(1).........k(n)) is an element of it.
Domain of h is defined as the set of all functions " j " , with j having a domain of {0,1,.....p} for some p. The range of j is a subset of B. Given this definition of h, I'm confused as to how (k(0),k(1).........k(n)) is an element of its domain.
I understand the idea that ur computing all the previous values of your function to find the successive value, but im confused about what the specifics here are supposed to mean.
The book goes on to prove the theorem as well , if this helps you.
I'm familiar with the concept of the cartesian product of a set being expressed as a set of families, so it may be using that notation somehow. This would make sense with how the set {0,1,....p} is refrenced, reminds me of indexed sets.
The specifics here seem weird
wairt
IVE GOT IT
I UNDERSTAND IT
i hope no one spent time reading this
I was misunderstanding the book
anyway
Did anyone else start to really struggle with induction?
I've been ok with math up till now
Kicking my ass lol a little disheartening
induction can take some time to wrap your head around
at some point it just becomes another tool in your repertoire
is it the proofs you're struggling with, or the intuition? @trim oak
Just the proofs :) the intuition mostly makes sense to me. I guess it is also showing some weakness in areas of my algebra etc. At least it's fun, so I don't mind hammering away at exercises.
well yeah the remedy for difficulty with proofs is to do a whole bunch of induction proofs
if you want i can go over some of the proofs you've written already or give you some induction problems of my own
It would be very helpful to have some more problems to solve, if you have any there! Thanks
Thanks so much.
Is it true that if I swap the ith and jth row and than the ith column with the jth column in an adjacency matrix is the same as swapping the vertices i and j?
And is there a matrix that multiplied with the adjacency matrix swaps the ith and jth column and the ith and jth row in the adjacency matrix?
swapping two rows AND two cols can't be accomplished in one matrix multiplication
however, it can be accomplished by a left-multiplication and a right-multiplication
by the matrix for row-swapping and the matrix for col-swapping respectively
What would Y \ {∅} be equal to? Would it just be equal to Y?
that depends whether Y contains ∅ as an element
If Y contained ∅ as an element, the resulting set would be Y but with ∅ missing
ok
yes
I was just looking at a statement which is supposed to be "equivalent" (probably means that an "iff" is involved) to the axiom of choice. It stated that for every set X there exists a function on P(X) \ {∅} where f(A) $ \in $ A
§Teotl:
oops formatting
the tex is atrocious yes
$P(X) \setminus \{\varnothing \}$
$\sm$
CaptainLightning:
Is this on the right path to being a correct proof
Sorry for the terrible photo I don't have a scanner :(
JY1853:
I love the probabilistic/combinatorics approach
from a cursory glance, it looks like it might be proveable via induction
Induction could probably work too yes
The simple fact that
The cardinality of the powerset is 2^n
And nCk gives you the number of subsets with k elements
@minor radish
Yeah that's what I was trying to prove it for
I got the cardinality of the powerset down the left-hand side and was trying to prove that it equals the right-hand side
Found that if you just multiply two cases for whether each element in the set is in our out for each element you get 2^n which was a much simpler approach
Thanks
To create a subset of a set with n elements, you have 2 choices for each elements : either you choose it, either you don't choose it
since you do that choice n times, you have 2^n as the cardinality for the powerset
Way better approach then what I was doing
Probably a bad habit but I generally stay away from induction because I've never been able to use it to derive something
You can only prove it if you think the condition exists in the first place
What are some applications of generating functions?
The first great application is to calculate every moments for the given law
I hope I am understanding this right. I am tasked to find all non-isomorphic trees with 4 vertices.
My thought process is that in a tree with 4 vertices there should be 3 edges which means a total degree of 6.
So I think there should be only two such trees, the first one having degrees: 1,1,1,3 and the second one having degrees: 1,1,2,2.
Is this right?
yes
Okay thanks @drifting arrow
is there a name for a dominating set whose complement is also a dominating set? I'm wondering about the complexity of determining the number of such sets for any given finite graph.
looks like "domatic partition of size 2" might be a name
is anyone more up for a combinatorics problem than i am
i want to find the number of ways to place n points in 5 distinct boxes with no more than 3 per box
0 ≤ n ≤ 15, and the boxes are allowed to be empty
maybe the best approach would be to first find how many ways you can arrange the balls into the boxes without caring about the max (that should be straightforward enough), and then find how many arrangements have at least 4 balls in one box, which you can do by first placing 4 balls into one box (5 possibilities) and then distributing the other (n-4) balls in any arrangement (same calculation as in step one)
that will then give you X(n) - 5*X(n-4) possible arrangements, where X(n) is the number of ways to arrange n balls into 5 boxes (0 if n≤0)
@stray reef sound good?
I guess verify it explicitly for n=15. if it comes out as 1 it’s probably correct
I don’t personally see a flaw in my reasoning
but then that’s a problem of mine ^^
I’m also curious whether the formula would break down for n>15 or always give 0
would be quite cool if it actually still worked
I think it should still work
$X(n)$ is, according to a quick google, $\binom{n + 14}{14} = \frac{(n + 14)!}{n! 14!}$
Sascha Baer:
hrm
that would give you 15 ways to arrange just 1 ball
doesn’t seem correct
oh, yea, I’m an idiot
it's some multiset theorem
yea yea I literally just put in the wrong values
number of multisets of cardinality 5 with elements taken from a set of cardinality n
annyoingly, it still appears wrong cause then it’d be $$\binom{n+4}{n} - 5\binom{n}{n-4}$$, which goes below zero at n=10
Sascha Baer:
so I guess there is some error in the logic, too
oh, I see the issue
wait do I
no I don’t
just compute $$\sum_{\substack{a_1, ..., a_5 \leq 3 \ a_1+...+a_5=n}} \binom{n}{a_1,a_2,a_3,a_4,a_5}$$ i guess
Lochverstärker:
Define the set A = {r, o, t, p, c} and B = {discrete, math, proof, proposition}. Define the relation R ⊆ A × B such that (letter, word) is in the relation if that letter occurs somewhere in the word.
Is my understanding of relations right here? The relation would look like:
{(r, discrete), (r,proof), (r, proposition), ..., (c, discrete)}
well, the four pairs you listed are definitely in R
not sure how appropriate the ellipsis would be
but yes
well just because I don't want to write out everything
for the purpose of my question here
So a relation xRy doesn't always mean yRx, right? So in a matrix representation of a relation, just because (1,2) is true doesn't mean (2,1) is true. Is this right?
yes x R y does not imply y R x
if it does, the relation is called symmetric
but in general that need not be the case
In matrix representation, what is the common orientation? Do you let the column represent the x or y?
So is (2,1) to represent row 2 column 1?
yes, row then column
although you would denote it something like $a_{i,j}$ for a matrix $A$ and not as a tupel
Lochverstärker:
also to add to your first question, a binary relation on two distinct sets can't even be symmetric
(unless it is empty)
simple question what does the notation f: {0,1 }^n mean (as used in f: {0,1 }^n \rightarrow {0,1 })
like what does f:{0,1}^4 look like?
how is f: {0,1 }^n defined?
@ashen grove Do you know what the cartesian product of sets is?
yeah like (x,y) x (1,2) = { (x,1), (x,2), (y,1), (y,2)}
{x,y} x {1,2} = { (x,1), (x,2), (y,1), (y,2)} you mean
yes
It's just that
so what does f: {0,1 }^4 mean? {0,1} x {0,1} x {0,1} x {0,1} ?
{0,1}^4 is {0,1} x {0,1} x {0,1} x {0,1}
at least f has this as its domain
okay, that makes much more sense now
for it to be a function it'd have to take every element in this cartesian product and map it to either a 0 or a 1 correct?
right
{0,1}^n is the set of bitstrings n bits long
f: {0,1}^n -> {0,1} is a function from said set to {0,1}
{0,1}^2 is the set of bitstrings 2- bits long whose domain is defined by the Cartesian product: {0,1} x {0,1} = { (0,0), (0,1), (1,0), (1,1) } which is a function from this set to {0,1}, so then it would be valid to define a function f:{0,1}^2 -> {0,1}, where f is defined by: f(0,0)=0, f(0,1)=1, f(1,0)=1, f(1,1)=1
making sure this is putting what you said in words to a concrete example is correct
@stray reef
sure.
k thanks!
When talking about the length of a closed walk, do you count both the starting and ending vertices when calculating length? For instance in the cycle (a,b,c,d,a), is the length of this walk 5?
is this cycle denoted by a list of edges or vertices
So if the cycle is denoted as vertices (a,b,c,d,a) vs <(a,b),(b,c),(c,d),(d,a)> then the lengths are different?
So if the question was "what is the length of walk of the cycle"
usually you count the number of edges
so in your example it's length 4
but nothing stops you from defining length differently
ah okay that makes more sense to go based on edges
if you deal with weighted graphs, it's usually the sum of the edge weights, so it makes sense yeah
Do graphs get heavy?
yes, very much so
you can assign weights to the edges
that's kinda how google maps works, it's just a big graph with vertices being locations and edges being streets
the weight of an edge is travel time or length or something else you care about
Ah so the weights can help decide what the best route is?
So google maps may be searching for a path with a lower weight?
Are relations transitive and symmetric by default? So let's say you have some relation {(1,1),(2,2)}. This relation is reflexive. Is it symmetric? well if x = y and xRy then we know xRx is true, so yRx is also true, so it is symmetric? And the case of transitivity never comes up. So do we say it is not transitive? Or is it?
I hope that makes sense
they are not transitive or symmetric by default
consider (1,2), (2,3) on the set {1,2,3}
your given relation is reflexive on {1,2} but not on for example {1,2,42}
it is however symmetric and transitive
no, it depends on the underlying set
You're saying if you added some element then it would no longer be reflexive, that I do agree with
it is also a relation on the natural numbers
but certainly not reflexive there
not every element has to be in a tupel
It's just some arbitrary relation. Let's say the relation has one element (a) and also the relation {(a,a)} is the only relation
So we have a points to itself. So the relation is reflexive
Because all elements of the relation point to itself
what
what's (a)
a is just the name for some element in the relation
That's fine, it may be. But we are not talking about the set {a,b}
you did not specify that
I said we are only looking at one element, a.
Do I need to?
Okay then let me rephrase it to make more sense, this comes from a question and is how I became confused
obviously yes
you can't test reflexivity without knowing the underlying set
for symmetry and transitivity it doesn't matter
Take a set of people. Let xMy mean that x is currently married to y. Assume there is no polygamy. Is this an equivalence relation? My confusion comes from there is no transitivity here
There is never a case where xMy and yMz, it is not possible
ok
So xMz does not come up
Okay, so it is transitive by default
because for all the cases (there are none) it's true
How can you claim it's true for all cases if there are none? Couldn't you easily say it is false for all cases (but there are none)?
notice the empty relation is transitive
ah, then that explains everything
to show it's false you need a counter example
you need one case where it is false
can you find one?
no
then it's true
assuming at least two people are married, it's not transitive
because xMy and yMx but x is not married to itself
also this, yes
(so it's also not reflexive)
you have to be careful with transitivity, because x, y, and z don't have to be distinct
so you get cases like the one above
But xMx is true
so it is reflexive and transitive
also can you then say if something is not reflexive, then it is not transitive?
what? based on the definition you gave, xMx should be false
You are always married to yourself
that's dumb lol
but fine
then yes it's transitive but you have to write down a sentence to prove it
ah okay
you can't just say "xMy and yMz never happens"
because it DOES happen, namely, if z = x
If there is no polygamy, so there is no xMy and yMz unless x=z.
Would that be sufficient?
I'd then say "and xMx is true" which verifies transitivity
people are married to themselves?
(yeah idk it's kinda a dumb thing but I guess you need it if you wanna make this an equivalence relation)
yes I belive so
also it's not true in general that transitivity implies reflexivity
you asked "also can you then say if something is not reflexive, then it is not transitive?"
and I answered
by saying "no"
But how could it be transitive but not reflexive?
will marry myself immediately for tax benefits
I mean, the "proof" that transitivity and symmetry implies reflexivity is "given x in the set, find a y such that xRy. Then by symmetry we have yRx, and by transitivity we get xRx, so it is reflexive"
but the issue with that argument is obvious: if there aren't any y's with xRy then we're toast
Please please please
I tried that multiple times and I just can't I dunno what to do anymore
Can I semd you guys an equivalence relation and a set, and can you find the quotient set?
Nvm I understood what they want lol
Weird
So I have some graph, with a start and end node and the objective is to find the shortest path. However instead of edge costs, I have vertex costs that are a function of the entry and exit edge.
So for example, in the path A->B->C, the cost for B would be F(AB,BC) - where F(a,b) gives the cost of the vertex given the entry and exit edge.
I am wondering how much I would have to adapt something like dijkstra's algorithm to work for this.
I don't know the exact terminology for some of the concepts, I will try to get some pictures to explain what I mean.
So, first up, an example graph:
I labelled the edges and nodes, with nodes A-G and edges 1-8
Now here I have the edges of the same graph, represented as a different graph (so each edge is now a node) The old graph is shown behind in faded colours.
finally, the different edge-edge paths in the dashed lines (separated in this image for clarity)
Does any of that make any sense? 😛
So an example path:
would have costs given by the following edges:
I think the solution is starting me in the face, but I don't know enough about graph theory to know for certain that it would be valid
To my knowledge, dijkstra's algorithm works on edge cost. However my original graph, does not have edge costs (and the vertex costs are not fixed per node but rather dependant on the edges used).
Now I can reframe the problem into a graph with edge costs (as in the example), however those edges don't actually exist in the graph they are just part of how I was thinking about the problem.
yep,
only if you exit B
the only cost, is from 'crossing' a node, (so entering then exiting it)
cant you just reword that as
you only charge for every edge except the first?
with identical edge costs for each node?
youll enter and exit a node for each step except the first
so I thought about doing something like that, but the edges dont have a fixed cost
have costs built into the node
instead of building costs into each edge
you can just look at a list of costless edges
n use the cost built into the node
that's sort of what I was doing - each edge is 'free' and each node has a list of costs, one for each edge pair (although rather than storing the list of edges, I am calculating them as a function of the edges)
I will show a diagram trying to explain in a better way, wont take a sec
ive seen it, but it's a little complex cause youve gotta find another way to manage how to get to the end node
yeah
So that image roughly describes the reason behind the problem - I have a graph of 'rooms' connected by 'doors', the doors are zero width, no cost, but the room cost depends on what path you take
so going from room B - C would have a different cost to room A - B
but solving the problem using the other type of graph means it doesn't actually have the start or end node
So there is a simplified version - the first one is what I have, the second one is one that I can run pathing algorithms on, but the second one has the start and end as an edge and not a node
I think I could make an algorithm that would solve this, but my main two concerns are overcomplicating it, and me possible missing something 😛 I tend to overcomplicate things and this problem seems to be an ideal candidate which is why I thought I would ask here in case there was something missing. I guess I will probably just have to do it the hard way and hope I didn't make any false assumptions.
I will give it a go and see what happens. Worse case scenario, it doesn't quite work and I have to go for a different data structure in my program
The thing you're talking about all the time is called the line graph of a graph
And I don't see why Dijkstra wouldn't work on a line graph
It will just tell you which edges to traverse in which order, as the vertices of the line graph are exactly the edges of your original graph
@pliant hemlock how is the cost for crossing a Vertex calculated exactly?
@arctic star each edge has a vector X,Y and the cost is equal to the distance between those vectors
@analog sonnet thanks for the link, line graph is a lot more less wordy than how I was phrasing it :)
So I think I can get Dijkstra to work on the line graph without much trouble, the awkward bit will be the line graph looses the nodes from the original graph which includes the start and end. My plan so far is to temporarily add the start and end nodes to the line graph, connected to the edge-nodes it corresponds with. I think it will work, but it's not as elegant as I hoped since I didn't want to modify the original graph.
I have the original graph as a list of nodes (each with a list o edges) and a list of edges (each with the connected nodes) so I can treat it as an edge graph without any trouble, but adding the start and end nodes (to the line graph form) would either require adding a temporary edge to the base graph or perhaps storing the start and end nodes in a separate list and modify the algorithm to recognise that.
My teacher is in full mood to ruin our academic career
She literally solved 1 out of 2 questions of PMI and she said that the chapter is completed.
One question was to prove 1+2+...+n = n(n+1)/2
another one was of divisibility of 576
When we asked her how 2 questions without any theory or just 2 questions are enough to complete a chapter, she said 2 questions are enough for practice.
uh
sounds like a shitty teacher
2 questions isn't enough for anything
i mean, i can give you some of my own induction problems, if you want
but that's about all i can do to help
That would be very much helpful!
Try proving more summation formulas on 1 variable
Yeah those are good candidates for induction
Like sum of squares 1+4+9+...
It is very tensing that these teachers don't teach properly and also consume our useful time. Becoming a great Mathematician looks like a dream sometimes.
any past papers you have access to?
Nope. @reef thistle
oh well
Thank you very much, ann!
I will have to learn how to write the theory in induction first.
you are fine with that?
With what?
"I will have to learn how to write the theory in induction first."
writing the theory in induction
whatever that means
Like we write "Assume that results...."
like the structure of an induction proof?
I have a question on an assignment but we haven't even touched graph theory in class hahaha
an idea on how to do this I would appreciate
Simple, try to apply a 3 coloring.
ok, as I said, we haven't even touched graph theory. therefore you telling me to apply a 3 coloring is meaningless
Read the question
well actually
next after that fails, try asking slightly more specific things
hang on
Defines a 3 coloring
well I can see how it would work, I just don't know how you would formally show it
For a slight clarification, a 3 coloring is where no adjacent vertices share a color and you have 3 different colors used
and to formally show it, you could go by contradiction
i.e. assume the two opposite points don't have different colors
then work with the other points to show they don't be workin
would you just define some general colors a, b, c to use
ofc
or r g b etc
or numbers
the colors don't matter
it's the coloring that's more important
ok ill just give it a shot. thanks
if you want help don't be afraid to ask, just make sure you read the question first of course
Try coloring opposite corners two different colors and see if problems arise
wow its almost like i said thta
Oops my b
nah it's fine
hahaha
At least we were dumb together 😍😍😍
Yeah probably
Any triangle has to have all three colors, of course
imagine having a triangle using only 2 colors
that's what i like to call a pro gamer move
well ive labelled the square in the center
Those outside triangles can each go one of two ways
ooh I might have it
Indeed, the outer triangles have to be alternating. That's a problem though
Well, how about your base case?
it's not the most readable but i'll manage
hahaha ok thank you
You'll want to clearly state your base case, and your inductive hypothesis. Notably, the inductive hypothesis is of the form "Assume P(n) is true, proof goes here, therefore P(n) implies P(n + 1)"
I don't see "Assume P(n) is true" anywhere. The inductive step isn't clear
fair enough. I will state that more clearly
I think the correct way to go is "Assume a given circle has such a point, then a circle with an extra 0, 1 also has such a point"
ooh, interesting
Hmm. This question is interesting, I'll think about it
I see
take a better picture and I'll take a look
Let's say a circle has such a point. We'll throw a new 0, 1 somewhere in there.
If the 0 comes before the 1, then there's no problem. The same point works for the new circle.
If the 1 comes before the 0, then I don't know help
that's where I came to a halt as well
i mean, you can simply rotate back a point counterclockwise
that doesn't guarantee your thing, but gives you an idea hopefully
what do you mean by that?
If your point doesn't work, you could try starting back by one step
I'm confused, can't you just start at a 0 and take the next 1 and then reduce it down to the lower case?
Yeah you almost can, but the case where you have 0 1 1 makes that slightly messier
yeah you can't just pick some random 0 1 spot
but it's clear you have to start on a 0
for a circle that satisfies the property. at every point around the boundary, the number of 0s between the start and that point must be greater than or equal to the number of 1s
you're given that it has equal 1's and 0's
that's right
I'm not sure my induction works! Maybe this isn't the right angle of attack.
the quesiton does say to do induction on the number of points on the boundary
maybe contradiction?
Assume that it doesn't have one and see if this contradicts the inductive assumption?
I've never used contradiction in induction before but can try
i mean, induction is just about showing that P(n) -> P(n+1)
(or the strong version of course)
doing contradiction here basically amounts to showing the contrapositive
so could you assume P(n+1) doesn't hold as well as that P(n) does hold and show that creates a contradiction
that not P(n+1) -> not P(n)
or, in other words, if it's impossible to do the rotational thing, then you can remove a 1 and a 0 and make it still remain impossible
hm, i'm not sure if it would be that you can remove a certain pair or if you can remove any pair tbh
i haven't quite formally worked it out myself
Yeah I got stuck on the logic lol
might just accept losing 2 marks tbh
in any case, i'm p sure it'd be an existential thing on removing, since it's a universal thing on adding
no big deal
There exists a pair you can remove to keep impossibility as a negation of adding any pair preserves possiblity
Ah you're right
Well that seems reasonable
This method is actually pretty neat, we're inducting downwards
anyhow, picking any n, it's clear that following your contrapositive down, you arrive at the base case P(1), which is clearly true, so your implications must be false, and they stem from your assumption that P(n+1) is impossible or whatever (i'm clearly not going down the formality hole here)
Because of this, you can induct on this backwards induction and continue it up
My argument is informal as hell and I leave it up to you to formalize it
this seems a lot more complicated than it should be at our stage. thanks for helping tho 
kinda like this
induct on a sequence of inductions
this is absolutely not the most efficient means by which to do this
and I highly doubt this is how it was intended to be done
but its a method
(note it's just induction on a sequence of statements Q(n) which assert that -(-P(n+1)->-P(n)) or whatever it was)
I wouldn't recommend ever pulling this diagonal induction shit on anything really, i just think it's an interesting tool and like to use it
we have done about 1 week of induction so yeah I doubt this was an intended method hahaaha
ye ye
so like, just make your P's a chain of other statements
honestly if you pull that shit the prof will probably vomit on the fuckin spot
make sure to include an atrocious diagram like mine :)
Darkrifts:
@ivory badge how do you create that using latex?
Tikz-cd to be precise
ok
@weary tiger
GOT IT
Assume the 1 gets placed before the 0. There are two cases:
-
The path is still good and nothing needs to be changed
-
The path is now bad. That is, in the original circle, there was exactly as many 0s as 1s up to this point, and adding the extra 1 made it so there is one 1 too many.
However, this implies that on the original circle, the rest of the path maintained the rule. That is, after this point, one must have seen more 0s than 1s at any point in this circle. Therefore, on the new circle, it must be the case that starting after the newly placed 1 is a valid starting point.
Me too lol. That question was bugging me since we brought it up. Thanks for the awesome brain teaser
You can also pick a starting point and graph (amount of 1s-amount of 0s)
I won't put that in my assignment b/c its not my work but I'm happy you solved it 😄
The deepest valley in that graph is a valid starting point
No induction but it works
Oh duh you're right
Now it seems very clear that this property should exist
I can't believe the inductive proof works based on that little info
Is the duh aimed at me?
Yeah, nice observation, it makes why the property should be true crystal clear
If so I’m honored
Hooray!
@weary tiger your teacher has some cool practice problems, keep them coming
given a graph, is there an algorithm to actually move the vertices around such that it has the minimum crossing number, as opposed to just calculating the theoretical minimum crossing number?
An algorithm to move around the vertices so that it has minimum crossing number must be harder than the algorithm to calculate the minimum crossing number
And by harder, I mean slower
anyone have any good combinatorics practice sets with answers? i have an upcoming exam and need some more prep material since i keep making simple mistakes
If the graph is planar, then there is an algorithm.
@reef thistle that's interesting, can you describe it?
Hm okay that's interesting
http://sci-hub.tw/https://doi.org/10.1016/0020-0190(95)00020-D might be what you are interested in
I am facing problems with proving inequality inductions
Getting to the right part or to the left part is difficult
Example?
Anyone know any papers/results on frequency+time vs quantization noise for a given sampling rate? The x and z axis having frequency and time while y axis having quantization noise. Instead of time, it can also be made as number of pulses of the wave.
What I can see is as the frequency starts nearing Nyquist frequency/2, if I try to take individual pulse points and try to reconstruct, I get like something with a very low amplitude and somewhat lesser frequency than what my input is supposed to be for the first pulse. this parameter keeps changing as the pulse number increases. At nyquist frequency/2, the pulses essentially align at 0 which makes it highly distoeted (since 0 value).
I'm a little confused.. because, looking at my intuition, it seems that for decent data integrity, sampling frequency should be 4x(max source frequency) and not just 2x. What am I missing here?
@reef thistle Not any specific example but, when I see the solution I am able to understand it.
Is there a good website/problems worksheets to practice problems? Especially things with cardinality, cantor theorems and functions?
I'm not sure what you're looking for with practice problems?
Like, questions from exams and solutions
Especially about functions, cardinality and cantor theorems (like proofs with those things etc )
What do you mean by functions?
Do you mean stuff like, show that the composition of two surjective functions is surjective?
Yeah and creating surjective/injective/both functions for certain sets
Use of cantor-schröder bernstein theorem
And proofs with these stuff
Checking the cardinality א/א_0 etc of a set, combining functions with relations etc etc
Basically everything
I look for like worksheets with solutions/websites to practice these problems etc
@faint narwhal
This is advanced math, you're not going to find worksheets with this stuff, not websites
Your best bet is to find a textbook with these topics
But I found websites to practice advanced problems with linear algebra
There has to be something with discrete math
There is nothing in my language literally there aren't any books, just 3 books that I could find and none of them helps
I think another thing is that
For these topics, you don't really get problems about them
It's just kind of foundational stuff that you understand and move on
Like cantor-schroder berstein isn't something that's really "used"
But there's an exam obviously in the end of the course
And if you wanna excel in the exam you also have to practice answering this type of questions
Btw I found something
SolutionsToFunctionsActivities.pdf
This is stuff that's taught in like #precalculus
Darn
The book
How to Prove it by Velleman
has some related chapters
chapters 4,5,7 seem relevant
Is it an online book
Thanks so muchhhhh
Hmm I want to prove between any two different real numbers there exist a rational and irrational number
I said, choose two numbers a and b, assume $a>b$, and pick a $n \in \mathbb{Z}$ such that $a>b+\frac{\sqrt{2}}{n}>b$
Itadakimasu!:
hmm
probably all you need to choose a n > 1/(a-b), then you can find a rational number with denominator n.
Sorry I don’t really follow haha
rational is just that
Choose n > 1/(a-b) by Archimedean property, then (a-b)n > 1, so an > 1+bn >= floor(bn)+1 > bn
Ohh I kinda see what you mean
(floor(bn)+1)/n is our rational
Urr okay, I just didn't know if I was allowed to use the floor function in my proof
Because the book hadn't covered it yet
hmm
How about proof by contradiction?
Suppose there are no natural numbers in between
Can we take the least natural number bigger than bn?
I'm not sure what that means urrr
There exists at least one integer bigger than bn
take the least one.
every set of integers (bounded below) has a least element, so you can take the least one
you need the bounded below to transform your set of integers into a set of naturals by subtracting the lower bound
@hasty cargo you can create a rational number smaller than the difference between the two reals using the methods described above. Pick any integer larger than 1/(a-b) and take its reciprocal for instance
Once you have this really small rational, start adding it to itself over and over until you hit a spot between a and b
There’s no way you’ll skip a and b at the same time during this process because your rational is smaller than their difference
Then you just have a multiple of a rational which is necessarily between your two reals
I just want to say I finished my Discrete Math class with an A and I have to thank this discord a lot for helping me when I have questions on homeworks/readings!
gj 
Thank you, @opal crescent
Is a graph a tree if and only if it has no cycle or it's only an if statement?
Well
you can have a forest
If a graph is a tree, then it has no cycles
but if a graph has no cycles, it is a forest
unless you have the connectedness condition
I'd like to point out that the sentence "An acyclic graph is called a forest, a connected forest is a tree" is a work of art itself
make 5 different partitions of the naturals
they ask you to divide set of natural numbers into 5 sets with empty intersection such that their sum gives N
An example with a finite set would be where the set A is {1,2,3,4,5,6,7,8,9,10}. Then any 5 partitions of A would be subsets of A where none of the subsets have any elements in common and if you take all 5 partitions and combine them you get A again
So {1,2}, {3,4}, {5,6,7}, {8}, {9,10} could be 5 partitions making up A
{{1,2}, {3,4}, {5,6,7}, {8}, {9,10}} is just a single partition of the set {1,2,3,4,5,6,7,8,9,10}
yes, exactly
no, thats a partition into 5 sets
the elements of a partition are not called partitions
they asked for 5 partitions
there are tons upon tons upon tons of possible partitions of N
if you know what a partition is, it really isn't that hard to write out five of them
Isn’t the number of partitions for a natural number in general an unsolved problem
not that kind of partition
not partition into a sum
but partition of a set into a union of disjoint sets
what is discrete math
the mathematical study of discrete structures
Is that the category graphs falls into?
yes
ohh, from googling it it covers things like logic as well. Looks like an interesting branch of maths 😄
ah, fair enough
Can I used Dijkstra's algorithm in the calculation of betweenness centrality? From what I understand, betweenness centrality is the measure of the number of shortest paths that pass through a given node.
From what I understand, Dijkstra's can find a shortest path between a given node and every other node. Then, I could run it for every single node in a graph to get a shortest path for every single node pair in the graph. However, I would need to be able to total up the number of times a path goes through a node. Additionally I would need to be able to find multiple same length paths between a node pair rather than just the best one. These two issues (especially the latter one) would seem to require a bit of modification to the algorithm or something, but am not sure of the best approach.
For the first issue, I could just follow every single of the shortest paths adding one to each node it goes through, which would probably work although might not be the most efficient approach. However for the second one I would need to modify Dijkstra's algorithm to not just calculate the best path, but to calculate all best paths (if there are multiple 'best' paths with the same length).
@pliant hemlock this is more cs than discrete math, but for finding the shortest path between all pairs there are better solutions than running Dijkstra n times. check Floyd-Warshall or Johnson's algo
@peak crag Thanks, I figured it would probably be the case that it wouldn't be an optimal solution, thanks for the pointers 🙂
found this problem online and was unsure of why this would be the answer
i was under the assumption the answer would be 2^n
since the maximum number of parts the plane can be divided into is equal to the summation of choosing different numbers of circles from 0 <= i <= n since each part would be an intersection between those circles
and then i simplified (n choose 0) + (n choose 1) + ... + (n choose n) to 2^n
Are you sure you can draw circles such that each different subset of circles you pick gives you a new region?
In other words,
Are you sure you can draw the circles in the plane so that they form a Venn diagram
either im interpreting the question wrong or it doesnt say otherwise
as long as they can intersect they should be able to form a venn diagram
Do it with four circles then
Hehe
Take a picture
And for example 11, isn't greatest integer function not one-one
This book is standard book of our college ;_;
What's the title
Wtf
The function f:A->B is onto if for every element in f(A), there is an element a in A such that f(a) is that element
That is what the book is suggesting

I don’t even know anymore hmmmmm
Thank you for helping!
Which book would be better to learn functions?
Example 10, part (a)
How did they prove it to be onto?
And isn't the one-one part incorrect because the question is x^3-3x
,rotate -90
Thank you mat! Sorry for that.
So, either it should be strictly increasing or decreasing?
Is this the correct way to prove one-one
But f is not one-one
;_;
Onto you can see looking at the limits as x approaches +inf and -inf if you already know limits
Oh wait, f' is actually to be corrected first
Fuck
It's 3x^2-1
