D
david ullua
Hello, everyone, Is there any tools which we can drawl program
algorithms in flowchart?
In programming, we conceive an algorithm and describe it clearly in
document. and then implement it by programming language, like java, c/c
++. we pay double the times in describing the algorithm, one is when
designing, second is when coding. My idea is to do it in one step,
just express the algorithm in flowchart, then generate codes from the
flowchart.
If it hasn't been clear, let me explain the case in more detail. like
the algorithm for mistyped keyword suggesting:
background: use may mistyped keyword in doing search on search engine
site, ( as http://www.roboo.com , http://www.google.com )
PronounceDict, is our pronounciation dictionary which maps
pronounciation to a list of keywords.
* 1. find keyword in search dictionary, if exist, return empty, else -
* 2. find suggest keyword by pronounce/soundex: <br>
* get the keyword's pronounce, <br>
* find pronounce in PronounceDict, <br>
* if found return keywords list in the PronounceDict for the <br>
* keyword's pronounce. else -> 3 <br><br>
*
* 3. get the soundex, find the soundex for soundex dictionary, <br>
* if found, return keywords list in the SoundexDict for the
keyword's soundex.<br>
* else return empty.
It is just an outline of the algorithm. there maybe some if, while ,
and sequential structure of the algorithm. We can draw the total
algorithm process in microsoft visio or openoffice draw.
The problem is how we can convert these algorithm flowchart to code?
Any tools can do the work?
If can generate flowchart from code, it would be better.
Any comments are appreciated.
algorithms in flowchart?
In programming, we conceive an algorithm and describe it clearly in
document. and then implement it by programming language, like java, c/c
++. we pay double the times in describing the algorithm, one is when
designing, second is when coding. My idea is to do it in one step,
just express the algorithm in flowchart, then generate codes from the
flowchart.
If it hasn't been clear, let me explain the case in more detail. like
the algorithm for mistyped keyword suggesting:
background: use may mistyped keyword in doing search on search engine
site, ( as http://www.roboo.com , http://www.google.com )
PronounceDict, is our pronounciation dictionary which maps
pronounciation to a list of keywords.
* 1. find keyword in search dictionary, if exist, return empty, else -
*2 <br> <br>
* 2. find suggest keyword by pronounce/soundex: <br>
* get the keyword's pronounce, <br>
* find pronounce in PronounceDict, <br>
* if found return keywords list in the PronounceDict for the <br>
* keyword's pronounce. else -> 3 <br><br>
*
* 3. get the soundex, find the soundex for soundex dictionary, <br>
* if found, return keywords list in the SoundexDict for the
keyword's soundex.<br>
* else return empty.
It is just an outline of the algorithm. there maybe some if, while ,
and sequential structure of the algorithm. We can draw the total
algorithm process in microsoft visio or openoffice draw.
The problem is how we can convert these algorithm flowchart to code?
Any tools can do the work?
If can generate flowchart from code, it would be better.
Any comments are appreciated.