A prominent masseuse is pondering which appointment invitations to accept after receiving a string of them. She requires a 15-minute pause between visits and hence cannot take any subsequent inquiries. Find the optimal (highest total booked minutes) set the masseuse can honour given a sequence of back-to-back appointment requests (all multiples of 15 minutes, none overlap, and none may be changed). Return the time in minutes. Input EXAMPLE: 30, 15, 60, 75, 45, 15, 15, 45 180 minutes output (30, 60, 45, 45).

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter20: Queuing Theory
Section20.15: Priority Queuing Models
Problem 2P
icon
Related questions
Question
100%

A prominent masseuse is pondering which appointment invitations to accept after receiving a string of them. She requires a 15-minute pause between visits and hence cannot take any subsequent inquiries. Find the optimal (highest total booked minutes) set the masseuse can honour given a sequence of back-to-back appointment requests (all multiples of 15 minutes, none overlap, and none may be changed). Return the time in minutes.
Input EXAMPLE: 30, 15, 60, 75, 45, 15, 15, 45
180 minutes output (30, 60, 45, 45).

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Dynamic Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole