Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Presentation algo for a conference

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem: You are the organiser of a conference and need to schedule presentations. You have received requests from N presenters stored in the csv file along with other details as

Presenter Name,No. of Hours for Presentation,Cost benefit for presenter P1,2,$100 P2,4,$200 P3,2,$50 .. Pn,1,$400

·The first column is the presenter name ·Second column indicates number of hours presenter
will take for the presentation (assume it to be an integer) · Last one indicates the associated
cost (Fees that presenter will charge).

You are given that your conference will last for N hrs (N taken as an input) divided into 3
sessions (with no breaks and back to back presentation for example 8 hrs=3+3+2 hrs) and any
of the session do not exceed N/2 hours.

I need a logic for below case
Maximize the number of presenters - Select the case that fits in maximum number of presenters
in the given time schedule. If multiple cases satisfy this scenario, select the ones with minimum
cost.
A session need not be fully utilized. But it should not be left empty without a presentation or. In
case all the 3 sessions can’t be filled then output should be Not enough presenters.

 
Saloon Keeper
Posts: 7622
68
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like an interesting assignment, show us what you've done so far. We won't do your work for you but if you show us what you've done and explain where you're stuck we would be happy to give some guidance.
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic