You are given a text file that has list of dependencies between (any) two projects in the source code repository. Write

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

You are given a text file that has list of dependencies between (any) two projects in the source code repository. Write

Post by answerhappygod »

You Are Given A Text File That Has List Of Dependencies Between Any Two Projects In The Source Code Repository Write 1
You Are Given A Text File That Has List Of Dependencies Between Any Two Projects In The Source Code Repository Write 1 (103.16 KiB) Viewed 12 times
You are given a text file that has list of dependencies between (any) two projects in the source code repository. Write an algorithm to determine the build order, ie. which project needs to be built first, followed by which project based on the dependencies. EX: ProjectDependencies.txt a →b (means 'a' has a dependency on ' b ', so ' b′ needs to be built first and then 'a') what should be the right build order for the project? If you are asked to implement an algorithm to perform the automatic build based on the dependency info., how would you design the data structure and the algorithm? Note, only algorithm (and data structure) is needed, do not spend time on writing I/O related code such as how to read a text file line by line, please just focus on the algorithm and data structure. Draw figures if that helps to explain your algorithm.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply