#discrete-math
1 messages · Page 203 of 1
spanning trees have to connect all vertices by definition 
The actual question is "How many spanning trees that touch all the given vertices can be made"
That's dumb
bruh
Read username before bruhing.
can perfect squares be divisible by 3 but not by 9?
Nope.
Okay that 1 short message made me understand everything. Thank You Ann!
Also.
"Prove that if a number has an odd number of divisors then it is a perfect square.".
Can you explain this solution?
the divisors pair up
if the square root is present among them it is the only one unpaired
Huh?
Yeah.
the divisors arrange themselves into pairs
"coincide" means "be the same"
Yeah.
the only time a divisor gets paired with itself is when it is sqrt(n)
Oh WOOOW.
This is so cool I did think the proof would be like this at all!
Thank You Ann!
is there a practical scenario where sup(AB) is actually less than (sup(A))(sup(B))
I think sup(AB) is guaranteed to be equal to (sup(A))(sup(B))
since the real numbers is totally ordered, the chains are too meaning all the chains have a maximal and therefore sup(chain) = maximal
say sup(chain1) = 2 and sup(chain2) = 5 then sup(chain1chain2) = 10
set builder used for the “multiplication” of two sets
that's what the last line is trying to say
it's equality for positive numbers
🤣 happens to everybody
hi anyone has good tutorial video for this chapter ? I have trouble with reading, I need videos. thanks!
@quaint pulsar maybe this can be good https://www.youtube.com/watch?v=WW-NPtIzHwk they have more chapters in the series
Digital Electronics: Introduction to Boolean Algebra (Part 1)
Topics discussed:
- The definition of Boolean algebra.
- Use of Boolean algebra.
- Complement rule of Boolean algebra.
- AND rule of Boolean algebra.
- OR rule of Boolean algebra.
Follow Neso Academy on Instagram: @nesoacademy(https://bit.ly/2XP63OE)
Follow me on Instagram: @suj...
Any clue?
How many undirected graphs on vertices {1,2,...,2n}, the degree of each vertex is 1, and for every 1≤i≤n: {i, (n+i)} isn't an edge
Iol
n is the variable that goes to infty, and r is a constant -- right?
Yeah
(As an aside, it would probably fit better in #calculus, by the way -- limits are kind of the antithesis to "discrete".)
Ah sorry, I didn't know where to post it. I'll move it there
Does anyone know, how this problem/solution works. Find a number that is 57 times smaller when the first digit is removed.
Here is the formula/solution that was used. The answer is 7125 which makes sense.
But what if I were to try for another example where I want the number that becomes 4 times smaller when the first digit is removed? Is this a scenario that has no solution?
Yes -- let the small number be a, then we're looking for a situation where 4a = a + b·10^n for some n and some b in {1,2,3,...,9}. But that means that 3a = b·10^n, so b is one of 3, 6, 9 and in each of those cases a ends up being at least 10^n, so it doesn't produce a solution.
Meaning no power of 10 is divisible by 3?
Right, due to the fundamental theorem of arithmetic.
@coral parcel Thank you so much!
How to generate all possible stable matchings? One way for producing a stable matching is mating ritual, another is mating ritual but the girls are serenaders. So these are two stable matchings. Are there any way to find other stable matchings?
I don't think there are any other well known algorithms (better than generating all matchings and filtering for stability).
If you just want a few other examples I think you you could start with a random match and iterate possible breakages until you reach a stable point, but that's hardly a way to generate all of them. (And I can't even immediately come up with an argument that it will terminate).
Does anyone know when we use Generating Function or Exponential Generating Functions to find a_{n} in recursion formula? My lecture don't mention that 😦
@robust goblet there is no one-size-fits-all rule
it's just whichever one works in your case
can someone please tell me what's wrong with this answer and what's the correct answer?
missing 7:3 and 17:13
great! Thank you 🙂
Hey everyone, I was wondering if anyone could give me an idea of how hard these semesters will be based on your own experience.
Four friends (Erin, Jagmeet, Yves-François, and Annamie) are planning a trip to Ottawa, and they need to assign tasks (booking flights, booking hotel rooms, and making an itinerary) to three people. Erin cannot be trusted to make an itinerary; also, either Jagmeet or Annamie must book hotel rooms. How many ways can they assign tasks?
I think its just (number of ways to book room) * (num ways to book itnerary) * (num ways to book flights) = 222?
Assuming that your answer is 2 * 2 * 2, yes
(It sounds like a quite inefficient way to plan travel. You'll need an itinerary before you know for sure where and when to book flights and rooms, and the availability of affordable bookings may in turn influence which itinerary you pick).
Yeah sorry I should’ve checked
I assume you're not responsible for the bizarreness of the problem statement.
Nah it’s some exercise from the end of this section I have to read for this week
Oh this was supposed to be for opengangs lol
and a variable name consisted of a single letter followed by at most five characters (letters or digits)
how many names are there consisting of just one letter?
and one letter followed by one character? one letter followed by two characters? etc.
a character can be letter or digit right?
so fo first first letter is 26
for the second letter it can be one out of 36 choices
26 letters and 10 digits
you're not answering my question here
but this is true and has even been explicitly stated in the text
what is 26 the answer to?
how many names can be made of 1 letter
okay
and how many names are there that consist of one letter followed by one character?
and how many names are there that consist of one letter followed by two characters?
yeah I see the pattern
my problem was
I was looking at it
as if the letetrs were independant
so we would have 36 choices for each
slot basically
thank you that cleared it though
Thank you, this was really helpful. I only need a few examples, will try to find them in my free time.
Hi, Im trying to understand Principle of Inclusion Exlusion and as an example will take this exercise:
A certain class has 20 students, and meets on Mondays and Wednesdays in a classroom
with exactly 20 seats. In a certain week, everyone in the class attends both days. On
both days, the students choose their seats completely randomly (with one student per
seat). Find the probability that no one sits in the same seat on both days of that week.
Am I correctly understand that we need to take here Intersection of sets that students sits on the different seats?
hi all was wondering if someone can explain something to me about cartesian products. a book i'm reading confuses me, because it asserts you can construct a cartesian product RxN or NxR. but i thought the meaning of a cartesian product is a set containing all ordered pairs of the form (lets say) (N, R). So one has to produce a set of all sets that match every natural number to every real number. but isn't the point of cantor's diagonalization argument that one cant produce a list like this, because there is no one to one correspondence between N and R (R is uncountable)?
or is it that for every natural number there are just 'uncountably infinitely more' elements per natural number than naturals vis-a-vis reals
you're overthinking it
have you ever played cards?
a deck of cards is kind of like a cartesian product between the set of suits {spades, hearts, clubs, diamonds} and ranks {A, K, Q, J, 10, ..., 2}
Might be worth looking at simple examples of functions, bijections and cartesian products to work at the differences between those three things.
for those cases its pretty clear
For example what is {1,2}x{3,4}?
Can you give a bijection from {1,2} to {3,4}?
Etc
the finite cases are easy to grasp
My point is mainly that the cartesian product of two sets and a bijection between two sets are two different concepts.
ah I see
So like, if you take NxR, it's not even a function, let alone a bijection
in (most) undergrad classes there is no difference
a logician might use => to talk in the metalanguage and -> to talk in the formal language
I see thanks
isnt this infinite sum supposed to equal ((n^2)(n+1)^2)/4 ?
i know how to show it with induction if it is equal to that but the way they have it written here is throwing me off.
I believe the statement is also true
how to i go from the induction hypothesis to that then?
First off, it is obvious for $n=1$.
Notice that:
[ (1+\cdots+n+n+1)^2 = \left((1+\cdots+n)+n+1\right)^2 = ]
[ (1+\cdots+n)^2+2(1+\cdots+n)\cdot(n+1)+(n+1)^2 = ]
[ 1^3+\cdots+n^3+2\cdot\frac{n}{2}(n+1)^2+(n+1)^2= ]
[ 1^3+\cdots+n^3+(n+1)^2(n+1)= ]
[ 1^3+\cdots+n^3+(n+1)^3 ]
Slurp
Hey, so I'm currently doing homework related to the Pigeonhole Principle and I don't know how to solve the second question. Does anybody have any ideas?
H(N-1)+1
idk why I just can't understand what it's asking
What are H and N if that gives 169?
So H = 26 and N = 7 in the first question, giving us 7(29 - 1) + 1 = 176
In the second question, would H = 29 and N = 7?
Yes, except that it's asking for "the largest number the property doesn't hold for" rather than "the smallest number the property does hold for".
so that would mean N = 1?
Not "the largest number of colors in the rainbow" but "the largest number of voting members in the club".
so are we finding N?
I'm sort of getting the impression that you don't really understand what the first question is asking for either? (But just made a lucky guess at which formula to plug some numbers from the problem into so the website would accept the answer)?
I understood the first question was asking for P but I don't know what to do with the second question
Try to state your understanding using something more wordy than simply the name of a variable in your formulas.
What I mean was it was asking for the total number of people, which would be P
That's not actually what it's asking for. I can see it's a bit sloppily worded -- but when the problem says
how many people can you guarantee will be in the club?
it really means
at least how many people does the club need to have for my [the fictional narrator of the question] claim above to be true?
ah ok
So there are some club sizes where one can guarantee the winning color has at least 26 votes, and other club sizes where one cannot guarantee that.
You were asked to find the smallest possible club where the guarantee can be given.
In the second question you're asked to find the largest possible club where a similar guarantee (but with different numbers) cannot be given.
oh
is b asking me to show it with induction? because the wording of part c makes me think i am intended to show b without induction.
or do i just manipulate it using algebra
It pretty expressly asks you to use mathematical induction.
Whoops, no, I can't read.
C asks you to use induction.
for part c lol
B doesn't care about your method.
I bet the problem setter decided not to have an (a) just to confuse me.
I think this goes here
Could someone show the intermediate steps for this index change
I haven't been able to figure it out
j = i - n^2 + 4 which means that i + 4 becomes n^2 + j and j ranges over from 1 to n.
You can verify that this is right because, if i = n^2 - 3, then j = (n^2 - 3) - n^2 + 4 = 1 and, if i = n^2 + n - 4, then j = (n^2 + n - 4) - n^2 + 4 = n
Question about topological ordering (specifically total order) from my textbook, a picture is included. We have a diagram of the relation for ‘divides’ in set A. For clarity call the divides relation R. A has partial ordering with respect to R, as every element is reflexive, antisymmetric and transitive. (2 divides 6, 6 divides 18, 2 thus divides 18). My understanding of total order relations, is that R is not total order, as 2 and 3 do not divide. So, set A is a partially ordered set. [i believe this is correct so far, but feel free to correct if wrong]. My confusion arises when I ask myself what the book means with the term “total order”. I don’t understand if this is a set, a relation, or some other object. My money is on relation with the special caveat that all elements further right from some element in the total order, if the original relation held for those elements the total order also holds. So is it just a specific listing of the elements in A?
small terminology quibble (which might actually be relevant for your confusion): We don't say "A has partial ordering with respect to R", we say "R is a partial ordering of A".
You're correct that A is a partially ordered set, but you should beware that calling R a "partial order" doesn't require us to find a set of elements that don't compare -- "partial order" just means a reflexive antisymmetric transitive relation and does not make any claim about whether or not it is total. So a "total order" is a special kind of "partial order" -- and for example ≤ is _both a total order and a partial order.
(This does sound daft if you go by the everyday meaning of "partial", but mathematics has a quite firm tradition for using the word in this way, which we just have to deal with).
A "total order" is a relation that is reflexive, antisymmetric, transitive and total (that is, for every pair of x and y in the domain either x R y or y R x holds).
A "totally ordered set" is a set together with a total order on it.
Okay so when you say "a totally order set is a set together with a total order on it", How does this appear? [If R is a total order of A, then A is a totally ordered set?] For general relations between two different sets, say X and Y, I understand the relation is a subset of the cartesian product between the two, [my understanding is that the rules put in place to define the relation create the tuples in the relation] and R appears as a set of tuples for the elements that follow the rules of the relation. For a set together with a total order on it, sets themselves are the same irrespective of the order of the elements, so a total order is not a rearrangement of the elements themselves, but instead a relation that defines the relationship between each element using transitivity? (As an example of what I mean, a subset of the example in the text might be the graph of 2,3,6 and 4. A total order for that subset could be 3 < 2 < 4 < 6. Is this the same as R = {(2,4),(2,6),(3,6)}?)
For your point about partial orders vs total order, this is a similar argument to all thumbs are fingers, or all functions are relations, but not all relations are functions?
[I rewrote this a few times with certain sentences boxed as what I believe is a reasonable line of thinking, but they could be wrong, and just serve to separate my thoughts]
If R is a total order on A, then formally we should say "(A,R) is a totally ordered set", but when it is clear from the context which R we have in mind it is traditional to get away with just saying "A is a totally ordered set" instead.
I think your second question is, why do we say the "total order" means the comparison relation rather than just the sequence of elements? This is because sometimes there are too many elements to list in a sequence. For example, ≤ is a total order on the set of real numbers -- there are too many real numbers to arrange them all in a sequence in a meaningful way, but we can still speak of the relation that compares reals as a definite mathematical object.
I think there's actually a bit of controversy in English about whether a thumb by itself can also be called a "finger" (despite everybody agreeing that most humans have ten fingers, in plural). Perhaps that makes it a particularly good analogy for the situation here. 😛
A total order for that subset could be 3 < 2 < 4 < 6. Is this the same as R = {(2,4),(2,6),(3,6)}?
No, because {(2,4),(2,6),(3,6)} does not tell us that 3 comes before 2.
I guess my confusion boils down to what the last section of the textbook is actually telling me. A total order sequence is found, and the relation between elements in that sequence is the total ordering relation?
So then you would need an additional element {(2,4),(2,6),(3,6), (3,2) }
How does the object (A,R) appear? Is it just A with the knowledge that A is a totally ordered set? (sorry that'll be my last question for the night I promise lol)
The textbook is being a bit coy about what the total order it constructs really is. By its own definition it should have produced an transitive (etc) relation, but it's actually just writing a sequence.
So you'll need to understand that 3 < 2 < 4 < 6 should actually refer to the set {(3,2), (3,4), (3,6), (2,4), (2,6), (4,6), (3,3), (2,2), (4,4), (6,6)}.
You can perhaps view "3 < 2 < 4 < 6" as a horizontally written Hasse diagram for the set of pairs.
When the sets are finite, you can always write a total order like that, and as you see it's considerably shorter. Just be aware that it's not what the formal definitions say we "should" be talking about.
How does the object (A,R) appear? Is it just A with the knowledge that A is a totally ordered set?
(A,R) is an "ordered pair" -- which is to say, some kind of mathematical "thing" that knows it has a first element that is the set A and a second element that is the relation R, and which we can ask what its first and second elements are.
You will almost never see the ordered pair written out explicitly for purposes like this -- and perhaps I caused more confusion than understanding by doing so. Usually we use words instead to specify the two components separately and that we're thinking of the combination of them as an ordered set. Something like "A with the knowledge that we're using R to order it" might be a better representation.
Okay that makes sense I think. I'll read through the section again and see if my understanding of it improves. Thank you very much for all the help
Is this the right place for help with the master thm?
I think the answers here are (d) and (c) but I am struggling to find similar examples
f(n) is polynomial since 8^(log_2(n)) = 2^(3log_2(n)) = n^3 so pretty sure the Master Theorem is okay for Q7
Okay and for Q8, is n^3sin(n) not a polynomial ?
I thought sin(n) can just be counted as an upperbound of 1
I think there's a condition that is violated because of sin(n)
I think f(n) needs to be monotone
(at least on n > 0)
ok thanks a lot
-
If you have two of the same colour for each of the sweets, then the next one you pick guarantees that one of them will have three sweets.
-
Hint: If x - y is a multiple of 7, then x = y (mod 7). How many equivalence classes do you have in modulo 7?
how can I use the actual formula for the principle?
10n + 1?
but its not intuitive...
Well, the first part of the problem in Q1 is to figure out how many "pigeons" there are, and the second is to prove it using the ph principle
Suppose you have 10 sweets. Can you guarantee that you have three of the same colour?
ah I see
that makes sense
what about question 2?
You only have 7 possible remainders when you take everything modulo 7 (0, 1, 2, 3, 4, 5, 6). So, among 8 integers, two must land in the same remainder class. This is precisely what it means for x - y to be divisible by 7.
Is there no general chat?
(sorry for off-topic)
there's #discussion, #math-discussion if you want to discuss math, and #chill
I can't see those channels 
can you see them if you click on those links
No idea how I got that...
,iam studying or something like that probably
I just joined the server about 30 seconds ago 
I don't remember the actual command
all good 
pretty basic question but im new to the notation and not sure if this is valid
woudln't you use the subset notation
the text here is kinda hard to read
is that valid way
hang on
A = { x ∈ Z: x is an integer multiple of 3 }
B = { x ∈ Z: x is a perfect square }
C = { 4, 5, 9, 10 }
D = { 2, 4, 11, 14 }
E = { 3, 6, 9 }
F = { 4, 6, 16 }
(g)
E ∈ A
right
E ∈ A is valid notation - sets can, in principle, be members of other sets - but in your case E ∈ A is of course false
...yes
okay
I see
haven't got to set of sets which looks like it is the next section but makes sense.
Is the following notation proper to express the set I'm interested in
C = { x ∈ Z : P(x)= 2x-5, 1<=x<=7}
The set should be
{-3,-1,1,3,5,7,9}
Idk about the P(x) part after the :
I just don't know if I have communicated what I want correctly through "set builder notation"
I feel like maybe I need to say something about the domain of P(x). It seems wrong
wdym by P(x), and how are -3,-1,9 in the set if 1<=x<=7?
That was my issue. My idea on the right was basically that is the domain of P(x)
But what is P(x)?
2x-5
Idk how I wrote it is valid
${2x-5\mid 1\leq x\leq 7\in\bN}$?
Slurp
The left side of the set builder notation is what is actually in the set, the right side is the condition
So what you wrote here doesnt make much sense, because P(x)=... doesnt affect what is in the set
I see.
Didn't we see that problem posted fairly recently?
Do you know how to count spanning trees in a complete graph?
n^(n-2)
And if you have two graphs joined at just a single vertex, then a spanning tree for the whole thing is made up of a spanning tree for one side of the graph and a spanning tree in the other side in the graph.
i dont understand
Can you be more specific about what it is you don't understand?
Why?
Why?
Spanning tree of the first half plus the spanning trees of the second half?
5^3
+5^3
But if you just choose one of the halves and pick a spanning tree in just that half, you're not going to reach the vertices in the other half.
yes
You are? How?
I explained that.
Is this meant to be simple?
Yes.
If I were asking you how many two-digit numbers exist, would you answer "twenty, namely ten for the first digit plus ten for the second digit"?
Im not following
hold on
nah
i dont get it
One section of the graph has 5^3 spanning trees, yes?
Right.
so does the other
Right.
Where do i got from there?
Do you agree with the claim I made here?
Do you also agree that a number with two digits is made up of a digit that goes on the left and a digit that goes on the right?
yes
So how many two-digit numbers are there? 10+10?
Are you sure there are only twenty different two-digit numbers possible?
So you get it now?
yes, because if you fix a spanning tree for the first section there are still 5^3 different combinations for the second section
Exactly.
Graph theory is hard
Hello, I am having trouble rewriting statements by filling in the blanks.
Sorry for the sideways photo
,rotate
a) x^2 = -2
b) a real number r such that ____
Not too sure about the second one tho
I got the answer but thanks that was what I got as well!
And wouldn’t it be x^3 since it’s cubed?
$x= - \sqrt{2}^3$ would work as $-( \sqrt{2}^3)^3=-2$
Fredrikpiano
@distant bobcat did you try to write the cube root of 2
cause that'd be $\sqrt[3]{2}$, not $\sqrt{2}^3$
Ann
Fredrikpiano
could write this also
check the definition
is every element of the empty set in P(X)?
well it is empty so i guess so?
asking the other way around
can you give an element that is in the empty set but not in P(X)?
no?
there is no element in the empty set to give
in the case of the powerset, yes
okay
Anyone know how to do part b or c
The easiest way for b) is probably to write down an Hamiltonian path (try to first go through the vertices of the type (0,y), then trough them of type (1,y), them (2,y) etc). For c), you need to write down appropriate Graph automorphisms (here you can use the fact, that the graph definition is already symmetric in the numbers 0,1,2,3)
it does in the first step
they want to go from 0,0 to 0,1 to 0,2 to 0,3, then 1,3 to 2,3 to 3,3
but just draw the graph there are many ways
for (a) also draw it, it you cant see it
you can just write down every neighbour for a given vertex and count how many there are
Is Eulers theorem called a generalization of Fermat's little thm. because we do not require n to be prime in $\alpha^{\phi(n)} \equiv 1 modn$ where as we require n to be prime in Fermat's little thm. ?
Fredrikpiano
yes
And re replaces p-1 with the phi function for Eulers thm. Im wondering about the intuition behind this. Perhaps I will get a better feel after going through the proofs for both thm's.
It's because Euler's theorem is straight-up a generalization of Fermat's little theorem. If you put $n=p$ in Euler's theorem for some prime $p$, then since $\phi(p)$ counts the numbers less than $p$ that are relatively prime to $p$, you get $\phi(p) = p-1$ (remember $p$ is prime, all numbers less than $p$ are relatively prime to it). So Euler's theorem reduces to $\alpha^{p-1}\equiv 1\pmod p$.
TimeTravellerOne
That makes a lot of sense. Thanks
Yes.
thanks
would the answer to this be {x∈ Z+: x is a positive integer multiple of 120} solved
Why is it “multiple of 120”?
LCM of 1,2,3,4,5 = 60
So it should be “multiple of 60” instead
Yes, I got help in one of the channels but guess I never changed my answer here
ye mb
Hello, i have a question on logic equivalences - discrete mathematics. The problem is to prove (p then r) or (q then r) = p then (q then r). On trying to use the laws there was a similar problem that one of the steps of the solution was p → (q ∨ r) ≡ ¬p ∨ (q ∧ r). Is it using conditional-disjunction equivalence? If so, why did the OR change to AND. Is it an error?
I’m writing quizzes for an algorithms class next semester. I’m having trouble coming up with multiple choice questions about FFT. Anyone out there have some good questions?
Looks like a typo to me since P->Q is equivalent to ~P v Q. You can always double check with a truth table.
It depends. Some people include 0 as part of the natural numbers and some people exclude it
Seems like your professor includes 0 as part of the natural number set
Lets assume 0 is excluded. Under this scenario, would the question be considered wrongly framed?
Everywhere i searched they didn't include 0 in natural numbers weird lol
Ideally your professor should make it clear which convention of the natural numbers they refer to
I just read this
Lol we all know our education system in the whole world is broken and the people who are teaching should not be teaching most of them :p
I’d prefer to use positive integers or non-negative integers to specify which set we’re talking about
But meh, as long as the professor makes it clear what they mean by the natural numbers
How would i solve that question then lol
n = 0 , f(0) = 4
n = 1, f(1) = 16
n = 2, f(2) = 36
n = 3, f(3) = 64
Recursive case means to denote the next value of function using the previous term as function right
You’re adding all previous terms up to and including (2(n + 1))^2
Yes
So it’ll be something like f(n) = f(n - 1) + blah or something like that
Hmm i am so tired at this point lol i cant even think haha
Are you a graduate student?
Did you figure it out lol?
- f(n) is the sum of all previous values up to and including (2(n + 1))^2
- f(n) being recursive means you use the previous results to define f evaluated at n
So play around with a few values of n and it’ll become a bit clearer
I understand what you mean by 2) but unfortunately didn't understand what 1) means.
[ f(n) = \sum_{i = 0}^n (2(i + 1))^2 ]
opengangs
So for example, f(1) would be 4 + 16 since you compute (2(0 + 1))^2 + (2(1 + 1))^2 = 4 + 16
f(2) would be (2(0 + 1))^2 + (2(1 + 1))^2 + (2(2 + 1))^2
And so on
I actually was so confused, thank you for this, i initially thought that f(1) was just 16 and f(2) was just 36
Does induction have to do with findin recursive
No need for induction; though you might want to prove that your recursion is correct by induction
maybe later the proof another day
Think about what the difference between f(1) and f(2) is. Then the difference between f(2) and f(3) is
See if you can spot a general pattern for f(n) and f(n - 1)
You might want to write it in (2(i + 1))^2 form if that’s easier
Yup
\begin{align*}
f(n) &= \sum_{i = 0}^n (2(i + 1))^2 \
&= \sum_{i = 0}^{n - 1} (2(i + 1))^2 + (2(n + 1))^2 \
&= f(n - 1) + (2(n + 1))^2
\end{align*}
opengangs
You can split the sum up by discarding the n term and then looking at the (n + 1)th term separately
It’s the same as saying (2(0 + 1))^2 + … + (2(n - 1 + 1)^2 + (2(n + 1))^2
I am really tired i think when i come back to read it fresh i will underrstand it thank you very much
You'rer a samrt guy, are you math major
Yeah math and computer science
Forr this i got [C-(A union B)] union [ (A intersection C) - B) union [ (A interrsection B) - C] union (A intersection B intersection C)
Its the last one lol, i think i got it right, but it might have a more compact final answer more simplified
That looks right from a glance
Do you accept “(C - B) union (A intersect B)”?
If A = B would the result just be the empty set?
for the Difference and Symmetric difference operation
my book has these as defintions
and that is about it
so im not sure what the result would be
Q: Let A and B be equal sets, what is A-B and what is A ⊕ B ? (This is my question I am not sure on)
Ya, A-B is an empty set if A = B
You can see this by substituting A for B in the set notation
okay Thanks 🙂
Yeah I see now
technically... should be {x in A : x not in A}
Both are valid ways to write it.
which is the final answe lol
these past few messages I believe were not relevant to what you posted btw
I asked a question after
so sorry if there was some confusion
how many triples (A, B, C) of subsets of {1,2,...,n} exist such that A ∩ B ∩ C = ∅; A ∩ B ≠ ∅; A ∩ C ≠ ∅?
is this the answer?
$\binom{n}{6} - 2\binom{n}{5} + \binom{n}{4}$
Mofumofu
nevermind
it's to the power of, not choose, and i forgot you can put something outside the set as well
fun question tho
can someone please how to get x
Wdym?
@weary tiger What's your answer
Shuri2060
im not confident D:
7^n - 2*6^n + 5^n i think it was
oh it is?
😅
do you wanna try a different problem?
i tried a bunch i couldnt lol
sure
I've been getting better at counting recently 👀
Emerald walks through the entire integer coordinate points of the plane. If, at a given moment, she is at point (a, b), with one step she can go to one of the following points: (a+1, b), (a-1, b), (a, b+1) or (a, b-1). In how many ways can Emerald get out of (0, 0) and walk 2008 steps and ending in (0, 0)?
btw idk the answer so you have to hope you get it right
just to confirm, this is the place to ask about fast-growing-hierarchy questions, correct?
because i have no idea where to go for that type of question
isn’t fgh something to do with set theory
i vaguely remember what it is
only thing i remember is big numbers
all i know it for is that it make big number very fast
no clue what set theory is, i assume i learn it next quarter (if not then, then never cause that's my last math class)
I'd ask my question directly but I need to convert my program into mathematics
@fossil laurel you can ask in #math-discussion where the question should go
kk
since you’ll get a response quicker there
makes sense
I reckon its ||(2008c1004)^2||
i hope you're right. i'll tell you in dms sometime if you are x)
How do we find combinations with multisets such as in the example where we have 1 apple, 2 bananas, 4 grapes, and 8 cherries and we want to choose 4 fruits from them - how many ways are there to choose fruits?
like I'm pretty sure this is stars and bars with restriction but is there a somewhat closed form/not casework method to solve these type of problems?
i found i 5
forall a:
a = a
=> a < a or a = a
=> a leq a
?
its that simple isnt it?
utilise definition
forall a, b, c:
a leq b and b leq c
=> (a < b or a = b) and (b < c or b = c)
=> ((a < b or a = b) and b < c) or ((a < b or a = b) and b = c)
=> ((a < b and b < c) or (a = b and b < c)) or ((a < b and b = c) or (a = b and b = c))
=> (a < c or a < c) or (a < c or a = c)
=> a < c or a = c
=> a leq c
if i didnt expand wrong
what definition
You gave me this to use
x <= y <=> x < y or x = y
the 4 written aren't properties but axioms
in wikipedia
The 2 defns likely turn out to be equivalent
no, the 2 in stack
the answer shows they are
????
The question in stack literally asks if both are the same
and the answer shows they are equivalent
what?
Check the answer
It proves equivalence
both definitions imply the axioms of the other
forall a, b:
a leq b and b leq a
=> a leq a (by 2)
=> a < a or a = a
=> a = a
maybe inclusion exclusion
count for 4 4 4 4 fruits, then subtract
xor
^ write out xor by its defn with not, and, or if necessary
The relations are not the same.
However, if < (rubin) is an order, then <= (wiki) is an order
and vice versa
Think carefully
< is an order iff leq is an order
NOT a < b iff a leq b
???
the set difference would be all the pairs (x, x)
Convention?
It doesnt really matter which you take
because they turn out to be equivalent
isnt rudin === strict
strict
never has (x, x)
non-strict
always has (x, x)
Whichever definitions u take
what
to be put things clear
can u write down the 2 diff defns here
screenshot
i dont do names zzz
bruhhhh
screenshot pls
ok.
So we are defining <
I claim that these 2 are the same relation
What do u doubt?
sorry im back
ok so
the first definition
I will call A and B
for the bullet points ok
and compare with 1 2 3
Claim: A equiv 3
A says
x = y or x < y or y < x
3 says
x neq y implies x < y or y < x
yes?
but if you use the logical definition of implies
'p implies q' is 'not p or q'
Hence these 2 are equivalent
oops
Let me think for a sec
i missed something
A equiv (1 and 3)
I think I need to use a < a false
can u see?
The cases when more than 1 is true. Is made impossible by (1)
My brain is being bad
you have to use rule 2 as well
10 < 2 and 2 < 10 implies 10 < 10
Sorry lol.
Let me think carefully
suppose a < b and a = b
then what is issue?
ok then u have a < a
sorry yes that is it lolol
This is better definition imo
exclusive or 🤮
just how i prefer at least
yes
and then
dont write that
proper notation is := for define
x leq y := x<y or x=y
Then for the other way round we have
x<y := x leq y and (not x=y)
equal probably
my terminology isnt great
R1 = R2
if u write them as set of ordered pairs
wait no
you are talking about the definition of order
i was talking about that
the 2 definitions of order are equivalent
it doesnt matter which u use to define it
S is ordered (<) <=> S is ordered (leq)
I understand that the elements that would be in would be in the A1 ⊕ A2 ⊕ … ⊕ An. would at least be some element x that was only in 1 of the An sets
but im not sure what would be the case if an element was found in all sets A1 until An
how is $\oplus$ defined
Lochverstärker
like says say A1 = {1} , A2 = {1}, A3={1}. Then A1 ⊕ A2 ⊕ A3 = {1}
right?
but I dont know about some An case
and also
I would think about the parity of how many times an element appears
parity? Is that like how many times an element would have been repeated among An?
yeah, by parity I just mean even or odd
An element of the set must show up an odd amount of times between the A sets?
for it to be in the final A1 ⊕ A2 ⊕ … ⊕ An set
Right.
Thanks!
you're welcome 👍
1/2 and 2/4 are two ways to write the same rational number.
So the ordered pair (1/2, 2/4) is the same pair as (1/2, 1/2), which cannot appear in an irreflexive relation.
The set of rationals doesnt contain any fractions. The fractions 1/2 and 2/4 refer to a specific rational number, which is the same for both
I don't think it's standard to distinguish that strictly between "rational number" and "fraction". It's good and necessary to be aware that there is a difference between notation and underlying concept, but it doesn't feel helpful to assert that "fraction" can only mean a piece of notation. That simply doesn't seem to be true, as a claim about how actual mathematicians use the word when speaking to other mathematicians.
I think it works, but i think the red box, has been counted twice this way... I think this is not allowed right? What can we do to fix it?
As suggested by @olive condor (C - B) union (A intersect B) might work as well but it counts the red box twice. Not sure how we can fix that...
In this line, "Then it has odd number of edges, so some pair of two neighboring ones has to be in either M1 or in M2" what does "some pair of two neighboring ones" mean?
One edge plus another edge that shares an endpoint with the first?
Meaning two edges at the same point?
Two edges that share one endpoint.
Okay, nice.
Can someone let me know if my solution makes sense
I said R(s,2) = s for any s=>2 because you only need to look at the highest number, which will always be s as s is always at least 2
How does that explanation even relate to the definition of R(s,t)?
no @tranquil vector your solution does not make sense in the slightest
as troposphere said, you make no reference to the definition of R(s,t), therefore you cannot claim to have proven anything about R(s,t)
How would one go about explaining it then I’m like completely lost in this class
It sounds like you think R(s,t)=max(s,t)? That is definitely not true in general; for example R(3,4)=9 and R(4,4)=18.
I looked it up at https://mathworld.wolfram.com/RamseyNumber.html
you see where it says "Let R(s,t) be ..."?
that's the definition of R(s,t)
you may have seen the problem "Find the minimum number of guests at a party such that there either exist three people who all know each other or three people who are strangers to each other"
There's no good known way to compute this function in general, except in the simple case that one of the inputs is 2 (or 1).
to which the answer is R(3,3) = 6
But I don’t understand how R(s,2)=s
Suppose aliens invade the earth and threaten to obliterate it in a year's time unless human beings can find R(5,5). We could marshal the world's best minds and fastest computers, and within a year we could probably calculate the value. If the aliens demanded R(6,6), however, we would have no choice but to launch a preemptive attack.
- Erdős
If R(3,3) = 6
R(3,3) = 6 has no direct bearing on the values of R(s,2).
to understand why R(s,2) = s, think about the definition of R(s,2).
Is it something related to a whole graph being coloured red
can you prove that for any coloring of the edges of K_s into two colors, there is either a red clique of size s, or a blue clique of size 2?
"what even is a clique of size 2?" might be a good question to think about.
is a clique of size 2 just 2 connected points
what do we call a thing that connects two points?
you don't know the difference between a vertex and an edge?
i know one is the connection the other is the point
that sounds like not knowing your head from your ass, to put it bluntly
it should not be a matter of contention to you that the word vertex refers to points
and the word edge refers to connections between those points
say, how come you have the Russian flag as your pfp?
unrelated it’s just an inside joke with my friends
ah, and here i thought we could switch to Russian to make things easier.
I’m taking this course in english so yes I should know what an edge is
When you word it like that it makes a lot more sense thank you
i just have trouble understanding the way they write the questions
i didn't word it in any way not already written in the question
though of course, proving what i told you to prove actually only gives you $R(s,2) \leq s$.
Ann
there's another part to it: to show that no smaller graph will work.
for this it's enough to come up with a way to color K_(s-1) in a way that avoids both kinds of cliques
i.e. no red cliques of size s and no blue cliques of size 2
should be very obvious how to do that
yeah I think that’s the second part of the question
I just didn’t understand what was being asked of me at first
thanks for the help
Erm… (C - B) covers the yellow and pink areas. (A intersect B) covers the red and green areas. Together, they cover the required four areas. Why do you say that the red box has been counted twice? Moreover, in set, everything is “counted” once, i.e. {1,2,3,4,4,1,2,0} = {0,1,2,3,4}.
if A = {1, 2, 3}, and B = {∅}, then what would be A x B ?
would it be {(1, ∅), (2, ∅), (3, ∅)} ?
yeah that looks right
nice
I'm rather at a loss here for how to begin this proof
I'm assuming I need to use the deductive method to create a conjunction on the left side, but I'm not grasping how
Do you have an inference rule that allows you to conclude a -> ?
I know modus ponens/tollens and the disjunctive equivalency of implication
Hmm, that makes it more complex. I hoped you had implication introduction ...
Oh yes! Sorry, she never defined it as such but looking at the definition that's the basic idea
We can assume the hypotheses to be true
Alternatively, unfold all the implications except the outermost one using disjunctive equivalence, and use De Morgan's law on not(P and Q).
That was the path I was taking initially. It seemed messy but perhaps that's the expectation
The way using implication introduction goes: Assume P and Q implies R. Assume P. Assume Q. Since you know P and you know Q, you now know P and Q. Modus ponens. Then discharge all of the assumptions.
Oh that's a clever shortcut
Note that 3 == 1 (mod 2) and 4 == 0 (mod 2), so what you really need to solve is just n^2 == 1 (mod 2).
oh u can do that, just take the innate properties of individual elements and redefine them
good to kow
know
also might even simplify with $n^p=n \mod p$ in this case as well
Merosity
What does this mean?
"It is an immediate consequence of the axiom of extension that the axiom of specification determines the set B uniquely."
'determines uniquely' is the part throwing me off.
Like, to me, that sentence means "because sets with the same elements are equal, a set built from a condition on another set can only be determined one way."
to say it very generally, "<object> is uniquely determined by <data>" means that there is only one object in existence which matches the data
Then why not write it like "It is an immediate consequence of the axiom of extension that the axiom of specification determines a unique set B."
that's synonymous to what was written
Ok, thanks for clearing that up.
Would someone tell me what the , refers to in the equation?
what am I supposed to do with it though
lets say I worked out the first half and second half
Need some context
That's the confidence interval
yeah
Oh, so you need the percentage of points that lie within that interval
Wait, that's wrong
Goggle is failing me, and I missed the word misconception
Found it
Take half of the size of the confidence interval, multiply it by the square root of the sample size and then divide by the sample standard deviation
@wraith harbor
https://sciencing.com/calculate-confidence-levels-2844.html
I don't know. At this point I would use a text book for how to get the confidence level. Google seems to think I only want the interval.
ty i will look at it
Kind of looks like you need to get the interval from the level
http://amsi.org.au/ESA_Senior_Years/SeniorTopic4/4h/4h_2content_11.html
Probably have to work backwards
Found a decent source
https://www.mathsisfun.com/data/confidence-interval-calculator.html
Math explained in easy language, plus puzzles, games, quizzes, videos and worksheets. For K-12 kids, teachers and parents.
anyone can help with this please
What are you trying to get?
Yea, so plug your numbers into the confidence interval equation and solve for Z, then use the table in the link to get the confidence level
Counting the red box twice doesn't matter. Sets can't contain the same value more than once. Like {a, b} union {a, c} is {a, b, c}, because {a, a, b, c} is just another way to write {a, b, c}. A crisp set either contains a value or it doesn't.
Also, it doesn't count the red box twice
Hey thank you for the relpy so i guess its just (C-B) union (A intersect B)
Would a set B = {R, Z} (meaning real and integer) be an infinite set or a finite set because the set B has a finite number of elements?
It's a finite set because it has two elements.
Thank you!
Having a hard time understanding how I am meant to rewrite this.
Simply rephrase the given sentence “For every function f(x), if f(x) is quadratic, …” to answer the question? E.g. (a) All quadratic functions have at most two roots.
Can someone solve this puzzle. I am doing this from past 2 days. Anyone knows the answer?
U can only move top cube it means u are not allowed to move two cubes simultaneously or cubes below the top cube. Just top one on the stack you can move. Also you have to find number of moves.
,rotate
What have you tried?
You can solve by drawing the trees out
Maybe the answer is the number of leaves in a full/perfect(?) binary tree. So f(x) = 2^(x+1) - 1.
Bit of a simple question but I’m struggling to wrap my head around this.
Q: Determine wether it is an equivalence relation or not
S=R, xRy if x<y+1
So from what I understand for it to be an equivalence relation it needs to satisfy the 3 conditions ; Reflective, symmetric and transitivity
So for reflective
xRx so x<x+1 which is true so it’s reflective?
And for symmetry
xRy so x<y+1 > y<x+1
Which isn’t true?
Or do we assume it’s true because of the original question?
misuse of >
also no we do not assume anything
nothing in the question says "yes this relation is definitely symmetric"
and indeed it is not
i tend to say exactly what i mean, no more and no less.
when i tell you that you're misusing a symbol, it means that you're misusing that symbol.
if you wanted to say "implies", the symbol for that is =>, not >.
you don't need to check transitivity.
you already know the relation is not symmetric, so it cannot be an equivalence relation.
Then how would you do it
write out a proof lol
if you think the relation is transitive then prove it's transitive
I don’t understand how to
explain why x < y+1 and y < z+1 implies x < z+1
How would u explain it tho? Its self explanatory 🤦♂️
Hey everyone !
could anyone help me figure out a graph theory problem?
I am required to find the amount of possible walks from a given point on a graph of length 9
that's the graph in question
the given point is (1,1) top left , i've written the degree of each vertex next to it
so that the edge vertices are of degree 5
the mid points are of degree 7
and the middle point, (2,2) is of degree 8
now my 1000th intuition was to define a recurrence relation, forming sequences of available walks from a 5th degree vertex (An), a 7th degree vertex (Bn) and an 8th degree vertex (Cn), n being the index of the walk
so if im at a 5th degree vertex im able to either walk to one of 4 available 7th degree vertex or an 8th degree vertex, which is true for any 5th degree vertex, yielding An=4*Bn-1 + Cn-1
for a 7th degree vertex I get Bn=2Bn-1+4An-1 +Cn-1
an the 8th degree vertex : Cn=4An-1+4Bn-1
but im not sure how to proceed from here
not only am I not sure if my strategy is correct
defining Cn-1 and plugging in the other relations gets me to a dead end which leads to 3rd/4th degree polynomials with 2 variables with no apparent solutions....
Is there anything im missing perhaps ... ?
I still have confusion about one thing: "Then it has odd number of edges, so some pair of two neighboring ones has to be in either M1 or in M2"
Does this mean in every vertex of two degrees, one edge is from M1 and another is from M2? It seems like so but I don't understand how I can write this clearly.
Referring to this
I think I figured it out. Will post the whole proof in a while for feedback
I got “For every x, x is prime and is an integer between 0 and 1000 and there is a k such that for every x x=4k+1 → ..."
But I am not sure about how to translate the "→∃(a,b)" part into plain language
for every x SUCH THAT x is a prime between 0 and 1000 and is of the form 4k+1, there exist a and b such that x = a^2 + b^2
Does anyone have a pdf copy of Discrete Mathematics: An Introduction to Mathematical Reasoning, Brief Edition by Susanna S. Epp
Search it up online and add pdf at the end
If you can’t find it I have it
This is the question:
Lemma 1: A graph is bipartite if and only if it contains no odd cycles.
Proof: If G is bipartite with vertex sets V1 and V2, every step along a walk will take us either from V1 to V2, or V2 to V1. Therefore to end up where we started, we must take an even number of steps.
Conversely, suppose that every cycle of G is even. Let v0 be any vertex. Let’s call the Component containing v0 is C0. For each vertex in C0, let d(v) be the length of the shortest path from v0 to v. Every vertex in C0 whose distance from v0 is even, is colored red. Every vertex in C0 whose distance from v0 is odd is colored blue. This is done for each component in G. G doesn’t have any edge between two blue vertices because if there were an edge between two blue vertices, let’s call them b1 and b2, then going to b1 would require odd length, b2 would require even length, then back to v0 from b2 would require odd length and we would have an odd cycle which contradicts our initial assumption. The same happens for red vertices. Therefore, G is a bipartite graph with red vertices being one side and the blue vertices the other.
Theorem: The union of two matchings is bipartite.
Proof: A graph constructed by a matching has a maximum degree of 1, and a graph whose edges are formed by union of two matchings M1 and M2, has a maximum degree of 2. If there is a cycle of odd length, since each vertex has a maximum degree of two, one edge is from M1 and another is from M2. Marked in this way, there is one pair of edges in one vertex of the cycle which will be from either M1 or M2, but this contradicts that M1 and M2 are matchings. This means that there are no odd cycles in the graph G’.
Therefore from lemma 1, the union of two matchings is bipartite.
I have rewritten some lines from the Math Stackexchange questions, to be clear that I understand the reasoning. Can you kindly verify the proof and tell me if there are any flaws in my reasoning?
assuming A is a set, A-bar is everything outside of the set
formally known as the complement
oh ok thanks
Thanks
Any books that you would recommend on discrete maths and any other imp topics which would be useful.
Btw how did you draw that ?
Erm, no recommendation from me. It all depends on your goal!
That is called a game tree, which is commonly introduced in an AI (programming) class. Or you can study more into game theory if you’re interested 😄
In the context of Combinatorial game theory, which typically studies sequential games with perfect information, a game tree is a graph representing all possible game states within such a game. Such games include well-known ones such as chess, checkers, Go, and tic-tac-toe. This can be used to measure the complexity of a game, as it represents al...
Can someone help with this question
I have done this so far
nvm
I figured it out
I think I applied the laws correctly to show how the LHS = RHS
when am I able to remove parenthesis with set operations?
like what operations can I think of Union and intersection as being similar to?
I have to distribute this correct?
Which means it doesn't behave like addition
RokettoJanpu
$A\cap B\cap C$
RokettoJanpu
okay
Am I allowed to ask questions in this channel?
both operations associate, ie order of evaluation doesnt matter
thats why parens can be removed
in fact it lets us unambiguously define big unions/intersections
$\bigcup_iA_i$ and $\bigcap_iA_i$
RokettoJanpu
This would just be a series of Unions or intersectiosn, right?
where would I prove the distributive law on sets?
I am taking some discrete math course and it just was one of the rules.
like do you normally show that in discrete?
I never seen anything about it
maybe I missed it
its reasonable to be asked to prove it in discrete
bc it often includes intro to proofs
its not terrible, just recall defs of union/intersection & work cases
okay
Can one of guys help with me with this question?
Whenever anyone on one of those islands (where knights and knaves are the only population groups) says "X if and only if I am a knave", you know X is false. So we'll need to wonder whether it's deliberate that B said "only if" instead of "if and only if".
However, your answers cannot all be true. If it is true that B is a knight and A knows where the gold is hidden, then B said "something-true only if something-false", which would make him a knave.
We might also need to decide whether a knave is able to say "something-true but something-false" or "something-false but something-true".
man they multiposted
theyre in #help-5
@ebon quest for future reference pls dont multipost
Bah.
Sorry about that
How do I know what my Universal set would be if I am given a set that is written in roster notation?
for example if we have the set S = {1,2,3,4,5}
how would I know what my universal set is
My book defines it as
So I guess if I have any problems related to finding universal set or using it then I would be given the context?
Yeah, despite what it can look like in a first introduction to set algebra, it is quite rare for a "universal set" to have significance in practical mathematical use of sets -- except in some where specific applications where it is stated explicitly what it's taken to be.
The only operation you need a universal set for is complement, and for many "casual" instances of complements, one simply writes it as X\A where X is what we might otherwise call the universal set. Then it is unambiguous in the notation itself what to complement with respect to.
what does the A mean in this context?
Some set.
so X\A means what?
I meant, instead of $A^\complement$ or $\overline A$ it is more common to write $X\setminus A$ to make it explicit what it is one speaks of complementing A with respect to.
Troposphere
oh so you must also know what X is right?
and you are just saying X\A meaning A has a universal set defined by the set X?
There's no such thing as "has a universal set".
A is contained in a "universal set" defined as X
$X\sm A=\brc{x\in X:x\notin A}$
RokettoJanpu
How can I show that:
[
T(n) = T\left(\frac{n}{2}\right)+T\left(\frac{n+1}{2}\right)
]
where (n\in\mathbb{N}) is monotone?
Victor H
Hello. I need help. My task is to find out how many combinations there are to arrange beads in the same way as in the image
12 beads ( 6 white , 4 black , 2 blue )
Not that I can help much but the actually bead doesn't matter if the say 2 white beads next to each other swap
right?
so if I swap those 2 beads it is still the same thing?
Yes
So i have to find out how many combinations are possible
With the same colour pattern being there
I feel like somewhere you divide by 12 or something
At least if I am thinking about it like permutations which I guess it is not
Because the one you wrote on your paper could be shifted 11 times?
But would technically still be the same thing
I am in a algorithms class and have a few questions... would this be the best place to ask?
probably
So I was given a bunch of summation formulas and told to memorize them and to figure out what theyre used for in each case. I am very confused as I don't know when to use each one. Ill send the picture so yall can get a better idea of what I mean.
Maybe seeing you are in an algorithms class I assume programming right?
Might these could be used to reduce having to compute multiple for loops and or simpler and faster methods to evaluate some quantity
Maybe you are also given more complex summation and you can break it up and reduce it using these rules/formulas
I’ve been going at this for a while and I’m not certain on what to write for the last two.
Am I crazy or is this asking the same question 3 ways.
it seems like it
Might be better with context of your class but seems that way.
like the subject?
Yes
Variables
assuming that p = the user violated the terms of service; q = the user is banned.
the user violated the terms of service but is not banned ==
P -> ~q
is this correct ?
p -> ~q would still be true if p is false (i.e. the user did not violate the terms of service)
So it seems like it captures the statement: if the person violated the terms of service, then the user is not banned
If you want to say "the user violated the terms of service but is not banned", then you require two things to be true: the user violated the terms of service, the user is not banned
@wide vinesorry for the late response but we have to apply these to problems tomorrow on a quiz. Im just confused on how to know when to use each one
what exactly have you done up to this point?
i mean what have you previously done in the class
might give me better context as to why these were just "given to you to study"
would something always be considered a subset of itelf? e.g. A={1,2,3}, would A therefore be a subset of itself?
Yes. Every set is a subset of itself follows from the definition of a subset.
An ant mill is an observed phenomenon in which a group of army ants are separated from the main foraging party, lose the pheromone track and begin to follow one another, forming a continuously rotating circle, commonly known as a "death spiral" because the ants might eventually die of exhaustion. It has been reproduced in laboratories and has be...
The more you know
How can I solve a recurrence relation such as:
[
T(n)=2T\left(\frac{n+1}{2}\right)
]
Victor H
I can guess the solution, and prove it's right and it's unique lol
But idk how to arrive it nicely from just this with some kind of method
If i have a function f(n) and a function g(n) and if f(n) grows much faster than g(n), how can i write this out using Big-O?
i dont think there is a way to quantify "much" (unless you can more rigorously state what this means)
but knuth uses the notation $f\in \omega(g)$ for "f dominates g asymptotically"
Lochverstärker
or f = \omega(g) using a bit abuse of notation
sounds roughly like there exists some $x_0$ such that $x>x_0$ implies $|g(x)|\le |f(x)|$, this can be written as $g(x)=O(f(x))$
Merosity
i gave up on this. i have no idea#
thanks man
hello again, quick question
~q -> ~p would this be true if p = T and q = T as well?
Yes
You just need to remember tables for implication,or and
i am assuming that if p = t and q = f, ~q -> ~p then its false
You're missing the table for ->.


I guess I will have to look it up