MATH1081 Discrete Maths (1 Viewer)

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Re: Discrete Maths Sem 2 2016

Given the vertex degrees, is there a rule of thumb that we can use to determine if there exists a simple graph with those degrees?
 

Drsoccerball

Well-Known Member
Joined
May 28, 2014
Messages
3,657
Gender
Undisclosed
HSC
2015
Re: Discrete Maths Sem 2 2016

Given the vertex degrees, is there a rule of thumb that we can use to determine if there exists a simple graph with those degrees?
I think the way to go is to draw each vertex with its edges corresponding to its degree and look for any contradictions if you can draw it then no probs, if you can't then it doesn't exist ez.
 

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Re: Discrete Maths Sem 2 2016

I think the way to go is to draw each vertex with its edges corresponding to its degree and look for any contradictions if you can draw it then no probs, if you can't then it doesn't exist ez.
Yeah but like, I don't wanna run into experimental error lel
 

RealiseNothing

what is that?It is Cowpea
Joined
Jul 10, 2011
Messages
4,591
Location
Sydney
Gender
Male
HSC
2013
Re: Discrete Maths Sem 2 2016

Given the vertex degrees, is there a rule of thumb that we can use to determine if there exists a simple graph with those degrees?
Not sure if this is what you mean, but say you know the vertex degrees are 2, 2, 2, 2, 3, 4, 4, then to test if such a graph exists then do this:

Write the degrees in ascending order:

2 2 2 2 3 4 4

Take the last number, get rid of it, and subtract 1 from the previous N numbers (where N is the last number).

In this case, get rid of the 4, then subtract 1 from the previous 4 numbers.

2 2 1 1 2 3

Re-order into ascending order:

1 1 2 2 2 3

Repeat:

1 1 1 1 1

You continue doing this until you either get a contradiction or a possible graph. In this case it is clear you can not graph this as the sum of the degrees is odd, contradiction.
 

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Re: Discrete Maths Sem 2 2016

Questions like these are what make me confused as to how to find the pigeons...

One thousand people have a pack of cards each. Every person chooses two cards from their pack. Prove that there must be at least 11 people who have chosen cards with exactly the same values (card rank)
 

InteGrand

Well-Known Member
Joined
Dec 11, 2014
Messages
6,109
Gender
Male
HSC
N/A
Re: Discrete Maths Sem 2 2016

Questions like these are what make me confused as to how to find the pigeons...

One thousand people have a pack of cards each. Every person chooses two cards from their pack. Prove that there must be at least 11 people who have chosen cards with exactly the same values (card rank)
 
Last edited:

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Re: Discrete Maths Sem 2 2016

Consider a set of 4 natural numbers

Can you use the pigeonhole principle to show that at least 2 are even or (inclusive or) at least 2 are odd?

(Or if not how would you do it without listing the cases)
 
Last edited:

InteGrand

Well-Known Member
Joined
Dec 11, 2014
Messages
6,109
Gender
Male
HSC
N/A
Re: Discrete Maths Sem 2 2016

Consider a set of 4 natural numbers

Can you use the pigeonhole principle to show that at least 2 are even or (inclusive or) at least 2 are odd?

(Or if not how would you do it without listing the cases)
The 'holes' would be the parity (odd or even) and the 'pigeons' the four numbers. There are two holes (odd or even). Since ceil(4/2) = 2, there are at least two numbers of the same parity.
 
Last edited:

leehuan

Well-Known Member
Joined
May 31, 2014
Messages
5,805
Gender
Male
HSC
2015
Re: Discrete Maths Sem 2 2016

I just thought of this question on the spot and I don't imagine it to be too hard, but I want to see how someone would approach it.



(Sincerely hope I didn't write something wrong here)
 

Drsoccerball

Well-Known Member
Joined
May 28, 2014
Messages
3,657
Gender
Undisclosed
HSC
2015
Re: Discrete Maths Sem 2 2016

I just thought of this question on the spot and I don't imagine it to be too hard, but I want to see how someone would approach it.



(Sincerely hope I didn't write something wrong here)










 

He-Mann

Vexed?
Joined
Sep 18, 2016
Messages
279
Location
Antartica
Gender
Male
HSC
N/A
Re: Discrete Maths Sem 2 2016

New question

You have in front of you, a barrel of N ping pong balls, each labeled with a unique number. You pull a ball from the barrel, make a note of the label, and then put the ball back. After pulling K balls from the barrel, what is the probability that you've seen all of the balls? What happens when K=N and K>N. Consider these 2 cases separately.
 

Drsoccerball

Well-Known Member
Joined
May 28, 2014
Messages
3,657
Gender
Undisclosed
HSC
2015
Re: Discrete Maths Sem 2 2016

New question

You have in front of you, a barrel of N ping pong balls, each labeled with a unique number. You pull a ball from the barrel, make a note of the label, and then put the ball back. After pulling K balls from the barrel, what is the probability that you've seen all of the balls? What happens when K=N and K>N. Consider these 2 cases separately.
n!/n^n ?
 

seanieg89

Well-Known Member
Joined
Aug 8, 2006
Messages
2,662
Gender
Male
HSC
2007
Re: Discrete Maths Sem 2 2016

The question can be rephrased as asking: "What is the probability of a randomly chosen f:X->Y being surjective if |X|=k and |Y|=n?"

The total number of functions between these sets is n^k.

The number of surjective functions arises from partitioning the |X| into n nonempty subsets and then constructing a bijection between these n subsets and the elements of Y.

The bijection part just gives you a factor of n!, the partitioning is the hard thing to count. The number of ways of partitioning an n-element set into k nonempty (unlabelled) subsets is S(n,k), called the Stirling numbers of the second kind.

So the answer is S(k,n)n!/n^k

It is obvious that S(n,n)=1, so that agrees with the answer provided above by drsoccerball for k=n.

S(k,n) does not have a nice closed form in general, but you can find summation expressions for it using inclusion-exclusion for example.
 

seanieg89

Well-Known Member
Joined
Aug 8, 2006
Messages
2,662
Gender
Male
HSC
2007
Re: Discrete Maths Sem 2 2016

Eg/

Let's compute the number of surjections from X to Y by inclusion exclusion. (This also computes S(k,n) by dividing out the n! factor.)

Let A be set of all functions from X to Y.

For each element y of Y, let A(y) be the set of all functions from X to Y that do not have y in their range.

Similarly, A(y1,y2) is defined to be the set of all functions from X to Y that do not have y1 or y2 in their range.

Etc.

Then inclusion-exclusion says that the number of functions in A that have range all of Y is given by:

 
Last edited:

He-Mann

Vexed?
Joined
Sep 18, 2016
Messages
279
Location
Antartica
Gender
Male
HSC
N/A
Re: Discrete Maths Sem 2 2016

The question can be rephrased as asking: "What is the probability of a randomly chosen f:X->Y being surjective if |X|=k and |Y|=n?"
What is this 'heuristic' called? A reduction? An abstraction?
 

InteGrand

Well-Known Member
Joined
Dec 11, 2014
Messages
6,109
Gender
Male
HSC
N/A
Re: Discrete Maths Sem 2 2016

What is this 'heuristic' called? A reduction? An abstraction?
I guess it's basically looking into the heart of the question. (It's phrased in terms of balls and boxes, but it's essentially a question about how many surjections we can make on given-sized (finite) domains and codomains.)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top