Mathematics

Associated with Math.SE; for both general discussion & math qu...
A.E
Dec 23, 2014 20:47
In case you feel like writing something down, I made a post here: math.stackexchange.com/questions/1078342/…
A.E
Dec 23, 2014 20:47
I have to go, I will keep thinking about it. Thanks for the help, guys.
A.E
Dec 23, 2014 20:46
:)
A.E
Dec 23, 2014 20:39
Yes, each subset is of size Q drawn uniformly from P elements
A.E
Dec 23, 2014 20:39
Pr{A specific element belongs to all N subsets} = (Q/P)^n
A.E
Dec 23, 2014 20:38
@TedShifrin mind giving your input? I have Pr{A specific element belongs to all N subsets}, and I want to calculate Pr{Any element belongs to all N subsets}
A.E
Dec 23, 2014 20:35
I would think we need a factor of P, to account for the P choices of a specific element appearing in all N subsets
A.E
Dec 23, 2014 20:35
No
A.E
Dec 23, 2014 20:34
@Studentmath So this gives me the probability of a specific element appearing in all N subsets: (Q/P)^N.
A.E
Dec 23, 2014 20:33
@Studentmath Well those are independent, so it should just be the product (Q/P)^2
A.E
Dec 23, 2014 20:30
@Studentmath The form I wrote simplifies to Q / P, so then the probability of a specific element not appearing in a given subset is just 1 - Q/P
A.E
Dec 23, 2014 20:26
@Studentmath Yes
A.E
Dec 23, 2014 20:23
@Studentmath
Given a subset S of P, the probability of some e in P appearing in S is (P - 1 choose |S| - 1) / (|P| choose |S|)
A.E
Dec 23, 2014 20:23
Sorry, @stud
A.E
Dec 23, 2014 20:19
*|S|
A.E
Dec 23, 2014 20:19
Given a subset S of P, the probability of some e in P appearing in S is (P - 1 choose |S| - 1) / (|P| choose S)
A.E
Dec 23, 2014 20:14
@TedShifrin, no :P I am just still at a loss on how to count this probability of at least one element appearing in all the subsets.
A.E
Dec 23, 2014 19:56
Right.
A.E
Dec 23, 2014 19:53
Right, so I want to count the probability of some element appearing in every subset.
A.E
Dec 23, 2014 19:52
Yes
A.E
Dec 23, 2014 19:52
No, the intersection of {1, 2, 3} and {1, 3, 4} and {5, 6, 7} is empty
A.E
Dec 23, 2014 19:51
That their intersection is empty
A.E
Dec 23, 2014 19:51
I meant to say
A.E
Dec 23, 2014 19:51
I should clarify: I don't mean mutually disjoint
A.E
Dec 23, 2014 19:50
Hm.
A.E
Dec 23, 2014 19:49
@TedShifrin, I looked at simple cases like where N = 2, but I am struggling with N > 2. I know I need to apply inclusion-exclusion somehow, but I am not sure how
A.E
Dec 23, 2014 19:46
I am struggling with a discrete probability question. Given a finite set of size P, what is the probability that N random Q-subsets (uniformly drawn) will be disjoint?
Jun 17, 2013 06:43
well, i'll let you all toy with it as you will. it's very late my time and i've been thinking about this problem for far too long today. thanks for hearing me out, i hope one of you gains some insight on the problem.
Jun 17, 2013 06:37
well at least I'm not alone then! it's been troubling me for almost a week now.
 

 Dynamic Programming and Greedy Algori

A discussion on difference between the two
Jul 23, 2013 18:10
Good luck, I'll check back in when I'm off work. If I have an insight I'll post on your question.
Jul 23, 2013 18:09
*exchange assignments within the second solution..
Jul 23, 2013 18:09
Then progressively exchange the second solution to look like the greedy one, and demonstrate that it never lowers in production.
Jul 23, 2013 18:08
Claim your solution is optimal, and assume there is some other "optimal" solution that disagrees with your assignment at some point.
Jul 23, 2013 18:08
Prove it, via exchange argument.
Jul 23, 2013 18:08
But, here is how you can know for sure:
Jul 23, 2013 18:07
I think it is
Jul 23, 2013 18:07
I don't have time right now to try and prove whether or not a greedy solution works
Jul 23, 2013 18:06
Thats what I'm saying.
Jul 23, 2013 18:05
I might be missing something.
Jul 23, 2013 18:05
but that still seems greedy
Jul 23, 2013 18:05
where f(z) is a function that defines how much additional production you yield by assigning the nth item of food to mine X/Y
Jul 23, 2013 18:04
OPT(n) = max { OPT(n-1) + f(X) , OPT(n-1) + f(Y) }
Jul 23, 2013 18:03
You could characterize it as a dynamic program though, by defining a recursive function on the sequence of length $n$.
Jul 23, 2013 18:03
I'm trying to think of a sequence were the greedy method of "give the package to the mine that will yield the highest production" fails..
Jul 23, 2013 18:01
Question though: if you are given the sequence AABBCC, you would be able to split it up like X:ABC and Y:ABC, right?
Jul 23, 2013 18:00
But the problem seems like it can be solved with a greedy algorithm.
Jul 23, 2013 18:00
Seems greedy to me.
Jul 23, 2013 17:56
whats up?
Jul 23, 2013 17:55
I'm at work
Jul 23, 2013 17:55
Gotta be quick