What is the Integer Program Formulation for Maximizing Scores in a Word Puzzle?

  • Thread starter Thread starter sheldor
  • Start date Start date
  • Tags Tags
    Integer Program
sheldor
Messages
2
Reaction score
0

Homework Statement



Consider the following puzzle. You are to choose 4 three-letter "words" from the following list:

ECB EFH BEJ GGE HIJ CDE GEG CBJ

For each word, you earn a score equal to the position that the word's third letter appears in the alphabet. For example, ECB earns a score of "2", EFH earns a score of "8", and so on. Your goal is to choose the four words that maximize your total score, subject to the following constraint. The sum of the positions in the alphabet for the first letter of each word chosen must be at least as large as the sum of the positions in the alphabet for the second letter of each word chosen

Formulate an IP only for this problem.

Homework Equations





The Attempt at a Solution



No solution needed. Any help with choosing variables and setting an objective function would be appreciated.
 
Physics news on Phys.org
You have 8 words, Wi, i=1,2,...,8. For each Wi you need do decide whether or not to choose it. How can you write this in terms of variables of some type? If somebody hands you values for all your variables, how can you determine whether their suggestion picks 4 words exactly? How can you calculate the objective value corresponding to their suggestion? How can you determine whether or not their suggestion satisfies the first-second letter requirement?

RGV
 
Thanks Ray. I will use your suggestions as a starting point.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Replies
13
Views
3K
2
Replies
67
Views
14K
Back
Top