Need to sort list into time slots

I have a list of items which need to be sorted into time slots but that have limitations on the slots they can be in.  For example I have slots available all day monday but item 1 - cant be scheduled from 8:00am to 12:00pm so it needs to be sorted after 1:00.  I have spent the day trying to figure out where to start with this.  There will always be enough slots for the items, I just need an algorithm to sort them.  Any advice on where to start would be appreciated.

Thank you.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What language or application are you using?  Are you doing this by hand?
What formats are required for your input and output data?

What are the criteria for an acceptable or optimal solution?  Spread things out as evenly as possible?  Or get things done as soon as possible?

Probably the easiest thing to do, is handle the items with the most constraints first.
clintnashAuthor Commented:
The current project is in VB.NET in a WPF application, but c# is fine as well. Currently its done by hand, trying to automate this.  Closest analogy is a calendar with 1 hour appointments (open calendar and a list of appointments to drop in).   Some (not all) appointments have constraints such as cant be during a particular time block.  My initial approach was to weight the items  and then sort them in "highest weight in first" but it doesn't seem to give me the optimum solution...leaves a lot that can't be scheduled.  So I changed directions and the current iteration is to flag each row with timeslots it could be in but this is worse than the first try....
A Bin Packing problem with constraints can often be represented as a Vector Packing problem

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
clintnashAuthor Commented:
Thank you...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.