Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Aspect-oriented algorithm visualization method and system

An aspect-oriented and algorithm-oriented technology, which is applied in the field of aspect-oriented algorithm visualization method and system, can solve the problems that different algorithms cannot be compared synchronously, and achieve the effect of synchronous comparison

Active Publication Date: 2021-06-01
SUN YAT SEN UNIV
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides an aspect-oriented algorithm visualization method and system in order to solve the problem that aspect-oriented programming cannot perform synchronous comparison on different algorithms in the prior art.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Aspect-oriented algorithm visualization method and system
  • Aspect-oriented algorithm visualization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Such as figure 1 As shown, an aspect-oriented algorithm visualization method includes the following steps:

[0034] S1. Select the algorithm to be demonstrated at the algorithm layer;

[0035] S2. Perform data initialization on the algorithm;

[0036] S3. Execute the algorithm, and save the generated context information and its location index to the context layer;

[0037] S4. Divide the display areas of different algorithms in the presentation layer, match the current view index of each display area with the position index saved in the context layer, obtain the corresponding context information, and, according to the preset view generation method, in the presentation layer Generate a view in;

[0038] S5. Determine whether the execution of the algorithm is completed, if not, continue to save the newly generated context information to the context layer, update the context information, and update the view generated in the presentation layer at the same time, if so, th...

Embodiment 2

[0059] Such as figure 2 As shown, an aspect-oriented algorithm visualization system includes an algorithm layer, a context layer, and a presentation layer. The output end of the algorithm layer is connected to the input end of the context layer, and the output end of the context layer is connected to the input end of the presentation layer. connection, where:

[0060] The algorithm layer is used to store the algorithm, initialize the data of the algorithm, execute the algorithm and output the final operation result of the algorithm;

[0061] The context layer is used to save and update the context information and its location index generated when the algorithm is executed;

[0062] The presentation layer is used to divide the display areas of different algorithms, the current view index of each display area is matched with the position index saved in the context layer to obtain the corresponding context information, and generate the view according to the preset view generati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an aspect-oriented algorithm visualization method and system, and relates to the field of algorithm visualization, and the method comprises the following steps: selecting an algorithm to be demonstrated in an algorithm layer; performing data initialization on the algorithm; executing an algorithm, and storing the generated context information and the position index thereof to a context layer; dividing display areas of different algorithms in the demonstration layer, matching the current view index of each display area with the position index stored in the context layer to obtain corresponding context information, and generating a view in the demonstration layer according to a preset view generation method; and judging whether the algorithm is executed or not, if not, enabling newly generated context information to continue to be stored in the context layer, updating the context information, meanwhile, updating the view generated in the demonstration layer, and if yes, enabling the algorithm layer to output the final operation result of the algorithm. Through cooperation of the algorithm layer, the context layer and the demonstration layer, synchronous comparison of different algorithms is realized.

Description

technical field [0001] The present invention relates to the field of algorithm visualization, and more specifically, relates to an aspect-oriented algorithm visualization method and system. Background technique [0002] Algorithm visualization is a branch of the field of software visualization, which uses animation to demonstrate the operation of algorithms. The current algorithm visualization implementation methods are divided into two categories. One is based on event-driven, that is, adding visual statements to a specific algorithm code. Currently, it is the most widely used, but it is easy to cause code confusion and low reusability; the other is aspect-oriented programming. , can solve the problem of code confusion and reusability to a certain extent, but it cannot display the pseudocode simultaneously, and it is not interactive, and due to the design limitation of the context layer, it cannot display two different algorithms simultaneously. [0003] In addition, the c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/28
CPCG06F16/2246G06F16/287Y02D10/00
Inventor 周晓聪秦建华
Owner SUN YAT SEN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products