Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read through this entire document very carefully before you start! 1 . Problem Statement Gopal, a talented product photographer, is currently in high demand and
Read through this entire document very carefully before you start!
Problem Statement
Gopal, a talented product photographer, is currently in high demand and has numerous
companies seeking his services for their product photography needs. He conducts all of his
photoshoots at his studio and aims to optimize his productivity by completing as many photoshoots
as possible in a single day. To conduct a photoshoot, the product must first be staged and then
photographed. Gopal has a team that handles the staging of the products while he focuses on
photography. The amount of time required to stage and complete a photoshoot varies depending on
the product. While Gopal is occupied with one product's photoshoot, his team can stage another
product in a different part of the studio. However, his team can only work on one product at a time
before moving on to the next staging project, and Gopal only moves on to the next photoshoot after
completing the previous one. Your task is to assist Gopal in optimizing his team's efficiency and time
management by determining the best order in which to stage and photograph the products to
complete all photoshoots as quickly as possible.
Requirements
Formulate an efficient algorithm using Greedy Technique.
Implement the above problem statement using Python in a single py file
Read the input from a file inputPStxt
You will output your answers to a file outputPStxt for each line.
Example Input:
Sample Input:
For example, if there are different products in total the time in minutes for staging and photoshoot
are mentioned as below:
Products: A B C D E F
Staging:
Photo:
Input should be taken in through a file called inputPStxt which has the fixed format mentioned
above using the as a field separator.
Make sure the file is automatically read and no input is expected from the user. The size of the input
will increase in some of the test cases, please make sure you have the most efficient algorithm
possible
Sample Output:
Product Sequence: F A E B C D
Total time to complete photoshoot: minutes
Idle time for Gopal: minutes
The output should be written to the file outputPStxt
Note that the inputoutput data shown here is only for understanding and testing, the actual
file used for evaluation will be different
Deliverables
PDF document designPSpdf detailing your design approach and time
complexity of the algorithm and alternate solutions.
Group idContribution.xlsx mentioning the contribution of each student in terms of
percentage of work done. Columns must be Student Registration NumberName
Percentage of contribution out of If a student did not contribute at all, it will be
if all contributed then for all.
inputPStxt file used for testing
outputPStxt file generated while testing
py file containing the python code. Create a single py file for code. Do not fragment
your code into multiple files. Also no ipynb files.
Zip all of the above files including the design document and contribution file in a
folder with the name: Group idAPSzip and submit the zipped file in canvas.
Group Id should be given as Gxx where xx is your group number. For example, if your
group is then you will enter G as your group id
Instructions
It is compulsory to make use of the data structures algorithms mentioned in the
problem statement.
Ensure that all data structure insert and delete operations throw appropriate
messages when their capacity is empty or full. Also ensure basic error handling is
implemented.
For the purposes of testing, you may implement some functions to print the data
structures or other test data. But all such functions must be commented before
submission.
Make sure that your read, understand, and follow all the instructions
Ensure that the input, prompt and output file guidelines are adhered to Deviations from
the mentioned formats will not be entertained.
The input, prompt and output samples shown here are only a representation of the
syntax to be used. Actual files used to evaluate the submissions will be different.
Hence, do not hard code any values into the code.
Run time analysis is to be provided in asymptotic notations and not timestamp based
runtimes in sec or milliseconds.
Please note that the design document must include:
a The data structure model you chose with justifications
b Details of each operations with the time complexity and reasons why the chosen
operations are efficient for the given representation
need detail solution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started