Difference between revisions of "User:Minooz/DSA"

From CDOT Wiki
Jump to: navigation, search
(Bubble sort - Cathy)
(Selection Sort)
Line 12: Line 12:
 
* [http://techblog.floorplanner.com/2010/10/29/selection-sort-in-javascript/ in javascript]
 
* [http://techblog.floorplanner.com/2010/10/29/selection-sort-in-javascript/ in javascript]
 
* [http://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Selection_sort implementation in various languages]
 
* [http://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Selection_sort implementation in various languages]
 +
*How to run and debug the sketch in Eclipse:
  
 +
:1- [http://zenit.senecac.on.ca/wiki/index.php/User:Minooz/OSD600/processing My notes on wiki]
 +
 +
:2- Clone the processing repository to get the processing-core and the plug-in for Eclipse -> svn checkout http://processing.googlecode.com/svn/trunk/ processing-read-only
 +
 +
:3- Run the plug-in as Eclipse Application
 +
::  Switch to processing perspective.
 +
::  New -> processing sketch -> choose the name and the folder.
 +
::  Insert your processing sketch code in the sample .pde file that is created as default in the workspace.
 +
::  run the code as processing sketch.
 +
::  This will generate the .java code form the .pde file which can be found in the source folder in the file system.
 +
:4- Copy the generated .java file and paste it in a new package beside the processing-core package in the main instance of Eclipse application.
 +
: Now you can debug the code....
  
 
==== Bubble sort - Cathy ====
 
==== Bubble sort - Cathy ====

Revision as of 23:36, 30 September 2011

Data Structure

Resources


Animation - processing.js

Processing.js @ http://processingjs.org/

Selection Sort

1- My notes on wiki
2- Clone the processing repository to get the processing-core and the plug-in for Eclipse -> svn checkout http://processing.googlecode.com/svn/trunk/ processing-read-only
3- Run the plug-in as Eclipse Application
Switch to processing perspective.
New -> processing sketch -> choose the name and the folder.
Insert your processing sketch code in the sample .pde file that is created as default in the workspace.
run the code as processing sketch.
This will generate the .java code form the .pde file which can be found in the source folder in the file system.
4- Copy the generated .java file and paste it in a new package beside the processing-core package in the main instance of Eclipse application.
Now you can debug the code....

Bubble sort - Cathy