You are not logged in.

- Topics: Active | Unanswered

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Of course, I changed post #49.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

It still looks the same.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

You must have seen it after the edit...

This is barebones skeleton code. No frills or amenities added.

Initialize and define the function.

```
p={300,250 ,175,100,75,50 ,25,15,7,3,1};
fubar[n_] := Module[{},
h = n/c;
c -= n;
h]
```

Some more initialization, pck is the draft pick.

```
pck = 5;
s = Permutations[p, {pck}];
```

This is what runs. I pick 75 because it is 5th in p as the number of balls the fifth player gets.

```
ans = Select[s, #[[pck]] == 75 &];
Product[k, {k, #}] & /@
Table[c = 1001;
fubar[#] & /@ ans[[k]], {k, 1, Length[ans]}] // Total
```

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

I think I understand it. It is very, very messy, though.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Hmmm. It is a model of efficiency and originality. Pennypingdon, he walked on his hands to spare his feet.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

Well, I do not know how efficient it is, but one thing is sure - it looks nasty.

Anyway, how does it do on picks no. 9, 10 and 11?

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Functional style always looks nasty.

Combinatorial explosion - it is nasty. I will do one.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

It does not always look nasty.

Hey, I just remembered. It's been a long time since we last used quantum math! Maybe we should try that?

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

When it is done right, it looks nasty.

What the heck is quantum math?

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

You are supposed to know. You cane up with it. But it was for a geometry problem, so I am not sure if it is applicable.

Try P(team 1 picks 11th).

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

I have never heard of it.

The program is not fast enough for the last couple.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

What can we do about those?

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Combinatorial explosion is the enemy of everything we do. We can:

1) Come up with a method of permutation generation that does not generate them all, just the ones we need.

2) Compile the function or write part of it in some other language.

3) Use the first couple of values to figure out an analytical answer or an asymptotic one.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

I will go with 3.

By the way:

bobbym wrote:

My solution consists of using geogebra with an increment of .0000000000000000000000000000000000000000001 at this small increment quantum math takes over and even though that is over 10^43 points it is done instantaneously. Then I put the 10^43 values into the spreadsheet and curve fit. Because in quantum math 10^43 equals infinity the fit was exact. Got the same answer you did.

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Kaboobly doo! I was obviously hacked,

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

Should we report it to MIF, then?

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

I do not see why. I do not like quantum computing or any quantum qaboobly doo.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

Well, if you were hacked, it might be an issue.

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

I do not even remember the post.

**In mathematics, you don't understand things. You just get used to them.**

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,609

Well, you said you were hacked. Should we report that to MIF?

Here lies the reader who will never open this book. He is forever dead.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 89,124

Could be those darn reptilloids...

**In mathematics, you don't understand things. You just get used to them.**

Offline