index; int connAttr; } conn[10]; }oldpts[50]; Simple and flexible data structure for easy handling, expansion and manipulation for input points. Can hold any number of connections and nodes within a given limit. A L G O R I T H M
labels. Drew Connections keeping the color coding in mind. Arranged those points on the final graph. Found the remaining points in the circuit. Laid out the chain as the skeleton of the output. Found the Longest Chain in the input Circuit. Took the input on the OpenGL base. A L G O R I T H M
Finding the longest chain in a set of N points with no limitations on the connections should take N! (N-3)! steps… This means the steps for a 50 point limit circuit is 117600!! Electrica doesn’t calculate the longest chain after the input is complete, in fact, it intelligently and intuitively keeps storing the parameters for longest chain as the user interacts and enters the nodes and makes connections. Electrica does it in 3 steps!!
To avoid overlapping, we use counters in the Y- direction which completes the circuit with all orthogonal connections. Color Codes:- Resistor Capacitor Inductor DrawText() OpenGL does not directly support text output, so we had to include the built In libraries of bitmap fonts and modify them to serve our purpose of node labeling.
• Maximum nodes is limited ( Can be increased as per requirement by the developer) • Number of build chains is limited ( The algorithm for ‘n’ number of chains has been developed as well. Recursion would be used and the program can be modified. Time needed..) •DrawConnections() is not at its best potential due to limitations in time, but better algorithms have been devised and are ready to be implemented for a more accurate output.