Question: Develop a pseudocode for an algorithm; analyze your pseudocode mathematically; implement the code for the algorithm of your choice; test your implementation; and describe your
Develop a pseudocode for an algorithm; analyze your pseudocode mathematically; implement the
code for the algorithm of your choice; test your implementation; and describe your results.
The Problem: Matching Group 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.
Mathematical notation of the problem.
Hint: you will be good even if you dont understand mathematical notations of the problem.
Group Schedule Problem
input: arrays of related elements comprising the time intervals and an array
representing the daily active periods of all members. U is a global set of all arrays. The
problem can be represented as:
output: a set of HashMap, such that r U
The group schedule matching takes the following inputs:
BusySchedule: An array list that represents the person's existing schedule they cant plan
any other engagement during these hours
Hint: Array may be D or maybe a list, ArrayList.
Workingperiod: Daily working periods of group members. login logout
Just two entries login logout
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.
An analogy for the question:
Assume you and your group members provide your schedules and daily availability. The goal is
to find a time slot when all of you are free for a meeting, considering the provided schedules and
the minimum duration required for the meeting.
Sample Input
Enter personSchedule ::::::
personDailyAct ::
Enter personSchedule ::::::::
personDailyAct ::
Enter durationofmeeting
Sample output
::::::
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
