Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Challenge: Letter Power

by sk (Curate)
on Oct 12, 2005 at 07:23 UTC ( [id://499402]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    Let i represent the index (num in your example) and
    ...
    subject to: sum {over all j} X[i,j] = 1 for all i.
    subject to: x[i,j] element of (0,1) for all i, j.
    
  2. or download this
    1. For each index/word pair store the number of repeats of each charac
    +ter.
    2. INIT: Start with the index/word pair that has the highest value by 
    +itself (i.e. assuming the value of other index/words are zero). 
    ...
    7. You can repeat this exercise for certain number of iterations and t
    +hen you stop with the best solution found thus far. 
    NOTE that you can also use randomized approach to randomly pick an ele
    +ment to exchange and try to improve the solution.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://499402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found