Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 4: Dependency Analysis (7 kt) You are given a text file that has list of dependencies between (any) two projects in the source code

image text in transcribed

Task 4: Dependency Analysis (7 kt) 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') b->c b->d ->d 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 Task 4: Dependency Analysis (7 kt) 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') b->c b->d ->d 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago