.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 25th, 2007, 06:46 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default OT: Math help. Permutations and Combinations

Here's the question in my math homework this week.

Quote:

A shelf holds 12 books in a row. How many ways are there to choose 5 books so that no two adjacent books are chosen? [Hint: Represent the books that are chosen by bars and the books that are not chosen by stars. Count the number of sequences of five bars and seven stars so that no two bars are adjacent.]
I could not figure out how to present this in one of the formulae we studied in this chapter. The hint was no help to me at all. I did a brute force method approach and counted the possible combinations.

Since the selections must be non-consecutive the longest we can wait to pick our first selection is book 4 and every other book after gives us:
4,6,8,10,12
Now working backwards on the shelf if our first book selected is 3 we get:
3,5,7,9,11
We can pick the same first four and choose 12 for our last books instead of 11 giving us:
3,5,7,9,12
With 3,5, and 7 picked we can also take 10 and 12 giving us:
3,5,7,10,12
With 3, and 5 we can take 8 as our third book giving us:
3,5,8,10,12
And our final pick with 3 as the first choice is:
3,6,8,10,12

Following an identical process and working through all the other options and tabulating the totals I came up with the following:
1 sequence with 4 as the first book selected
5 sequences with 3 as the first book selected
15 sequences with 2 as the first book selected
35 sequences with 1 as the first book selected
Total = 56 sequences

Is there a more elegant way to approach this problem? If we were talking about a shelf with 100 books and choosing 25 my solution would not be very practical.

A guy in my study group came up with C(8,3) which by formula is 8!/(3!5!) which does equal 56, so I suspect he's got the correct idea. I just can't see how he jumped to the formula from the given information since he didn't show any of his work. I've asked him to explain his process, but it's an online class and and I don't know how long it will take him to respond.

Anyone care to give me some help? Anyone, anyone? Buehler?
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.