• Post Reply Bookmark Topic Watch Topic
  • New Topic

Project Allocation Problem  RSS feed

 
Madeleine Julia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an object-oriented model of the problem. you should have at least the following classes: Student, Project, Problem and Main.
A student must have at least the properties: name and email. A project must have at least the properties: name and capacity. Each class should have appropriate constructors, setters and getters. The toString and equals methods form the Object class must be properly overridden.

An instance of the problem involves a set of students and projects. A student may be enrolled in at most one project. Each project has a capacity constraint (an upper bound regarding how many students can be enrolled).
Each student has a preference list over the available projects that he/she finds acceptable. Each project's coordinating professor also has a preference list over the students.
We consider the problem of allocating students to projects based on these preference lists and capacity constraints.

Example: 4 students, 3 projects having capacities: c(P1) = 2, c(P2) = 1, c(P3) = 1
 
Madeleine Julia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Madeleine Julia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Madeleine Julia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Do you have a question regarding this assignment? meaning what are you confused with?

Henry
 
Liutauras Vilda
Sheriff
Posts: 4917
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

There are some problems with the code you posted, but we'd like to know first, as Henry pointed out, what problems you faced?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!