# US 2008/0306979 A1 · Editing, creating, and verifying reorganization of flowchart, and transforming between flowchart and tree diagram

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0306979 A1
- Document ID: US20080306979A1
- Status: Published application
- Kind: A1
- Application number: 12/124,400
- Filed: 2008-05-21
- Published: 2008-12-11
- Earliest claimed: 2004-05-31
- Assignees: International Business Machines Corporation
- Inventors: Jian Wang; Jun Zho; Sheng Ye; Jing Li; Hai Oi Liang; Ying Liu; Ying Nan Zuo
- Web page: https://patentgrep.com/patent/US20080306979A1

## CPC

- G06F 8/10: Requirements analysis; Specification techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provides methods for transforming a flowchart to an equivalent tree diagram, methods for transforming an equivalent tree diagram to a flowchart, methods for verifying reorganization of a flowchart, methods for editing a flowchart, methods for creating a flowchart and a flowchart editor. A flowchart includes one or more logic structures and one or more processing activities in said one or more logic structures. The method for transforming a flowchart to an equivalent tree diagram comprises: traversing said flowchart; transforming said one or more logic structures in said flowchart to one or more branching nodes in said tree diagram; and transforming one or more processing activities in said logic structures of said flowchart to one or more leaf nodes below corresponding branching nodes in said tree diagram. Further, edition of a flowchart and verification of reorganization of a flowchart are performed by utilizing an equivalent tree diagram.

## Claims

### Claim 1

A method for transforming a flowchart to an equivalent tree diagram, said flowchart comprises at least one logic structure and at least one processing activity in said at least one logic structure, said method comprising:
traversing said flowchart;
transforming said at least one logic structure in said flowchart to at least one branching node in said tree diagram; and
transforming at least one processing activity in said logic structures of said flowchart to at least one leaf node below corresponding branching nodes in said tree diagram.

### Claim 2 (depends on 1)

The method for transforming a flowchart to an equivalent tree diagram according to claim 1, wherein said logic structure comprises sequence logic structure and split logic structure, correspondingly the branching node in said tree diagram comprises sequence logic structure type branching node and split logic structure type branching node.

### Claim 3 (depends on 2)

The method for transforming a flowchart to an equivalent tree diagram according to claim 2, wherein said flowchart further comprises at least one loop logic structure, correspondingly the branching node in said tree diagram further comprises loop logic structure type branching node, said method comprises:
finding said at least one loop logic structure in said flowchart;
performing said traversing and subsequent steps respectively for each found loop logic structure and the main flow from which said at least one loop logic structure has been removed, to form at least one sub tree corresponding to said at least one loop logic structure and a main tree corresponding to said main flow; and
assembling said at least one sub tree to said main tree.

### Claim 4 (depends on 3)

The method for transforming a flowchart to an equivalent tree diagram according to claim 3, wherein said step of finding said at least one loop structure is performed before said step of traversing said flowchart.

### Claim 5 (depends on 3)

The method for transforming a flowchart to an equivalent tree diagram according to claim 3, wherein said method further comprises a step of performing normalization for said flowchart.

### Claim 6 (depends on 2)

The method for transforming a flowchart to an equivalent tree diagram according to claim 2, wherein said split logic structure comprises AND split logic structure, OR split logic structure and XOR split logic structure, correspondingly said split logic structure type branching node comprises AND split logic structure type branching node, OR split logic structure type branching node and XOR split logic structure type branching node.

### Claim 7 (depends on 3)

The method for transforming a flowchart to an equivalent tree diagram according to claim 3, wherein said loop logic structure comprises WHILE loop logic structure and UNTIL loop logic structure, correspondingly said loop logic structure type branching node comprises WHILE loop logic structure type branching node and UNTIL loop logic structure type branching node.

### Claim 8 (depends on 1)

The method for transforming a flowchart to an equivalent tree diagram according to claim 1, wherein said step of traversing said flowchart is performed in depth-first manner or width-first manner.

### Claim 9

A method for transforming an equivalent tree diagram to a flowchart, wherein said equivalent tree diagram comprises at least one branching node that represent logic structures and at least one leaf node under said at least one branching node that represents a processing activity, said method comprises:
traversing said equivalent tree diagram;
transforming said at least one branching node in said tree diagram to at least one logic structure in said flowchart; and
transforming said at least one leaf node below said at least one branching node in said tree diagram to at least one processing activity in corresponding logic structures in said flowchart.

### Claim 10 (depends on 9)

The method for transforming an equivalent tree diagram to a flowchart according to claim 9, wherein said step of traversing said tree diagram is performed in one of depth-first manner and width-first manner.

### Claim 11 (depends on 9)

The method for transforming an equivalent tree diagram to a flowchart according to claim 9, wherein said logic structure comprises sequence logic structure, split logic structure and loop logic structure, correspondingly the branching node in said tree diagram comprises sequence logic structure type branching node, split logic structure type branching node and loop logic structure type branching node.

### Claim 12 (depends on 11)

The method for transforming an equivalent tree diagram to a flowchart according to claim 11, wherein said split logic structure comprises at least one of AND split logic structure, OR split logic structure, and XOR split logic structure, correspondingly said split logic structure type branching node comprises at least one of AND split logic structure type branching node, OR split logic structure type branching node and XOR split logic structure type branching node.

### Claim 13 (depends on 11)

The method for transforming an equivalent tree diagram to a flowchart according to claim 11, wherein said loop logic structure comprises WHILE loop logic structure and UNTIL loop logic structure, correspondingly said loop logic structure type branching node comprises WHILE loop logic structure type branching node and UNTIL loop logic structure type branching node.

### Claim 14 (depends on 1)

The method for transforming a flowchart to an equivalent tree diagram according to claim 1, further comprising:
selecting at least one node in said flowchart for reorganization,
verifying a reorganization of the flowchart, said step of verifying comprising:
if said at least one node corresponds to a sub tree in said equivalent tree diagram, or said at least one node corresponds to a plurality of sub trees in said equivalent tree diagram and said plurality of sub trees have a same parent node in common, then determining that the reorganization of said flowchart is valid, otherwise said flowchart is invalid.

### Claim 15 (depends on 1)

The method for transforming a flowchart to an equivalent tree diagram according to claim 1, further comprising editing the flowchart, said step of editing comprising:
modifying said generated equivalent tree diagram; and
transforming said equivalent tree diagram to a flowchart, wherein said equivalent tree diagram comprises at least one branching node that represent logic structure and at least one leaf node under said at least one branching nodes that represent processing activities, said step of transforming comprising:
traversing said equivalent tree diagram;
transforming said at least one branching node in said tree diagram to at least one logic structure in said flowchart; and
transforming said at least one leaf node below said at least one branching node in said tree diagram to at least one processing activity in corresponding logic structures in said flowchart.

### Claim 16 (depends on 1)

The method for transforming a flowchart to an equivalent tree diagram according to claim 1, further comprising editing the flowchart, the step of editing comprising:
selecting at least one node in said flowchart for modification;
if said selected at least one node correspond to a sub tree in said equivalent tree diagram, or said selected at least one node correspond to a plurality of sub trees in said equivalent tree diagram and said plurality of sub trees have a same parent nodes in common, then permitting the modification, otherwise modification is not permitted;
if permitted, then making corresponding modification in said generated equivalent tree diagram; and
transforming said equivalent tree diagram to a flowchart, said step of transforming comprising:
traversing said equivalent tree diagram;
transforming said at least one branching node in said tree diagram to at least one logic structure in said flowchart; and
transforming said at least one leaf node below said at least one branching node in said tree diagram to at least one processing activity in corresponding logic structures in said flowchart.

### Claim 17

A flowchart editor for editing a flowchart, characterized in that edit of said flowchart comprises:
flowchart to tree diagram transforming means for transforming the flowchart to an equivalent tree diagram; and
tree diagram to flowchart transforming means for transforming the equivalent tree diagram generated by said flowchart to tree diagram transforming means to a flowchart.

### Claim 18 (depends on 17)

A flowchart editor according to claim 17, said editor further comprising:
an equivalent tree diagram storing unit for storing the equivalent tree diagram generated by said flowchart to tree diagram transforming means; and
an equivalent tree diagram editing unit for editing the equivalent tree diagram generated by said flowchart to tree diagram transforming means.

### Claim 19 (depends on 18)

A flowchart editor according to claim 18, said editor further comprising a reorganization verifying unit for verifying the validness of editing operation a user made to said flowchart.

### Claim 20

A method for creating a flowchart, comprising:
creating a tree diagram based on the tasks of a process to be modeled, wherein at least one branching nodes in said tree diagram represents logic structure, at least one leaf node in said tree diagram represents processing activity; and
transforming said equivalent tree diagram to a flowchart, said step of transforming comprising:
traversing said equivalent tree diagram;
transforming said at least one branching node in said tree diagram to at least one logic structure in said flowchart; and
transforming said at least one leaf node below said at least one branching node in said tree diagram to at least one processing activity in corresponding logic structures in said flowchart.

### Claim 21 (depends on 20)

The method for creating a flowchart according to claim 20, wherein said step of creating a tree diagram comprising:
creating a tree diagram that includes one root node and one leaf node representing said process;
decomposing the task represented by the leaf node in said tree diagram to at least one sub task and setting them as at least one child leaf node below said leaf node, and modifying said leaf node to a branching node of the type corresponding to the execution logic of said at least one sub task; and
repeating above decomposing step until the tasks represented by all the leaf nodes in said tree diagram can not be further decomposed.

### Claim 22 (depends on 1)

An article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing transformation of a flowchart to an equivalent tree diagram, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of claim 1.

### Claim 23 (depends on 9)

A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for transforming an equivalent tree diagram to a flowchart, said method steps comprising the steps of claim 9.

### Claim 24 (depends on 20)

A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for creating a flowchart, said method steps comprising the steps of claim 20.

### Claim 25 (depends on 17)

A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing functions of a flowchart editor, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim 17.
