Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Algorithm to fit photos into spaces on pages

by samtregar (Abbot)
on Nov 15, 2005 at 17:37 UTC ( #508705=note: print w/replies, xml ) Need Help??

in reply to Algorithm to fit photos into spaces on pages

I don't have time to really work up a solution but your problem is screaming regex to me. I would look at the possibility of compiling a regex representing all the possible solutions. Then match that regex against the input string to obtain the shortest solution. If a regex isn't flexible enough you might look at a parser module like Parse::Yapp or Parse::RecDescent.


  • Comment on Re: Algorithm to fit photos into spaces on pages

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://508705]
[LanX]: do you know the story of the triangle player?
[choroba]: Oh, the Czech one playing the German composition?
[choroba]: BTW, the elections are over. We already have the final results.
[choroba]: I should probably apply for a job somewhere abroad.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-10-21 19:34 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (270 votes). Check out past polls.