Suppose that you are attending a one day conference in which several lectures are presented in parallel sessions e, more than one lecture may by running at the same timej. Lectures may be of different lengths. The lectures schedule is given to you in an array L such that Ld is the D of a lecture, L stort is the starting time of that lecture and Lend is the end time of that lecture. If you attend a lecture, you must atmtend it from the beginning until the end of it lyou are not allowed to amend lectures partialy. You want to amend as many lectures as possible. a) Give the pseudocode of an algorithm that takes as input the array Land finds the maximum number of lectures that you can attend. You can assume that dthe starting times and end times are integers representing time. The conterence sarts at time 0 and ends at some times. If you need to use a binary search algorithm or a sorting algorithm you can just calwithout gving s peudocode. fyou need to use any other algorithm. you should give its peudocode. b) What is the design technique you used in part =================================
aolve
Suppose that you are attending a one day conference in which several lectures are presented in parallel sessions e, more than one lecture may by running at the same timej. Lectures may be of different lengths. The lectures schedule is given to you in an array L such that Ld is the D of a lecture, L stort is the starting time of that lecture and Lend is the end time of that lecture. If you attend a lecture, you must atmtend it from the beginning until the end of it lyou are not allowed to amend lectures partialy. You want to amend as many lectures as possible. a) Give the pseudocode of an algorithm that takes as input the array Land finds the maximum number of lectures that you can attend. You can assume that dthe starting times and end times are integers representing time. The conterence sarts at time 0 and ends at some times. If you need to use a binary search algorithm or a sorting algorithm you can just calwithout gving s peudocode. fyou need to use any other algorithm. you should give its peudocode. b) What is the design technique you used in part
=================================
Step by step
Solved in 2 steps