First, preface
Learning data structure has been a long time, plus a period of time before the ACM, although not very good, but like things can not give up, has been planning to write an algorithm simulation system, some commonly used algorithms for a simple simulation, so my graduation design was born. I believe this simple system can bring some help to the people who are learning the data structure and algorithm. Make a presentation here and leave a souvenir. In addition, I like a friend's work, share to everyone, hope you can also like.
ii. Design Patterns used in the project
MVC Pattern + Observer pattern
where Model needs to inherit the Observalbe Class and act as the Observer, theview needs to implement Obsever interface that acts as an observer.
The Observer class to be added by the Observer class, callingaddobserver (Observer o)method to add the viewer,Addobserver ()method to add the Observer object to the list of observer objects. If the observed event occurs, you need to notify the Observer that the event has occurred, and then the observer will do the appropriate processing, and the statement to be executed issetchanged ()and thenotifyobservers (). WhichSetchange ()method changes the internal flag bit to indicate that the content has changed,notifyobservers ()method to invoke all the objects in the Observer object list.Observerof theUpdate ()method to notify them that the data has changed. Only inSetchange ()after being called,notifyobservers ()before it calls.Update ().
third, the design of some models in the data structure
Four, the project function module
1. System Foreground Design
2. System Background Design
Five, the effect shows
Interface is ugly ah, no way, art bacteria too little ...
Simulation System selection Algorithm classification simulation system select the specific algorithm to simulate
Analog system Click to start simulating the data required for the input algorithm of the system
Simulation System algorithm simulation start Practice System View Algorithm topic
Practice the editing Code of the system and submit the login to run the user communication
User communication of registered users to send messages
User communication Send template Mail user communication receive template mail
Six, show a friend's work
If this is not possible, please use Firefox or Google Chrome or poke around . The work is very good, I like it very much, what about you? This artistic, quack!
Author: Changche
Contact information (QQ or):
1141884216
The first time you use GitHub to deploy static Web pages, here's a note:
Use GitHub to deploy static Web pages: 1190000002765287
Successful deployment of Demo:https://github.com/hjzgg/picchangetest
Demo Effect: Http://hjzgg.github.io/picChangeTest
3D Picture Toggle Demo:https://github.com/hjzgg/3d_picturechange
If you want to change the image in this example, take a look at the 3D Image Switch Demo demo, here I simply encapsulated a jquery plug-in, directly reference the plug-in and modify parameters on it.
Seven, complete project address
This article describes how the project is configured to run, as well as the project source code, please read more Readme.md this file . If you have any questions, please feel free to leave a message or QQ contact me.
My bi-set: https://github.com/hjzgg/Graduation_Design
Eight, feel
The completion of the project lasted for 2 months, the simulation of each algorithm is based on individual ideas, simple 1 days to fix, complex 3, 4 days to get it done. Because of the limited time, but the data structure of the university textbooks in some of the commonly used algorithms to simulate, after the completion of the feeling of the use of javase more proficient, during the period of more attempts to mvc+ observer design patterns. As a result of the completion of the internship, so the project backstage project is the use of this internship Java Web technology, such as Maven,springmvc,springdata JPA and so on. The whole project used the most of the university programming knowledge, but also used in the internship process of some knowledge, to me this bi set is really university during four years and internship period of knowledge and technology accumulation of a summary, both good and bad, this is their own progress. Slowly accumulate, grow slowly.
Data structure Algorithm simulation system