I need help with understanding the following problem:
In a factory, machines are making cars (1-n) along the production line. One machine is making one part on the existing construction (part 1 is made by machine 1,...). Installation order of some parts is not important, but some parts have to be installed before others. Engineers have put together a dependence list for car parts as a table:
where the first column represents parts (1-8), and the second column represents preconditions for installment of each part. That is the list of parts (second column) whose installment must be done before the installment of current part (first column).
For each given list (second column), find the order of machines along the production line such that the manufacturing process of a car is done without interruptions, if such order exists. Also, find lists from the given table that give orders with interruptions.
Design an algorithm for this problem. Show the final order of machines along the production line, if it exists.
For each part (1-8, first column) we have to find a hash function without collisions that satisfies the second column in the table (if possible).
This is obviously the reversed process from generating hash table from given hash function.
I have found that the only possible order of machines along with production line, such that there is no interruption in the process is:
Question: How can we generate hash function from hash table?