Answer to Question #45428 in Engineering for xxxxxxxxxxxxxxx

Question #45428
A project contains P modules. One of the common fact about the project environment is that one module will depend upon other. Let u-v represents the dependency of module-u on module-v. Now given such dependencies, can you figure out the common dependencies between the Q given modules?

Input Format:

Input consists of four parts, viz.

First Line contains, number of modules (N), number of module dependencies (M)
Next M lines follow, each line contains two integers u, v
Next line contains Q, which is number of modules between whom dependencies need to be found
Next line contains Q integers delimited by space
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS