data structure for timetabling problem

hi experts,
what would be the most efficient data structure for timetabling question?

cheers r6
R6Asked:
Who is Participating?

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

x
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.

Mick BarryJava DeveloperCommented:
Perhaps a SortedMap<Calendar, TimetableEntry>

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
R6Author Commented:
hi objects,
thanks for ur comment, i have never used Sortedmap before, so i'll look into it now:)

by the way, my current implementation is such, i have a uesr-defined class that represents a class that has to be scheduled in.  as each class has different contact hours and the enrolled students and so on.  therefore, i have an arraylist of arraylist to first sort out the allowed timeframe (hours by day)  and from there i build a domain_list (arraylist) which holds the possible time for this particular class.  then i begin my scheduling algorithm based on this domain_list structure.

can u please comment about my implementation.

p.s i have increased the point value to 50 to cover this extra question:)

cheers

r6
Mayank SAssociate Director - Product EngineeringCommented:
>> i have a uesr-defined class that represents a class that has to be scheduled in

That would probably be equivalent of the TimeTableEntry class that objects has defined.

>> i have an arraylist of arraylist to first sort out the allowed timeframe and from there i build a domain_list

Well, I would probably make:

SortedMap <Calendar, List> where the list holds multiple time-table entries which have to be processed together at this time (if there are any such cases).
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
Java

From novice to tech pro — start learning today.