Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8154491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:22:21+00:00 2026-06-06T16:22:21+00:00

The problem is like that: a school has got different classes. Each class has

  • 0

The problem is like that:

a school has got different classes. Each class has a weekly schedule (8 hours english, 6 hours maths, 2 hours art, etc.). Each teacher has got a certain number of hours in a subset of classes. (I guess school is like that almost everywhere).

Some additional constraits can be added, for example:

  1. teacher X will not work on Monday
  2. teacher Y needs two consecutive hours in a certain class
    and so on.

The goal is to find a schedule that optimizes a cost function for constraints.

Finally this is a calssical NP problem i guess. It can be solved using space state search (we try all the possible combinations, using some smart way of searching, and we choose the best solution possible).

  • Is this feasible? (combinations are huge, for 10 classes and 30 hours per class and 7 subjects it is around 10^253, even if some substantial pruning is possible: i guess a SAT solver can handle something like that).

  • Is there any alterantive to complete search, even if approximated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:22:22+00:00Added an answer on June 6, 2026 at 4:22 pm

    This is a Constraint Satisfaction Problem. As mentioned in the link, one of the ways to solve these is using local search methods like min-conflicts or forward checking. You’re not guaranteed an optimal solution, but you generally get a “good” solution in a relatively short amount of time.

    If you happen to be using Prolog, the clpfd library (Constraint Logic Programming over Finite Domains) is very powerful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use Spring MVC [version: 2.5] and Security[version: 2.0.4]. My problem looks like that:
that my problem: I have database table like that: id (AI) market_id 1 6
I am having a problem like this one: http://svn.haxx.se/tsvnusers/archive-2008-07/1051.shtml Except that the app is
Updated Problem solved, I have some design problem here. The directory looks like that:
I'd like to say that I solved the problem but I wanted post this
My problem is: I have 3 procs that would like to share config loaded
The Problem I'm receiving crash reports from users that look like this: Code Type:
I have an issue that seems like very flaky behavour, is this a problem
I'm having a problem. I have a UIView, that looks like this : In
My problem is that every time I do some operation with an URL like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.