Interview Question
- 0of 0 votes
AnswersDesign a electricity division system consisting of wires that pass through channels.
- student1234 August 28, 2015 in United States
Bunch of wires is coming into a single large channel from the Huge pool of wires is divided to a set of smaller channels – the clasp(if open electricity can pass through channel else not) at the junction controls which smaller channels receive the electricity. Each smaller channel then divides the wires into even smaller channels – controlled by the clasp, and so on – till it reaches the destination nodes(homes/offices etc).
Develop an system and algorithm for "electricity division system "
It is following constraints:
Each channel must have a minimum number of wires
Each channel can not receive more than a maximum number of wires
If a channel does not need any electricity , wires going through that channel that would have gone towards the minimum number of that wires can be divided into other channels.
4.The channels pass through multiple types of resources. The restriction is that
channels that are blue must be given priority over channels those are red.
Is it possible to develop a system such that once the single large channel divides wires to the 1st channel, the current never stops till it reaches the destination resource? If not, then why? If yes, then develop the algorithm and write the code for such a system.| Report Duplicate | Flag | PURGE
Algorithm