Question: C + + Please Problem 1 : Ensuring Convenient Schedules The group schedule matching takes two or more arrays as input. The arrays represent slots
C Please
Problem : Ensuring Convenient Schedules
The group schedule matching takes two or more arrays as input. The arrays represent slots that are
already booked and the loginlogout time of group members. It outputs an array containing
intervals of time when all members are available for a meeting for a minimum duration expected.
Mathematically, the problem can be represented as:
Group Schedule Problem
input: arrays of related elements comprising the time intervals and an array representing
the daily active periods of all members. is a global set of all arrays. The problem can be
represented as:
The group schedule matching takes the following inputs:
BusySchedule: An array list that represents the person's existing schedule they can't
plan any other engagement during these hours
Hint: Array may be D or maybe a list, ArrayList.
Workingperiod: Daily working periods of group members. earliest time, latest time
Duration of the meeting It outputs a list of list containing intervals of time when all
members are available for a meeting for the minimum duration of the meeting required.
Analogy for the Problem:
Assume there are at least two persons in your class project group. You want to schedule a
meeting with another group member. You are provided with a a schedule of members'
daily activities, containing times of planned engagements. They are not available to have
a meeting you during these periods; b the earliest and latest times at which they are
available for meetings daily. Your schedule and availabilities are provided too.
Sample Input
personSchedule ::::::
personDailyAct ::
personSchedule ::::::::
personDailyAct ::
durationofmeeting
Sample output
::::::
Write an algorithm that takes in your schedule, your daily availability earliest time, latest time
and that of your group member or members and the duration of the meeting you want to
schedule. Time is given and should be returned in hr military format HH:MM for example:
:: The given times output should be sorted in ascending order.
An algorithm for solving this problem may involve combing the two subarrays into an array
containing a set of unavailabilities, with consideration of the daily active periods.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
