Designing Algorithm Flowchart Application

Posted by l46kok on Programmers See other posts from Programmers or by l46kok
Published on 2012-09-25T11:04:33Z Indexed on 2012/09/25 15:49 UTC
Read the original article Hit count: 388

Filed under:
|
|

I need to develop an GUI application in C# where users can freely add conditional/statement blocks on the algorithm flowchart like the one shown below. By freely, I mean users can add a block on wherever the arrows are.

I'm having some problems brainstorming how to approach this problem, especially what to choose for my datastructure to store the blocks. I was thinking LinkedList since everything follows a linear fashion and every node always has a head and tail, but the If/Else block (b>a) has two branches (heads) to store, so this complicates things a little bit.

How would a smart one approach problems like this? My apologies if this question isn't suited for Programmers stackexchange, but this is more of a conceptual problem rather than implementation problem so I figured this place was appropriate for the question.

enter image description here

© Programmers or respective owner

Related posts about c#

Related posts about algorithms