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 login/logout 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. Sample Input Enter person1_Schedule =[[ ‘7:00’, ’8:30’],  [’12:00’, ’13:00’],  [’16:00’, ’18:00’]] person1_DailyAct = [‘9:00’, ’19:00’]   Enter person2_Schedule = [[ ‘9:00’, ’10:30’],  [’12:20’, ’13:30’],  [’14:00’, ’15:00’], [’16:00’, ’17:00’ ]] person2_DailyAct = [‘9:00’, ’18: 30’] Enter duration_of_meeting =30   Sample output  [[’10:30’, ’12:00’], [’15:00’, ’16:00’], [’18:00’, ’18:30’]] Implementation Have following files  Project1_starter.py or project1_starter.cpp that defines functions for the algorithm described above. You will need to develop and write the functions. Describe how to run your program in the ReadMe file  Input.txt containing the sample input files. Use these sample files to run your program to see whether your algorithm implementations work correctly. Have a new line character separating the sample test cases (10) At least 2 must be edge cases. Output.txt – load the sample test case result to output.txt

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

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 login/logout 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.

Sample Input

Enter person1_Schedule =[[ ‘7:00’, ’8:30’],  [’12:00’, ’13:00’],  [’16:00’, ’18:00’]]

person1_DailyAct = [‘9:00’, ’19:00’]

 

Enter person2_Schedule = [[ ‘9:00’, ’10:30’],  [’12:20’, ’13:30’],  [’14:00’, ’15:00’], [’16:00’, ’17:00’ ]]

person2_DailyAct = [‘9:00’, ’18: 30’]


Enter duration_of_meeting =30

 

Sample output 

[[’10:30’, ’12:00’], [’15:00’, ’16:00’], [’18:00’, ’18:30’]]

Implementation

Have following files 

  1. Project1_starter.py or project1_starter.cpp that defines functions for the algorithm described above. You will need to develop and write the functions. Describe how to run your program in the ReadMe file 
  2. Input.txt containing the sample input files. Use these sample files to run your program to see whether your algorithm implementations work correctly. Have a new line character separating the sample test cases (10) At least 2 must be edge cases.
  3. Output.txt – load the sample test case result to output.txt
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Randomized Select Algorithm
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage