Original Post
hi,
im making a logic gates simulator using opengl & C language.
Its purpose is to take boolean equations as input and solve them
to generate a truth table & also the circuit diagram of the equation
. In the second part the user will draw a circuit and the program should
generate its equation and truth table.
I have already created the equation solving part that generates
the truth table by taking a boolean expression as input,converts it in
to postfix form and then solve it to get the output in the form of truth
table.
however i want to know that how can i generate the circuit
diagram with the help of input equation.
i want to know that how the gates will be automatically
placed in proper places and also connected by wires.
i have heard that graph layout algorithms is the answer.can any one tell me what type of algorithm will be used.also give the description or if u know a good site please give the address
if any one can help please reply as soon as possible
Thanx